Pagoda panel: add mysql daemon script

888u

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
fi
Pagoda 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>

Pagoda panel: add mysql daemon script

All copyrights belong to 888u unless special state
888u

888uV

VPS&Dedicated Server&Cloud

54416 Articles
9709 Tags
100W+ Views
广告

Populare

广告

Random Tags

广告
取消
微信二维码
微信二维码
支付宝二维码