[java] Web server failed to start. Port 8080 was already in use.
local 에서 개발을 하다보면 포트번호가 충돌나서 아래와 같은 에러가 발생한다.
springboot 의 embedded tomcat 을 사용하고 있었는데 brew 를 통해서 하둡을 설치하다 톰켓이 설치되어 에러가 발생
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 9090 was already in use.
Action:
Identify and stop the process that's listening on port 9090 or configure this application to listen on another port.


Process finished with exit code 1
(base) ➜ ~ ps -ef | grep tomcat
501 827 1 0 9:09PM ?? 0:07.91 /usr/local/opt/openjdk/bin/java -Djava.util.logging.config.file=/usr/local/Cellar/tomcat@8/8.5.81/libexec/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/local/Cellar/tomcat@8/8.5.81/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat@8/8.5.81/libexec/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/Cellar/tomcat@8/8.5.81/libexec -Dcatalina.home=/usr/local/Cellar/tomcat@8/8.5.81/libexec -Djava.io.tmpdir=/usr/local/Cellar/tomcat@8/8.5.81/libexec/temp org.apache.catalina.startup.Bootstrap start
501 837 724 0 9:09PM ttys000 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn tomcat
아 이새끼 죽지도 않아.. 톰켓을 지워버릴까 하다가 포트를 안쓰는걸로 바꿔버림
#경로
cd /usr/local/Cellar/tomcat@8/8.5.81/libexec/conf
#파일 오픈
(base) ➜ conf vi server.xml
#검색
/8080
#수정
vim 편집기 i 명령
#저장
wq!
