Last update at :2023-12-24,Edit by888u
Since the vps recommendation website converted from typecho to wordpress in May 2014, it has encountered some problems. The most troublesome one is that the memory is full! This problem has been encountered by many friends using Du Niang or Gu Gou. Most of them use the WDCP host panel like this site. Just restart the server and it will be fine! In fact, it’s okay to restart the WEB service at this time! However, it is still inconvenient if you have to operate it manually every time. Let's introduce how to add automatic restart of WEB service in WDCP's "Scheduled Tasks" to automatically release memory.
1. Add and execute the following code in SSH:
echo ‘/etc/rc.d/init.d/httpd restart’ > /www/wdlinux/init.d/httpd_restart.sh
chmod 755 /www/wdlinux/init.d/httpd_restart.sh
2. Log in to the WDCP background-system settings-scheduled tasks-add tasks, as shown below
You can fill in the "Task Name" casually. In order to prevent yourself from being forgotten in the future, you can fill in the "Automatically restart WEB service" like this, so that you will understand what the function is. Then select the automatic execution time, fill in the "execution program" into /www/wdlinux/init.d/httpd_restart.sh and click "Save".
After adding, remember to click "Update Scheduled Tasks" to take effect. In this way, the WEB automatic restart service has been completed!
Recommended site search: dynamic dial-up vps host, foreign website space, US website space, domain name registration query, reverse IP check, game high defense server, host server rental, domain name purchase, registered cn domain name, Hong Kong's best virtual host,
发表评论