1.查看主机信息 # more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 xyn-redhat localhost.localdomain localhost 2.查看进程 # ps -aux|grep java //显示所有进程名中包含java字符串的进
错误信息:Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the othe
#!/usr/bin/python3 import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex(('10.10.130.111',8080)) if 0 == result: print("Port is open") else: print("Port is not open,return code:%s" % result)