我在我的机器上设置了php-fpm,并使用自制软件(特别是自制软件包)来安装它。一切都安装正常,如果我打开终端并键入命令“PHP-FPM”它启动罚款。不幸的是,如果我尝试运行诸如“php-fpm stop”之类的命令,我会在下面看到这条消息。有没有人有任何想法可能会导致这种情况或如何让它工作?如果我尝试用kill命令杀死进程,它似乎会自动重启。PHP-FPM在Mac Lion上停止/重新加载问题(OSX 10.7)
Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-h This help
-i PHP information
-m Show compiled in modules
-v Version number
-p, --prefix <dir>
Specify alternative prefix path to FastCGI process manager (default: /usr/local/Cellar/php/5.3.8).
-g, --pid <file>
Specify the PID file location.
-y, --fpm-config <file>
Specify alternative path to FastCGI process manager config file.
-t, --test Test FPM configuration and exit
这是做这件事(安装或升级自制PHP时,你会得到这样的效果的说明)的正确,干净的方式。 –
这适用于我,除了代字号。当我删除代字号时,它会起作用。 – NotoriousWebmaster
我不得不在'〜/ Library/LaunchAgents /'中查找我已安装的自制PHP的正确.plist – DigitalDesignDj