PHP Version 5.6php.ini重启nginx php.ini设置不生效

centos中修改etc/php.ini后:

ps aux | grep php-fpm
查到master process (/etc/php-fpm.conf)的进程号是xxxx
kill -QUIT xxxx
然后:
/etc/init.d/php-fpm

/
如果在安装PHP时,设置了权限并启动php-fpm:
chmod 755 /etc/init.d/php-fpm
/etc/init.d/php-fpm start
chkconfig –add php-fpm

可以服务的方式启动、停止和重启:
service php-fpm start
service php-fpm stop
service php-fpm reload

更多推荐

CentOS下修改php.ini后不生效