wzcm87 发表于 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...
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: still could not bind()
Nginx start successfully!
Starting php_fpmdone
PHP-FPM start successfully!
Starting MySQL.Manager of pid-file quit without updating fi
MySQL start successfully!

licess 发表于 2011-7-1 07:24:00

nginx已经运行
mysql启动有问题,具体看/usr/local/mysql/var/主机名.err的错误日志

wzcm87 发表于 2011-7-2 20:23:29

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

110630 20:47:07 /usr/local/mysql/libexec/mysqld: Shutdown complete

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

110630 20:47:08 /usr/local/mysql/libexec/mysqld: Shutdown complete

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

110630 21:00:06 /usr/local/mysql/libexec/mysqld: Shutdown complete

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

110630 21:00:09 /usr/local/mysql/libexec/mysqld: Shutdown complete

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

110630 21:29:09 /usr/local/mysql/libexec/mysqld: Shutdown complete

110630 21:29:09 mysqld_safe mysqld from pid file /usr/local/mysql/var/AY1106301049283.pid ended

licess 发表于 2011-7-3 10:42:28

已经有mysql再运行或端口被占用,ps aux结束掉所有的mysql进程再启动试试
或用lsof看看什么程序占用了mysql的端口。

wzcm87 发表于 2011-7-3 12:19:22

# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10348 692 ? Ss Jun30 0:01 init
root 2 0.0 0.0 0 0 ? S< Jun30 0:03
root 3 0.0 0.0 0 0 ? SN Jun30 0:00
root 4 0.0 0.0 0 0 ? S< Jun30 0:00
root 5 0.0 0.0 0 0 ? S< Jun30 0:02
root 6 0.0 0.0 0 0 ? SN Jun30 0:00
root 7 0.0 0.0 0 0 ? S< Jun30 0:00
root 8 0.0 0.0 0 0 ? S< Jun30 0:00
root 9 0.0 0.0 0 0 ? S< Jun30 0:00
root 10 0.0 0.0 0 0 ? S< Jun30 0:00
root 23 0.0 0.0 0 0 ? S< Jun30 0:00
root 28 0.0 0.0 0 0 ? S< Jun30 0:00
root 29 0.0 0.0 0 0 ? S< Jun30 0:00
root 30 0.0 0.0 0 0 ? S< Jun30 0:00
root 75 0.0 0.0 0 0 ? S< Jun30 0:00
root 76 0.0 0.0 0 0 ? S< Jun30 0:00
root 79 0.0 0.0 0 0 ? S< Jun30 0:00
root 81 0.0 0.0 0 0 ? S< Jun30 0:00
root 156 0.0 0.0 0 0 ? S Jun30 0:00
root 157 0.0 0.0 0 0 ? S< Jun30 0:00
root 158 0.0 0.0 0 0 ? S< Jun30 0:00
root 159 0.0 0.0 0 0 ? S< Jun30 0:00
root 296 0.0 0.0 0 0 ? S< Jun30 0:00
root 309 0.0 0.0 0 0 ? S< Jun30 0:00
root 310 0.0 0.0 0 0 ? S< Jun30 0:00
root 338 0.0 0.0 0 0 ? S< Jun30 0:00
root 339 0.0 0.0 0 0 ? S< Jun30 0:00
root 340 0.0 0.0 0 0 ? S< Jun30 0:00
root 350 0.0 0.0 0 0 ? S< Jun30 0:00
root 369 0.0 0.0 0 0 ? S< Jun30 0:09
root 395 0.0 0.0 0 0 ? S< Jun30 0:00
root 432 0.0 0.0 13036 1228 ? S<S -d
root 1337 0.0 0.0 0 0 ? S< Jun30 0:00
root 1338 0.0 0.0 0 0 ? S< Jun30 0:00
root 1339 0.0 0.0 0 0 ? S< Jun30 0:00
root 1368 0.0 0.0 0 0 ? S< Jun30 0:00
root 1370 0.0 0.0 0 0 ? S< Jun30 0:00
root 1575 0.0 0.0 0 0 ? S< Jun30 0:00
root 1598 0.0 0.0 0 0 ? S< Jun30 0:00
root 1627 0.0 0.0 0 0 ? S< Jun30 0:00
root 1635 0.0 0.0 0 0 ? S< Jun30 0:00
root 1636 0.0 0.0 0 0 ? S< Jun30 0:00
root 1637 0.0 0.0 0 0 ? S< Jun30 0:00
root 1641 0.0 0.0 0 0 ? S< Jun30 0:00
root 1645 0.0 0.0 0 0 ? S< Jun30 0:00
root 1647 0.0 0.0 0 0 ? S< Jun30 0:00
root 1650 0.0 0.0 0 0 ? S< Jun30 0:00
root 1659 0.0 0.0 38820 576 ? Ssl Jun30 0:01 brcm_iscsiuio
root 1665 0.0 0.0 3988 436 ? Ss Jun30 0:00 iscsid
root 1667 0.0 0.1 4480 2432 ? S<LS Jun30 iscsid
root 2086 0.0 0.0 27332 844 ? S<SL Jun30 0:01 auditd
root 2088 0.0 0.0 81808 800 ? S<SL sbin 0:00 Jun30 audispd
root 2110 0.0 0.0 5908 676 ? Ss Jun30 0:00 syslogd -m 0
root 2113 0.0 0.0 3804 436 ? Ss Jun30 0:00 klogd -x
root 2123 0.0 0.0 10760 392 ? Ss Jun30 0:01 irqbalance
rpc 2141 0.0 0.0 8052 664 ? Ss Jun30 0:00 portmap
root 2168 0.0 0.0 0 0 ? S< Jun30 0:00
root 2169 0.0 0.0 0 0 ? S< Jun30 0:00
root 2176 0.0 0.0 10160 816 ? Ss Jun30 0:00 rpc.statd
root 2200 0.0 0.0 49616 732 ? Ss Jun30 0:00 rpc.idmapd
dbus 2215 0.0 0.0 21364 1020 ? Ss Jun30 0:00 dbus-daemon --s
root 2230 0.0 0.0 10432 796 ? Ss Jun30 0:00 /usr/sbin/hcid
root 2236 0.0 0.0 5936 548 ? Ss Jun30 0:00 /usr/sbin/sdpd
root 2258 0.0 0.0 0 0 ? S< Jun30 0:00
root 2295 0.0 0.0 31392 1372 ? Ssl Jun30 0:00 pcscd
root 2305 0.0 0.0 3800 584 ? Ss Jun30 0:00 /usr/sbin/acpid
root 2319 0.0 0.0 8516 484 ? Ss Jun30 0:00 /usr/bin/hidd -
root 2345 0.0 0.1 54392 1548 ? Ssl Jun30 0:00 automount
root 2362 0.0 0.0 26320 528 ? Ss Jun30 0:00 ./hpiod
root 2367 0.0 0.4 153072 6716 ? S Jun30 0:00 python ./hpssd.
root 2380 0.0 0.0 63508 1220 ? Ss Jun30 0:00 /usr/sbin/sshd
root 2389 0.0 0.1 134048 2620 ? Ss Jun30 0:00 cupsd
root 2403 0.0 0.0 21644 936 ? Ss Jun30 0:00 xinetd -stayali
uuidd 2436 0.0 0.0 60956 136 ? Ss Jun30 0:00 /usr/sbin/uuidd
root 2445 0.0 0.0 6452 384 ? Ss Jun30 0:00 gpm -m /dev/inp
root 2454 0.0 0.0 74820 1168 ? Ss Jun30 0:00 crond
xfs 2487 0.0 0.1 21068 1860 ? Ss Jun30 0:00 xfs -droppriv -
root 2504 0.0 0.0 18740 464 ? Ss Jun30 0:00 /usr/sbin/atd
avahi 2534 0.0 0.2 24996 3156 ? Ss Jun30 2:03 avahi-daemon: r
avahi 2535 0.0 0.0 23148 340 ? Ss Jun30 0:00 avahi-daemon: c
root 2592 0.0 0.4 170816 7444 ? Ss Jun30 0:00 /aliyun/webserv
root 2603 0.0 0.0 65928 1308 ? S Jun30 0:00 /bin/sh /aliyun
www 2679 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
www 2684 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
www 2685 0.0 0.3 170816 5052 ? S Jun30 0:00 /aliyun/webserv
mysql 2711 0.0 1.2 152084 19544 ? Sl Jun30 0:00 /aliyun/webserv
root 2725 0.0 1.0 259060 15844 ? SN Jun30 0:00 /usr/bin/python
root 2728 0.0 0.0 12916 1184 ? SN Jun30 0:00 /usr/libexec/ga
root 2740 0.0 0.0 18416 476 ? S Jun30 0:00 /usr/sbin/smart
root 2745 0.0 0.0 3792 488 tty1 Ss+ Jun30 0:00 /sbin/mingetty
root 2746 0.0 0.0 3792 492 tty2 Ss+ Jun30 0:00 /sbin/mingetty
root 2749 0.0 0.0 3792 492 tty3 Ss+ Jun30 0:00 /sbin/mingetty
root 2751 0.0 0.0 3792 488 tty4 Ss+ Jun30 0:00 /sbin/mingetty
root 2752 0.0 0.0 3792 492 tty5 Ss+ Jun30 0:00 /sbin/mingetty
root 2770 0.0 0.0 3792 492 tty6 Ss+ Jun30 0:00 /sbin/mingetty
root 2772 0.0 0.1 167588 2604 ? Ss Jun30 0:00 /usr/sbin/gdm-b
root 2848 0.0 0.1 194700 2368 ? S Jun30 0:00 /usr/sbin/gdm-b
root 2850 0.0 0.2 189820 4184 ? Sl Jun30 0:00 /usr/libexec/gd
root 2851 0.0 0.3 79504 5712 tty7 Ss+ Jun30 0:00 /usr/bin/Xorg :
gdm 2874 0.0 1.0 220932 16304 ? Ss Jun30 0:00 /usr/libexec/gd
www 2936 0.0 0.3 170816 5048 ? S Jun30 0:00 /aliyun/webserv
root 12990 0.0 0.3 145792 4872 ? Ss 11:28 0:00 /usr/local/php/
www 12991 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
www 12992 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
www 12993 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
www 12995 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
www 12996 0.0 0.3 145792 4768 ? S 11:28 0:00 /usr/local/php/
root 13130 0.0 0.2 91040 3356 ? Rs 11:32 0:02 sshd: root@pts/
root 13132 0.0 0.0 66064 1536 pts/1 Ss 11:32 0:00 -bash
root 13255 0.0 0.2 90908 3352 ? Ss 11:34 0:00 sshd: root@nott
root 13257 0.0 0.1 54752 2104 ? Ss 11:34 0:00 /usr/libexec/op
root 24352 0.0 0.3 145792 5028 ? Ss 12:09 0:00 /usr/local/php/
www 24353 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
www 24354 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
www 24355 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
www 24356 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
www 24357 0.0 0.3 145792 4924 ? S 12:09 0:00 /usr/local/php/
root 24399 0.0 0.0 65592 984 pts/1 R+ 12:17 0:00 ps aux
www 28815 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
www 28816 0.0 0.3 170816 5044 ? S Jul02 0:00 /aliyun/webserv
www 28818 0.0 0.3 170816 5044 ? S Jul02 0:00 /aliyun/webserv
www 28819 0.0 0.3 170816 5048 ? S Jul02 0:00 /aliyun/webserv
www 28820 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
www 28821 0.0 0.3 170816 5040 ? S Jul02 0:00 /aliyun/webserv
root 30324 0.0 0.0 0 0 ? S 11:57 0:00

wzcm87 发表于 2011-7-3 12:20:59

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...
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: 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
MySQL start successfully!

licess 发表于 2011-7-3 14:18:30

那就是其他程序有占用mysql端口的。
页: [1]
查看完整版本: 这是什么问题啊