当前位置:网站首页>网站频繁出现mysql等数据库连接失败等信息解决办法
网站频繁出现mysql等数据库连接失败等信息解决办法
2022-07-31 00:46:00 【苏音资源】
前言
我自己的网站经常会发生【网站频繁出现mysql等数据库连接失败等信息解决办法这样的问题,需要手动重启】
于是我查询了网上的解决办法。主要如下。
解决办法
打开宝塔,计划任务输入下列代码
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
bash /www/server/panel/script/rememory.sh
/etc/init.d/mysqld start
fimysql进程守护,设置10分钟差不多

边栏推荐
- Jetpack Compose learning (8) - State and remeber
- Add text watermark to PHP image
- ES6中 async 函数、await表达式 的基本用法
- typescript9 - common base types
- [Tang Yudi Deep Learning-3D Point Cloud Combat Series] Study Notes
- MySQL notes under
- 埃拉托斯特尼筛法
- 24. 请你谈谈单例模式的优缺点,注意事项,使用场景
- 华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘
- Mysql systemized JOIN operation example analysis
猜你喜欢
随机推荐
mysql主从复制及读写分离脚本-亲测可用
The difference between substring and substr in MySQL
响应式布局与px/em/rem的比对
MySQL系列一:账号管理与引擎
图像处理工具设计
DOM系列之scroll系列
ShardingSphere's public table combat (7)
Asser uses ant sword to log in
C language force buckles the rotating image of the 48th question.auxiliary array
Filter (Filter)
How to Add a Navigation Menu on Your WordPress Site
【Multithreading】
Consistency and Consensus of Distributed Systems (1) - Overview
WEB Security Basics - - - Vulnerability Scanner
Shell programming of conditional statements
DOM系列之 client 系列
WMware Tools安装失败segmentation fault解决方法
Jetpack Compose learning (8) - State and remeber
Solution: Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfigu
Common network status codes








