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

标签 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)

最佳答案

你可以通过使用服务来做到这一点

sudo service php5-fpm restart

关于php - 如何在 127.0.0.1 :9000 上重新启动已编译的 php-fpm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20744338/

相关文章:

php - 发布生产代码的最佳方式

php - WampServer 不更新 PHP 版本列表

php - 注销后重定向到同一页面

linux - 如何使用公钥在 Ubuntu 中使用 openssl 加密 XML 文件?

c - 如何为 linux 内核模块开发配置 clang_complete?

javascript - 如何将外部 util 类包含并内联到主 TypeScript 应用程序中?

java - 表达式的赋值 - 编译或运行时现象

php - 如何使用 anchor 标记在 laravel 中路由?

PHP/MySQL - 有时会向表中添加空白条目

linux - 作为 Jenkins 构建服务器管理员,我必须处理哪些事情?