VPS侦探论坛

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

这是什么问题啊

[复制链接]
发表于 2011-6-30 21:30:30 | 显示全部楼层 |阅读模式

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is not runing!
Shutting down php_fpm . done
PHP-FPM program is stop
MySQL program is not runing!
Starting LNMP...
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
Nginx start successfully!
Starting php_fpm  done
PHP-FPM start successfully!
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
MySQL start successfully!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-1 07:24:00 | 显示全部楼层


nginx已经运行
mysql启动有问题,具体看/usr/local/mysql/var/主机名.err的错误日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-7-2 20:23:29 | 显示全部楼层

  1. 110630 20:47:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  2. 110630 20:47:07 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
  3. 110630 20:47:07 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  4. 110630 20:47:07 [ERROR] Aborting

  5. 110630 20:47:07 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  6. 110630 20:47:07 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended
  7. 110630 20:47:08 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  8. 110630 20:47:08 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
  9. 110630 20:47:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  10. 110630 20:47:08 [ERROR] Aborting

  11. 110630 20:47:08 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  12. 110630 20:47:08 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended
  13. 110630 21:00:05 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  14. 110630 21:00:06 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
  15. 110630 21:00:06 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  16. 110630 21:00:06 [ERROR] Aborting

  17. 110630 21:00:06 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  18. 110630 21:00:06 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended
  19. 110630 21:00:08 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  20. 110630 21:00:09 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
  21. 110630 21:00:09 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  22. 110630 21:00:09 [ERROR] Aborting

  23. 110630 21:00:09 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  24. 110630 21:00:09 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended
  25. 110630 21:29:09 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  26. 110630 21:29:09 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
  27. 110630 21:29:09 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  28. 110630 21:29:09 [ERROR] Aborting

  29. 110630 21:29:09 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  30. 110630 21:29:09 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-3 10:42:28 | 显示全部楼层



已经有mysql再运行或端口被占用,ps aux结束掉所有的mysql进程再启动试试
或用lsof看看什么程序占用了mysql的端口。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-7-3 12:19:22 | 显示全部楼层

  1. [root@AY1106301049283 lnmp0.7]# ps aux
  2. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
  3. root 1 0.0 0.0 10348 692 ? Ss Jun30 0:01 init [5]
  4. root 2 0.0 0.0 0 0 ? S< Jun30 0:03 [migration/0]
  5. root 3 0.0 0.0 0 0 ? SN Jun30 0:00 [ksoftirqd/0]
  6. root 4 0.0 0.0 0 0 ? S< Jun30 0:00 [watchdog/0]
  7. root 5 0.0 0.0 0 0 ? S< Jun30 0:02 [migration/1]
  8. root 6 0.0 0.0 0 0 ? SN Jun30 0:00 [ksoftirqd/1]
  9. root 7 0.0 0.0 0 0 ? S< Jun30 0:00 [watchdog/1]
  10. root 8 0.0 0.0 0 0 ? S< Jun30 0:00 [events/0]
  11. root 9 0.0 0.0 0 0 ? S< Jun30 0:00 [events/1]
  12. root 10 0.0 0.0 0 0 ? S< Jun30 0:00 [khelper]
  13. root 23 0.0 0.0 0 0 ? S< Jun30 0:00 [kthread]
  14. root 28 0.0 0.0 0 0 ? S< Jun30 0:00 [kblockd/0]
  15. root 29 0.0 0.0 0 0 ? S< Jun30 0:00 [kblockd/1]
  16. root 30 0.0 0.0 0 0 ? S< Jun30 0:00 [kacpid]
  17. root 75 0.0 0.0 0 0 ? S< Jun30 0:00 [cqueue/0]
  18. root 76 0.0 0.0 0 0 ? S< Jun30 0:00 [cqueue/1]
  19. root 79 0.0 0.0 0 0 ? S< Jun30 0:00 [khubd]
  20. root 81 0.0 0.0 0 0 ? S< Jun30 0:00 [kseriod]
  21. root 156 0.0 0.0 0 0 ? S Jun30 0:00 [pdflush]
  22. root 157 0.0 0.0 0 0 ? S< Jun30 0:00 [kswapd0]
  23. root 158 0.0 0.0 0 0 ? S< Jun30 0:00 [aio/0]
  24. root 159 0.0 0.0 0 0 ? S< Jun30 0:00 [aio/1]
  25. root 296 0.0 0.0 0 0 ? S< Jun30 0:00 [kpsmoused]
  26. root 309 0.0 0.0 0 0 ? S< Jun30 0:00 [xenwatch]
  27. root 310 0.0 0.0 0 0 ? S< Jun30 0:00 [xenbus]
  28. root 338 0.0 0.0 0 0 ? S< Jun30 0:00 [ata/0]
  29. root 339 0.0 0.0 0 0 ? S< Jun30 0:00 [ata/1]
  30. root 340 0.0 0.0 0 0 ? S< Jun30 0:00 [ata_aux]
  31. root 350 0.0 0.0 0 0 ? S< Jun30 0:00 [kstriped]
  32. root 369 0.0 0.0 0 0 ? S< Jun30 0:09 [kjournald]
  33. root 395 0.0 0.0 0 0 ? S< Jun30 0:00 [kauditd]
  34. root 432 0.0 0.0 13036 1228 ? S<S -d
  35. root 1337 0.0 0.0 0 0 ? S< Jun30 0:00 [kmpathd/0]
  36. root 1338 0.0 0.0 0 0 ? S< Jun30 0:00 [kmpathd/1]
  37. root 1339 0.0 0.0 0 0 ? S< Jun30 0:00 [kmpath_handle]
  38. root 1368 0.0 0.0 0 0 ? S< Jun30 0:00 [kjournald]
  39. root 1370 0.0 0.0 0 0 ? S< Jun30 0:00 [kjournald]
  40. root 1575 0.0 0.0 0 0 ? S< Jun30 0:00 [iscsi_eh]
  41. root 1598 0.0 0.0 0 0 ? S< Jun30 0:00 [iw_cxgb3]
  42. root 1627 0.0 0.0 0 0 ? S< Jun30 0:00 [ib_addr]
  43. root 1635 0.0 0.0 0 0 ? S< Jun30 0:00 [ib_mcast]
  44. root 1636 0.0 0.0 0 0 ? S< Jun30 0:00 [ib_inform]
  45. root 1637 0.0 0.0 0 0 ? S< Jun30 0:00 [local_sa]
  46. root 1641 0.0 0.0 0 0 ? S< Jun30 0:00 [iw_cm_wq]
  47. root 1645 0.0 0.0 0 0 ? S< Jun30 0:00 [ib_cm/0]
  48. root 1647 0.0 0.0 0 0 ? S< Jun30 0:00 [ib_cm/1]
  49. root 1650 0.0 0.0 0 0 ? S< Jun30 0:00 [rdma_cm]
  50. root 1659 0.0 0.0 38820 576 ? Ssl Jun30 0:01 brcm_iscsiuio
  51. root 1665 0.0 0.0 3988 436 ? Ss Jun30 0:00 iscsid
  52. root 1667 0.0 0.1 4480 2432 ? S<LS Jun30 iscsid
  53. root 2086 0.0 0.0 27332 844 ? S<SL Jun30 0:01 auditd
  54. root 2088 0.0 0.0 81808 800 ? S<SL sbin 0:00 Jun30 audispd
  55. root 2110 0.0 0.0 5908 676 ? Ss Jun30 0:00 syslogd -m 0
  56. root 2113 0.0 0.0 3804 436 ? Ss Jun30 0:00 klogd -x
  57. root 2123 0.0 0.0 10760 392 ? Ss Jun30 0:01 irqbalance
  58. rpc 2141 0.0 0.0 8052 664 ? Ss Jun30 0:00 portmap
  59. root 2168 0.0 0.0 0 0 ? S< Jun30 0:00 [rpciod/0]
  60. root 2169 0.0 0.0 0 0 ? S< Jun30 0:00 [rpciod/1]
  61. root 2176 0.0 0.0 10160 816 ? Ss Jun30 0:00 rpc.statd
  62. root 2200 0.0 0.0 49616 732 ? Ss Jun30 0:00 rpc.idmapd
  63. dbus 2215 0.0 0.0 21364 1020 ? Ss Jun30 0:00 dbus-daemon --s
  64. root 2230 0.0 0.0 10432 796 ? Ss Jun30 0:00 /usr/sbin/hcid
  65. root 2236 0.0 0.0 5936 548 ? Ss Jun30 0:00 /usr/sbin/sdpd
  66. root 2258 0.0 0.0 0 0 ? S< Jun30 0:00 [krfcommd]
  67. root 2295 0.0 0.0 31392 1372 ? Ssl Jun30 0:00 pcscd
  68. root 2305 0.0 0.0 3800 584 ? Ss Jun30 0:00 /usr/sbin/acpid
  69. root 2319 0.0 0.0 8516 484 ? Ss Jun30 0:00 /usr/bin/hidd -
  70. root 2345 0.0 0.1 54392 1548 ? Ssl Jun30 0:00 automount
  71. root 2362 0.0 0.0 26320 528 ? Ss Jun30 0:00 ./hpiod
  72. root 2367 0.0 0.4 153072 6716 ? S Jun30 0:00 python ./hpssd.
  73. root 2380 0.0 0.0 63508 1220 ? Ss Jun30 0:00 /usr/sbin/sshd
  74. root 2389 0.0 0.1 134048 2620 ? Ss Jun30 0:00 cupsd
  75. root 2403 0.0 0.0 21644 936 ? Ss Jun30 0:00 xinetd -stayali
  76. uuidd 2436 0.0 0.0 60956 136 ? Ss Jun30 0:00 /usr/sbin/uuidd
  77. root 2445 0.0 0.0 6452 384 ? Ss Jun30 0:00 gpm -m /dev/inp
  78. root 2454 0.0 0.0 74820 1168 ? Ss Jun30 0:00 crond
  79. xfs 2487 0.0 0.1 21068 1860 ? Ss Jun30 0:00 xfs -droppriv -
  80. root 2504 0.0 0.0 18740 464 ? Ss Jun30 0:00 /usr/sbin/atd
  81. avahi 2534 0.0 0.2 24996 3156 ? Ss Jun30 2:03 avahi-daemon: r
  82. avahi 2535 0.0 0.0 23148 340 ? Ss Jun30 0:00 avahi-daemon: c
  83. root 2592 0.0 0.4 170816 7444 ? Ss Jun30 0:00 /aliyun/webserv
  84. root 2603 0.0 0.0 65928 1308 ? S Jun30 0:00 /bin/sh /aliyun
  85. www 2679 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
  86. www 2684 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
  87. www 2685 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
  88. mysql 2711 0.0 1.2 152084 19544 ? Sl Jun30 0:00 /aliyun/webserv
  89. root 2725 0.0 1.0 259060 15844 ? SN Jun30 0:00 /usr/bin/python
  90. root 2728 0.0 0.0 12916 1184 ? SN Jun30 0:00 /usr/libexec/ga
  91. root 2740 0.0 0.0 18416 476 ? S Jun30 0:00 /usr/sbin/smart
  92. root 2745 0.0 0.0 3792 488 tty1 Ss+ Jun30 0:00 /sbin/mingetty
  93. root 2746 0.0 0.0 3792 492 tty2 Ss+ Jun30 0:00 /sbin/mingetty
  94. root 2749 0.0 0.0 3792 492 tty3 Ss+ Jun30 0:00 /sbin/mingetty
  95. root 2751 0.0 0.0 3792 488 tty4 Ss+ Jun30 0:00 /sbin/mingetty
  96. root 2752 0.0 0.0 3792 492 tty5 Ss+ Jun30 0:00 /sbin/mingetty
  97. root 2770 0.0 0.0 3792 492 tty6 Ss+ Jun30 0:00 /sbin/mingetty
  98. root 2772 0.0 0.1 167588 2604 ? Ss Jun30 0:00 /usr/sbin/gdm-b
  99. root 2848 0.0 0.1 194700 2368 ? S Jun30 0:00 /usr/sbin/gdm-b
  100. root 2850 0.0 0.2 189820 4184 ? Sl Jun30 0:00 /usr/libexec/gd
  101. root 2851 0.0 0.3 79504 5712 tty7 Ss+ Jun30 0:00 /usr/bin/Xorg :
  102. gdm 2874 0.0 1.0 220932 16304 ? Ss Jun30 0:00 /usr/libexec/gd
  103. www 2936 0.0 0.3 170816 5048 ? S Jun30 0:00 /aliyun/webserv
  104. root 12990 0.0 0.3 145792 4872 ? Ss 11:28 0:00 /usr/local/php/
  105. www 12991 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
  106. www 12992 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
  107. www 12993 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
  108. www 12995 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
  109. www 12996 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
  110. root 13130 0.0 0.2 91040 3356 ? Rs 11:32 0:02 sshd: root@pts/
  111. root 13132 0.0 0.0 66064 1536 pts/1 Ss 11:32 0:00 -bash
  112. root 13255 0.0 0.2 90908 3352 ? Ss 11:34 0:00 sshd: root@nott
  113. root 13257 0.0 0.1 54752 2104 ? Ss 11:34 0:00 /usr/libexec/op
  114. root 24352 0.0 0.3 145792 5028 ? Ss 12:09 0:00 /usr/local/php/
  115. www 24353 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
  116. www 24354 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
  117. www 24355 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
  118. www 24356 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
  119. www 24357 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
  120. root 24399 0.0 0.0 65592 984 pts/1 R+ 12:17 0:00 ps aux
  121. www 28815 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
  122. www 28816 0.0 0.3 170816 5044 ? S Jul02 0:00 /aliyun/webserv
  123. www 28818 0.0 0.3 170816 5044 ? S Jul02 0:00 /aliyun/webserv
  124. www 28819 0.0 0.3 170816 5048 ? S Jul02 0:00 /aliyun/webserv
  125. www 28820 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
  126. www 28821 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
  127. root 30324 0.0 0.0 0 0 ? S 11:57 0:00 [pdflush]
复制代码

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

 楼主| 发表于 2011-7-3 12:20:59 | 显示全部楼层

  1. Usage: /root/lnmp {start|stop|reload|restart|kill|status}
  2. =========================================================================
  3. Stoping LNMP...
  4. Nginx program is not runing!
  5. Shutting down php_fpm . done
  6. PHP-FPM program is stop
  7. MySQL program is not runing!
  8. Starting LNMP...
  9. [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
  10. [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
  11. [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
  12. [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
  13. [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
  14. [emerg]: still could not bind()
  15. Nginx start successfully!
  16. Starting php_fpm done
  17. PHP-FPM start successfully!
  18. Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
  19. MySQL start successfully!
复制代码
发表于 2011-7-3 14:18:30 | 显示全部楼层

那就是其他程序有占用mysql端口的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-20 21:27 , Processed in 0.029113 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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