Nginx and PHP installation and configuration four Nginx and PHP start or restart

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.