This commit is contained in:
23
MacBook/Mac命令launchctl的使用.md
Normal file
23
MacBook/Mac命令launchctl的使用.md
Normal file
@@ -0,0 +1,23 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# Mac命令launchctl的使用
|
||||
|
||||
- 查找现有的服务
|
||||
|
||||
```bash
|
||||
launchctl list
|
||||
```
|
||||
|
||||
- 停止服务
|
||||
|
||||
```bash
|
||||
launchctl stop [service-name]
|
||||
```
|
||||
|
||||
- 载服务配置,防止其在未来自动启动
|
||||
|
||||
```
|
||||
launchctl unload -w ~/Library/LaunchAgents/[service-name].plist
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user