VPS侦探论坛

 找回密码
 注册
查看: 9530|回复: 6

/usr/local/mysql/var不小心删除了/usr/local/mysql/var下面的一个叫vps457988 pid类似的文件

[复制链接]
发表于 2011-3-25 20:19:18 | 显示全部楼层 |阅读模式

/usr/local/mysql/var不小心删除了/usr/local/mysql/var下面的一个叫vps457988 pid类似的文件
现在
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
Shutting down php_fpm . done
Starting php_fpm  done
-bash-3.2#
-bash-3.2# service mysqld restart
mysqld: unrecognized service
-bash-3.2# service mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
-bash-3.2#
请问怎么办?!!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-25 20:34:42 | 显示全部楼层


我重启VPS之后,执行
-bash-3.2# service mysql status
SUCCESS! MySQL running (1225)
mysql的端口不是3306了   现在
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm . done
Starting php_fpm  done
-bash-3.2#
-bash-3.2#
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-3-25 20:36:40 | 显示全部楼层

但是现在发现一个问题   重启前我安装了denyhosts,结果现在怎么都putty不了了,只能VPN,怎么回事?怎么办?  求高手解决!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-25 20:48:04 | 显示全部楼层



重启mysql之后
多了两个文件vps457948.err和vps457948.pid
好像刚刚我就是因为删除了vps457948.pid这个文件才这样的(我在删除mysql日志的时候以为这个也是日志……
现在vps457948.err里面的内容
110325 20:10:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110325 20:10:45 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
110325 20:10:45 [ERROR] Do you already have another mysqld server running on port: 3306 ?
110325 20:10:45 [ERROR] Aborting

110325 20:10:45 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110325 20:10:45 mysqld_safe mysqld from pid file /usr/local/mysql/var/vps457948.pid ended
110325 20:13:15 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110325 20:13:15 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
110325 20:13:15 [ERROR] Do you already have another mysqld server running on port: 3306 ?
110325 20:13:15 [ERROR] Aborting

110325 20:13:15 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110325 20:13:15 mysqld_safe mysqld from pid file /usr/local/mysql/var/vps457948.pid ended
110325 20:25:16 mysqld_safe mysqld from pid file /usr/local/mysql/var/vps457948.pid ended
110325 20:25:55 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110325 20:25:55 [Note] Event Scheduler: Loaded 0 events
110325 20:25:55 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.48'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110325 20:33:33 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110325 20:33:33 [Note] Event Scheduler: Purging the queue. 0 events
110325 20:33:33 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110325 20:33:33 mysqld_safe mysqld from pid file /usr/local/mysql/var/vps457948.pid ended
110325 20:33:34 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110325 20:33:34 [Note] Event Scheduler: Loaded 0 events
110325 20:33:34 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.48'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

vps457948.pid里面的内容2140
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-3-25 20:53:20 | 显示全部楼层

现在查看了一下端口    好像又是3306了    很奇怪     虽然问题没了,但是心结没打开   高手解答!!:)
-bash-3.2# lsof -i:3306
COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
mysqld  2140 mysql    3u  IPv4   6173       TCP *:mysql (LISTEN)

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-3-25 21:37:06 | 显示全部楼层

vps457988 pid 是当前mysql的进程ID的保存文件,误删没事,重启会自动生成。
 楼主| 发表于 2011-3-25 22:56:10 | 显示全部楼层

嗯  现在已经好了  多谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-15 14:40 , Processed in 0.027756 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表