15
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

localhost:8080を使用しているプロセスを調べてkillする方法。

localhost:8080を使用しているプロセスを調べてkillする方法。

sudo lsof -P -i:8080 
COMMAND PID  USER   FD   TYPE      DEVICE SIZE/OFF NODE NAME
java    123 admin   11u  IPv6      0t0  TCP *:8080 

PIDの番号をkillする。

sudo kill -9 123

 
pom.xml
Springでポートをkillせず自動更新してくれる。

<!-- 編集したら自動更新される -->
<dependency>
    <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
</dependency>
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
15
Help us understand the problem. What are the problem?