Last update at :2024-07-14,Edit by888u
The Pagoda background has a scheduled task function, which can regularly clean up the memory and back up data. It also comes with the php502 guardian plug-in. However, sometimes the mysql service will stop. You need to create a scheduled task to regularly detect the mysql status and restart it if it stops.
Download the pagoda panel:
https://www.bt.cn/new/index.html
Add mysql daemon script to scheduled tasks:
The code is as follows:
pgrep -x mysqld &> /dev/null if [ $? -ne 0 ]; then bash /www/server/panel/script/rememory.sh /etc/init.d/mysqld start fiPagoda restarts MySQL regularly. If you only need to restart the mysql scheduled task regularly, set the time that needs to be restarted as required. The content of the execution script is
/etc/init.d/mysqld restart
Recommended site searches: Which is the best ASP host in Hong Kong space, local IP address query, US virtual host purchase, telecommunications server rental, virtual host rental, cloud server hosting, IP address, virtual host evaluation, best US server, < /p>
All copyrights belong to 888u unless special state
发表评论