一台機器啟動兩個tomcat
server.xml connector里面port換一個新端口,然后啟動進程
啟動不了,日志里面catalina.out里面總顯示
Illegal access: this web application instance has been stopped already. Could not load net.rubyeye.xmemcached.exception.UnknownCommandException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException。。。。。。。。
什么意思?沒明白?指的是什么?
找到問題很重要,在localhost的log日志文件下面看吧,這里面就顯示了具體錯誤原因
訪問zookeeper的端口沖突
換一個新端口就ok了,在一台服務器上,一個端口對應一個進程。