# service tomcat start
Starting tomcat: Error code 4 [失败]
但是停掉的服务确实启动了,但是日志依旧打不出来,是空间不足?
log:
[root@ocdata07 logs]# tail -f catalina.out
at sun.nio.ch.Net.socket(Net.java:423)
at sun.nio.ch.Net.socket(Net.java:416)
at sun.nio.ch.SocketChannelImpl.<init>(SocketChannelImpl.java:104)
at sun.nio.ch.SelectorProviderImpl.openSocketChannel(SelectorProviderImpl.java:60)
at java.nio.channels.SocketChannel.open(SocketChannel.java:142)
at org.apache.zookeeper.ClientCnxnSocketNIO.createSock(ClientCnxnSocketNIO.java:261)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:285)
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:967)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003)
2016-10-21 08:31:24,016 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1-SendThread(10.19.12.49:2181)] INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 10.19.12.49/1
日志之后就不再输出了
看看logs中日志文件信息,这个对排错关键