일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 차트
- ELASTIC
- License
- matplotlib
- flask
- plugin
- 파이썬
- analyzer test
- Mac
- Kafka
- aggs
- aggregation
- licence delete curl
- high level client
- Test
- Python
- Java
- Elasticsearch
- zip 암호화
- sort
- docker
- MySQL
- token filter test
- license delete
- springboot
- 900gle
- API
- TensorFlow
- query
- zip 파일 암호화
- Today
- Total
개발잡부
[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!
'JAVA > java' 카테고리의 다른 글
[java] LocalDateTime (0) | 2023.01.29 |
---|---|
[java]Array.Sort, Collections.sort (0) | 2022.09.18 |
[java] java 라이브러리 스택(Stack) 관련 메서드 (0) | 2022.07.26 |
[java] HashMap (0) | 2022.04.01 |
CommandLineRunner (2) | 2022.03.22 |