宝塔面板,安装的是mysql5.7+Nginx,跑的是wp程序。
服务器只有一个网站,报错2小时以内没有登陆过服务器,没有更新内容,附上报错日志:
2022/12/05 21:04:26 [error] 21778#0: *363292 FastCGI sent in stderr: "PHP message: WordPress数据库查询SELECT option_value FROM wp_options WHERE option_name = 'joy_framework' LIMIT 1时发生MySQL server has gone away错误,这是由require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/nice/functions.php'), require_once('/themes/nice/inc/functions/functions.7.4.php'), include('/themes/nice/inc/options/options.theme.php'), get_option查询的" while reading response header from upstream, client: 这里是IP地址, server: www.网址部分.com, request: "GET /45894.html HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-74.sock:", host: "www.网址部分.com", referrer: "https://www.网址部分.com/45894.html"
解决方案就是登陆面板,点击启动mysql(出错网站宕机以后登陆面板mysql默认关闭状态),即可解决问题。
经过查询之前的错误记录,发现它是有规则的,每5天出现1次,希望管理大大能够帮忙解惑,数据太多重装非常麻烦。。
|
|