I run a server executable in Centos using the following command "nohup server &". Now I need to kill the process "server". But I tried "ps -a" command to get the PID but I couldnt get the process. Now how to kill the "server" now?
I run a server executable in Centos using the following command nohup server &
Share
ps auxwww|grep -i 'server'should return all process which hasserverin them. Otherwise, server may have already stopped.You should be able to determine the PID (and store it in a file) as follows: