我在我的機器上設置了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