ServerableConnectionManager - Failure listening to socket on port '8066'

在启动amoeba的时候,出现如下错误:

2018-11-24 13:05:05,905 ERROR net.ServerableConnectionManager - Failure listening to socket on port '8066'.
java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:444)
	at sun.nio.ch.Net.bind(Net.java:436)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at com.meidusa.toolkit.net.ServerableConnectionManager.willStart(ServerableConnectionManager.java:144)
	at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:59)
 2018-11-24 13:05:06 [INFO] Project Name=Amoeba-MySQL, PID=2458 , System shutdown ....
 2018-11-24 13:13:10 [INFO] Project Name=Amoeba-MySQL, PID=2516 , starting...
log4j:WARN log4j config load completed from file:/home/amoeba-mysql-3.0.4-BETA/conf/log4j.xml
2018-11-24 13:13:15,813 INFO  context.MysqlRuntimeContext - Amoeba for Mysql current versoin=5.1.45-mysql-amoeba-proxy-3.0.4-BETA
log4j:WARN ip access config load completed from file:/home/amoeba-mysql-3.0.4-BETA/conf/access_list.conf
2018-11-24 13:13:35,259 ERROR net.ServerableConnectionManager - Failure listening to socket on port '8066'.
java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:444)
	at sun.nio.ch.Net.bind(Net.java:436)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at com.meidusa.toolkit.net.ServerableConnectionManager.willStart(ServerableConnectionManager.java:144)
	at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:59)
 2018-11-24 13:13:35 [INFO] Project Name=Amoeba-MySQL, PID=2516 , System shutdown ....

按照提示的意思,我的amoeba地址已经被占用,可是地址不就是ip吗,ip不就我自己在使用吗?

问题到底出现在哪儿呢?

看下进程

[root@zhoulei conf]# ps -ef |grep amoeba
root      2413     1  1 13:01 pts/1    00:00:30 /home/jdk1.7/bin/java -server -Xms512m -Xmx1024m -Xss512k -XX:PermSize=16m -XX:MaxPermSize=96m -Dproject.home=/home/amoeba-mysql-3.0.4-BETA -Damoeba.home=/home/amoeba-mysql-3.0.4-BETA -Dproject.name=Amoeba-MySQL -Dproject.output=/home/amoeba-mysql-3.0.4-BETA/logs -Dignore.signals=1,2 -Dclassworlds.conf=/home/amoeba-mysql-3.0.4-BETA/bin/launcher.classpath -classpath /home/amoeba-mysql-3.0.4-BETA/lib/plexus-classworlds-2.4.2-HEXNOVA.jar org.codehaus.classworlds.Launcher
root      2691  2247  0 13:43 pts/1    00:00:00 grep amoeba

kill -9 2413

重新启动

 还是报错

直接把那另外一个root也杀死

然后resource /etc/profile

然后启动,成功

猜你喜欢

转载自blog.csdn.net/zhou_438/article/details/84451438
今日推荐