我试过设置ActiveMQ
守护进程,但到目前为止一直没有成功。我似乎无法加载ActiveMQ
。不知道我还能做些什么来完成这项工作?我可以ActiveMQ
通过运行命令开始/Library/ActiveMQ/bin/macosx/activemq start
在列表中
<?xml version="1.0" encoding="UTF-8"?>
<!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>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.apache.activemq</string>
<key>ProgramArguments</key>
<array>
<string>/Library/ActiveMQ/bin/macosx/activemq</string>
<string>start</string>
<string>;</string>
<string>--stop-cmd</string>
<string>/Library/ActiveMQ/bin/macosx/activemq</string>
<string>stop</string>
<string>;</string>
<string>--restart-cmd</string>
<string>/Library/ActiveMQ/bin/macosx/activemq</string>
<string>restart</string>
<string>;</string>
<string>--pid=none</string>
</array>
<key>WorkingDirectory</key>
<string>/Library/ActiveMQ</string>
<key>ServiceDescription</key>
<string>ActiveMQ</string>
<key>StandardErrorPath</key>
<string>/var/log/activemq.stderr</string>
<key>StandardOutPath</key>
<string>/var/log/activemq.stdout</string>
</dict>
</plist>
执行launchctl
命令的结果
macosx user$ sudo launchctl load -w /Library/LaunchDaemons/activemq.plist
com.apache.activemq: Already loaded