【发布时间】:2011-11-18 02:20:43
【问题描述】:
我正在我的机器上设置 php-fpm,并使用 homebrew(特别是 homebrew-alt)安装它。一切都安装得很好,如果我打开终端并输入命令“php-fpm”,它就会启动得很好。不幸的是,如果我尝试运行任何命令,例如“php-fpm stop”,我会收到以下消息。有谁知道可能是什么原因造成的,或者我怎样才能让它工作?如果我尝试使用 kill 命令终止进程,它似乎会自动重启。
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
【问题讨论】: