After the restart of aliyun LNMP cloud server the website could not open the solution
- 2020-05-10 23:10:27
- OfStack
Today l 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 rolled back the snapshot function need to restart the server), the server after the rollback, data are 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 and was executed
After that, the server web service was restored decisively, and the kernel of ali cloud Linux system seemed to have been changed, resulting in the failure of Nginx in lnmp service to start, so I executed it
This sets up a boot-up boot for nginx, so that the web server will start automatically when the server is restarted.
/usr/local/nginx/sbin/nginx
After that, the server web service was restored decisively, and the kernel of ali cloud Linux system seemed to have been changed, resulting in the failure of Nginx in lnmp service to start, so I executed it
echo "/usr/local/nginx/sbin/nginx">>/etc/rc.local
This sets up a boot-up boot for nginx, so that the web server will start automatically when the server is restarted.