As you see below jsvc.exe is running on 8910 with PID 23943.
[root@abc-163 ~]# netstat -tulpn | grep :8910
tcp6 0 0 :::8910 :::* LISTEN 23943/jsvc.exec
[root@abc-163 ~]# ps -lf -p 23943
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
5 S admi+ 23943 23942 3 80 0 - 2382184 hrtime Sep13 ? 12:01:07 jsvc.exec -
java-home /opt/CSCOcpm/jre -server -user admin -outfile /abc/bcd
My requirement is to disable 8910 port completely i.e nothing should listen on 8910. But when needed (after doing some UI action in my website), i want 8910 port should be enabled again and start listening just like before. Can you please suggest how do i achieve this?
I tried kiling the PID 23943 by doing
[root@abc-161 ~]# fuser -k 8910/tcp
8910/tcp: 20570
And it killed the process as well. After that i checked using the netstat command and confirmed that nothing was listening on 8910. Till this point it was fine. But after that how do i enable 8910 port again? How do i make sure same jsvc.exec should run on 8910 again?