1. 服务启动管理程序
launchctl list
launchctl load /path/*.plist
launchctl start org.svn.svnserve
plist存放目录
- /Library/LaunchDaemons/
- /Library/LaunchAgents/
- ~/Library/LaunchAgents/
样例
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.svn.svnserve</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/svnserve</string>
<string>--root</string>
<string>/usr/svn/repos</string>
<string>--daemon</string>
</array>
</dict>
</plist>
2. port安装文件列表
port contents nginx