JavaEE Developer 와 JDK 설치를 마쳤다는 전제 하에 JSP 개발 환경 구축
1. 먼저 Eclipse - Preferences... 에서 Encoding을 UTF-8로 변경
2. Tomcat을 설치
https://tomcat.apache.org/download-90.cgi
Apache Tomcat® - Apache Tomcat 9 Software Downloads
Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version
tomcat.apache.org
Download - Tomcat 9 zip 파일 다운로드
3. 이클립스 우측 상단 아래의 버튼 클릭
4. 하단 Servers 탭에서 링크 클릭
5. Apache - Tomcat v9.0 Server(다운받은 버전대로) - Next >
6. Browse... - 압축이 풀린 zip파일을 경로로 설정 - Open - Finish
7. Server 탭 내용 더블클릭
8. 아래와 같이 체크 후 저장(Command + S)
Server Locations - User Tomcat installation 클릭
Server Options - Publish module contexts to separate XML files 클릭
Ports - HTTP/1.1 포트번호 변경(다른 포트번호와 겹치지 않도록)
9. Servers 탭 상단 Run 버튼을 눌러 Server startup 이 출력되면 서버 정상 실행
10. http://localhost:8181(8번에서 변경한 포트번호)/ 를 주소창에 입력 후 아래와 같은 화면이 나오면 서버 정상 가동 확인
'Java 및 JSP' 카테고리의 다른 글
[Java] 향상된 For 문 (0) | 2021.07.30 |
---|---|
[JSP] HTTP의 이해 (0) | 2021.07.29 |
[Java] For 구문과 1차원 배열로 로또 번호 추첨기 생성 (0) | 2021.07.28 |
[Java] 참조형 변수와 배열 (0) | 2021.07.27 |
[Java] Collection 컬렉션 (0) | 2021.07.26 |