LoginSignup
29
16

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-09-12

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>
29
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
16