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.