Aliyun LNMP Cloud Server Restart after the site cannot open the solution _linux

Source: Internet
Author: User
Tags rollback aliyun
Today, I upgraded the system architecture, Upgrade MySQL to 5.5.30,nginx upgrade to 1.4.1,php upgrade to 5.5.25, but after the upgrade the server hung up, so I used a rollback snapshot, so that the system back to the original state (Aliyun rollback snapshot features need to restart the server), after the server rollback, the data are in, but is unable to provide we b service, tried iptables-f to clear firewall rules, but the site still can't open. The Ps-aux command found that the Nginx did not start, and executed the

Copy Code code as follows:

/usr/local/nginx/sbin/nginx


After that, the server Web service was decisively restored, and the kernel of the Aliyun Linux system seemed to have changed, causing the nginx in the LNMP service to fail to start, so I executed

Copy Code code as follows:

echo "/usr/local/nginx/sbin/nginx" >>/etc/rc.local


This sets up a boot up for Nginx so that the Web server will start automatically after the server restarts.

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.