Focus on cloud service provider activities
Notes on website operation and maintenance

To solve the problem that the website often fails to open, restart Nginx and Apache to restore it

Today, Lao Zuo met a netizen who mentioned that his website server uses the pagoda panel, and the website can't be opened in 2-3 days. Then he needs to restart the server or restart Nginx and Apache to restore it. One of his servers is NGINX and the other is APACHE. They are all like this. Is this caused by a problem? Here, Lao Zuo helps him solve the problem by installing a lower version of MYSQL and upgrading the server configuration.

1. Reduce software version

Here we can see that the server software used by this student is relatively high. He configured 2G1C configuration, but he used MYSQL5.7. Personally, I think his database version is too high, so I reduced his server database to 5.5. Then upgrade the configuration to 4G3M2C configuration.

2. Restart APACHE regularly

Here we can use the timing function of the pagoda panel to reset the timing script of NGINX and APACHE.

2.1 Restart NGINX

 /etc/init.d/nginx restart

2.2 Restart MYSQL

 /etc/init.d/mysqld restart

In this way, we can set a regular restart to release resources.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » To solve the problem that the website often fails to open, restart Nginx and Apache to restore it


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge