mac下设置goagent自动启动
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.go.agent</string>
<key>ProgramArguments</key>
<array>
<string>python</string>?
<string>/Applications/Utilities/goagent/local/proxy.py</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
?
2.然后在执行如下代码,重启,开始用吧。
sudo chown root:wheel /Library/LaunchDaemons/com.go.agent.plist