网站服务器挂了
报502
到服务器上ps -ef|grep nginx
发现nginx服务器正常
先找原因,去index.php中打开APP_DEBUG,报错:
mysql
想去重启mysql结果提示:
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
参照这个:http://www.linuxidc.com/Linux/2011-02/32155.htm
利用以上脚本安装,安装结束后发现启动的时候提示
[root@kspc mysql-5.1.31]# /etc/init.d/mysqld start
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
脚本中有个建立
/usr/local/mysql/bin/mysql_install_db --user=mysql --------------------初始数据库
重新运行一次
然后重启mysql ,一切OK
[root@kspc mysql-5.1.31]# /etc/init.d/mysqld restart
MySQL manager or server PID file could not be found! [FAILED]
Starting MySQL. [ OK ]
mysql起来之后,网站可以正常访问~~
思路要对,才能解决问题!~~~