我在我的机器上设置php-fpm并使用自制程序(特别是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
Run Code Online (Sandbox Code Playgroud)
你可以使用Lanchctl:
停止:
launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist
Run Code Online (Sandbox Code Playgroud)
开始:
launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist
Run Code Online (Sandbox Code Playgroud)
使版本号"php55"适应您的环境.
小智 3
或者,使用 USR2 信号使 php-fpm 重新加载其配置文件:
kill -USR2 `cat /usr/local/var/run/php-fpm.pid`
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11703 次 |
| 最近记录: |