1、查看端口下进程:netstat -ntlp|grep 809
[root@host-10-0-104-2 serv_rights]# netstat -ntlp|grep 809 tcp6 0 0 :::8093 :::* LISTEN 528/java tcp6 0 0 :::8098 :::* LISTEN 5154/java tcp6 0 0 :::8099 :::* LISTEN 4190/java2、查看具体文件的服务情况:ps -ef|grep right
[root@host-10-0-104-2 serv_rights]# ps -ef|grep right root 4190 1 2 9月02 pts/1 00:25:01 java -Dtsf_consul_ip=10.0.197.152 -Dtsf_consul_port=8500 -Xms1024m -Xmx2048m -XX:-UseGCOverheadLimit -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -jar -Duser.timezone=GMT+8 ./rights-property.jar --spring.config.location=/data/devsrv/serv_rights/conf/ root 5154 1 2 9月02 pts/0 00:25:12 java -Dtsf_consul_ip=10.0.197.152 -Dtsf_consul_port=8500 -Xms1024m -Xmx2048m -XX:-UseGCOverheadLimit -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -jar -Duser.timezone=GMT+8 ./rights-property.jar --spring.config.location=/data/devsrv/serv_rights/conf2/ root 26898 25410 0 11:21 pts/3 00:00:00 grep --color=auto right3、杀死进程:kill -9 27685
[root@host-10-0-104-2 serv_rights]# kill -9 27685