This article to share the content is about Nginx and PHP installation and configuration four Nginx and PHP start or restart, has a certain reference value, the need for friends can refer to
Restart the service (start ignoring the first step):
A): Off Nginx service: sudo/usr/local/nginx-1.8.0/sbin/nginx-s stop
b): Close PHP-FPM service: Kill ALLPHP-FPM
(How this command cannot be turned off, just look for the process number kill: sudo netstat-anp |grep php) kill-9 process number
( about php-fpm appears 127.0.0.1:9000 has been occupied ):
Netstat-lntup | grep 9000
Killall PHP-FPM
c): Turn on PHP-FPM: (Reload the latest data in the php.ini configuration)
Sudo/usr/local/php/sbin/php-fpm-c/etc/php.ini-y/usr/local/php/etc/php-fpm.conf
(requires manual loading php.ini files)
d): Start Nginx Service: Sudo/usr/local/nginx-1.8.0/sbin/nginx