阿里云服务器数据库mysql连不上解决方法
有时启或无缘无故的就会出来数据库连不上的问题。
1.重启服务器
2.出现了mysql未连接上,
3.重新启动mysql,出现502
4.执行/etc/init.d/php-fpm start,出现数据库无法连接
5.执行service mysqld restart,重启数据库
如果
=====nginx错=====
重启nginx后丢失nginx.pid,如何重新启动nginx
/alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/conf/nginx.conf
======搞定======