如何在127.0.0.1:9000上重新启动已编译的php-fpm

时间:2013-12-23 13:14:05

标签: php linux compilation

我的ubuntu上有php 5.3.10。 现在我安装了5.5.7并希望重新启动它但是在执行时:

sudo  service php5-fpm restart

重新启动php 5.3.10,而不是5.7.7

通过做:

/usr/local/php5.5.7/sbin/php-fpm restart

我得到了:

Usage: php-fpm [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>] [-D] [-F]
  -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/php5.5.7).
  -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
  -D, --daemonize  force to run in background, and ignore daemonize option from config file
  -F, --nodaemonize
               force to stay in foreground, and ignore daemonize option from config file
  -R, --allow-to-run-as-root
               Allow pool to run as root (disabled by default)

1 个答案:

答案 0 :(得分:1)

你可以使用服务

来做到这一点
sudo service php5-fpm restart