Intellij and windows1o system throwing the 'Error running Deploy only YYYY: Address localhost:8081 is already in use'. Need your suggestions to resolve this error in Deploying only YYYY.
Asked
Active
Viewed 568 times
-1
-
kill java process and restart your program. – Ataur Rahman Munna May 16 '17 at 10:15
1 Answers
1
Faced the same issue some days back,reason is other web server is already running on that port,what you need to do is
1.open cmd and type netstat -ano
and check for the process running on port 8081 and note the PID
2.Now go to Task Manager,under services tab check for a running web service having same PID,delete that process.
3.Now restart the Tomcat server.
![](../../users/profiles/7773888.webp)
raviraja
- 726
- 6
- 24
-
Thank you very much for responding to my question. When I ran the netstat -o command, I did not find any process running with port 8081. Wondering in this scenario , what should be the solution. – user3693776 May 18 '17 at 09:22
-
try this once netstat -a -n -o | find "8081" ,if you don't get anything means there is no process running on port 8081 – raviraja May 18 '17 at 09:26
-
if the solution worked for you,please up vote and accept it as answer,thank you. – raviraja May 29 '17 at 09:43