Search This Blog

Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Wednesday, May 31, 2023

Linux Ubuntu - See Running process with port number and details for that service

To see the pid details of running process

step 1.

lsof -i TCP:<port number>


lsof -i TCP:99


step 2

ps -ef | grep <pid>

ps -ef | grep 39100


step 3

kill -9 <pid>

Monday, February 11, 2019

Install Java Jar Module as Windows Service

1.  Install nssm.exe
2. Go to that nsse.exe folder
3. type like below command

nssm.exe install "Test-JAR-Service" "C:\Program Files\Java\jdk1.8.0_77\bin\java.exe" "-jar D:\Test\Test.jar"


open services.msc from start run, there u can see ur service,
enjoy


To remove the service
4. sc delete "Test-JAR-Service"

Hit Counter


View My Stats