Java.net.ConnectException:Connection Refused:no Further information
At Sun.nio.ch.SocketChannelImpl.checkConnect (Native Method)
At Sun.nio.ch.SocketChannelImpl.finishConnect (socketchannelimpl.java:739)
At Org.apache.zookeeper.ClientCnxnSocketNIO.doTransport (clientcnxnsocketnio.java:361)
At Org.apache.zookeeper.clientcnxn$sendthread.run (clientcnxn.java:1141)
2018-03-20 16:29:50,781 [Localhost-startstop-1-sendthread (192.168.220.129:2181)] [ Org.apache.zookeeper.clientcnxnsocketnio]-[debug] Ignoring exception during shutdown input
This error will be reported at the start of the launch.
See the error, there
The first one depends on whether your server is really running, such as server loading exceptions during startup, which can cause the service to start unsuccessfully.
The second might be the cause of the firewall, try shutting down the firewall
I start by shutting down the firewall and then starting the service
You can use the command to turn off the firewall under Linux
Service iptables stop to turn off the firewall
When I start the service, after shutting down the firewall, the program will start normally
Exception Java.net.ConnectException:Connection Refused:no further information