After the restart of ali cloud LNMP cloud server the website could not open the solution

  • 2020-05-06 12:10:19
  • OfStack

Today to upgrade the system architecture, the MySQL upgrade to 5.5.30, Nginx upgrade to 1.4.1, php upgrade to 5.5.25, but the server after the upgrade to hang out, so I just use the rollback snapshot, let the system restore to its original state (ali cloud rollback snapshot functions) need to restart the server, the server after the rollback, the data is in, but is unable to provide web service, tried iptables - F clear firewall rules, but still can't open website. The ps-aux command found that nginx was not started, so
was executed
 
/usr/local/nginx/sbin/nginx 


After that, the server web service resumed decisively. The kernel of ali cloud Linux system seemed to have been changed, resulting in the failure of Nginx in lnmp service, so I executed

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


This sets up a boot boot for nginx, so that the web server will start automatically when the server is restarted.

Related articles: