Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Jan 08, 2020 6:23:07 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be running.
Jan 08, 2020 6:02:28 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Error stopping Catalina
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:493)
at java.base/sun.nio.ch.Net.connect(Net.java:482)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339)
at java.base/java.net.Socket.connect(Socket.java:603)
at java.base/java.net.Socket.connect(Socket.java:552)
at java.base/java.net.Socket.(Socket.java:475)
at java.base/java.net.Socket.(Socket.java:249)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:513)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:389)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:479)
위와 같은
SEVERE: Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be running.
에러가 나타나면
1. server.xml에서
<Server port="8005" shutdown="SHUTDOWN"> 부분을 확인해주고
2. netestat -anpt|grep 8009로 프로세스번호를 알아낸후
3. kill -9 [프로세스번호]
위 방법을 사용하여 해결한다.
'운영체제 > 리눅스' 카테고리의 다른 글
[리눅스 ] openssl 설치하기 (0) | 2020.01.21 |
---|---|
리눅스 JAVA 자바 컴파일해보기 (0) | 2020.01.16 |
Tomcat Path, Context Path, Root Path (0) | 2020.01.08 |
ssh Port 바꾸기 (0) | 2020.01.08 |
ssh Root로 로그인 설정하기 (0) | 2020.01.08 |