MichalK73 Well-Known Member Licensed User Longtime User May 12, 2016 #1 I run the server console Code: java -jar my_prog.jar the program works, but when you stop working for reasons of errors kill process java Code: killall -9 java and there is no process of my server, but the server can re-uruchmić as TCP port is already in use. How to deal with it?
I run the server console Code: java -jar my_prog.jar the program works, but when you stop working for reasons of errors kill process java Code: killall -9 java and there is no process of my server, but the server can re-uruchmić as TCP port is already in use. How to deal with it?
B billzhan Active Member Licensed User Longtime User May 12, 2016 #2 Code: 'path /root/yourjar/Objects/result.jar cd /root/yourjar/Objects/ nohup java -jar result.jar 2>&1 & echo $! > /root/b4jserver.pid ' pid echos to /root/b4jserver.pid ' kill -9 pid Upvote 0
Code: 'path /root/yourjar/Objects/result.jar cd /root/yourjar/Objects/ nohup java -jar result.jar 2>&1 & echo $! > /root/b4jserver.pid ' pid echos to /root/b4jserver.pid ' kill -9 pid