Home  >  Article  >  Backend Development  >  nginx下php的重启有关问题

nginx下php的重启有关问题

WBOY
WBOYOriginal
2016-06-13 12:09:58815browse

nginx下php的重启问题
提示:
如果您的服务器是apache的话,重启apache就可以了
如果服务器是nginx的,php是以php-fpm的方式安装的
第一种方法:/etc/init.d/php-fpm restart
第二种方法:php5.4升级后,重启php-fpm出错:

ERROR: unable to bind listening socket for address ’127.0.0.1:9000′

解决办法:

killall php-fpm
启动php
/usr/local/php/sbin/php-fpm

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn