grav Mac OS X plist setup

时间:2017-10-09 13:50:22

标签: macos plist

MI刚刚在本地安装了Grav,并希望它作为守护进程运行。显然是在~/LauchAgents

中完成的Mac上

我尝试设置.plist,但它无效。由于我是Macs的新手,我想知道是否有人知道如何设置本地服务?这是我到目前为止所拥有的......

<?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>grav</string>
    <key>ProgramArguments</key>
    <array>
      <string>/usr/bin/php</string>
      <string>~/grav/php -S system/router.php</string>
      <string>--httpListenAddress=127.0.0.1</string>
      <string>--httpPort=8000</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
  </dict>
</plist>

0 个答案:

没有答案