-
AWS Light sail 포트번호 바꾸는법 (feata:ChatGpt)Back end/Server 2023. 9. 22. 15:22
* 순서
- 톰캣 서버를 중지합니다.
: sudo service tomcat9 stop
1.톰캣의 server.xml 파일을 엽니다. 이 파일은 톰캣의 설정 파일 중 하나로, 일반적으로 {톰캣 설치 경로}/conf/server.xml 에 위치합니다.
2.server.xml 파일에서 Connector 섹션을 찾습니다. 기본적으로 HTTP 커넥터에 대한 설정이 들어가 있는데, 이 부분을 수정합니다.
기본적으로 Connector는 다음과 같이 나올 것입니다:
xml
Copy code
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
여기서 port 속성의 값을 5500으로 변경합니다:
=>
xml
Copy code
<Connector port="5500" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
파일을 저장하고 톰캣을 다시 시작합니다.
이제 톰캣은 포트 5500에서 실행됩니다. 이제 브라우저에서 http://localhost:5500/ 을 통해 톰캣에 접근할 수 있습니다.'Back end > Server' 카테고리의 다른 글
TC란 무엇인가? (0) 2024.02.16 ActiveX 방식과 NonActiveX 방식 (0) 2024.02.16 Linux 참고 사이트 (0) 2024.02.14 AWS LightSail 을 이용한 스프링 메이븐 프로젝트 배포(feat:ChatGpt) (0) 2023.10.29 Port번호 찾기 및 종료하기 (0) 2023.09.20