Notice
Recent Posts
Recent Comments
Link
«   2024/10   »
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
Tags
more
Archives
Today
Total
관리 메뉴

붓, 그리다

macOS 톰캣 설치 본문

MacBook Pro

macOS 톰캣 설치

붓그린 2017. 12. 15. 21:57


사용환경 : macOS Hight Sierra 10.13.2



0. 주의사항

- 먼저 Java가 설치 되어 있어야 한다.



1. 다운로드


- 톰캣사이트 (http://tomcat.apache.org)




- 사용할 버전을 선택하고  Core에서 zip 또는 tar로 된 파일 다운로드

 ( Tomcat 8.5.xx > Core )





2. 설치


1) zip 파일을 받은 경우 : 자동으로 폴더 생성 > 원하는 경로에 폴더를 이동




2) tar 파일을 받은 경우 : ui에서 더블클릭을 해 압축을 풀거나 터미널에서 압축을 푼다.


- 터미널 사용

1
2
3
4
5
6
$ tar -zxvf tomcat-8.5.tar
$ mv tomcat-8.5 /Users/계정명/dev_web
$ ls
LICENSE        RELEASE-NOTES    bin        lib        temp        work
NOTICE        RUNNING.txt    conf        logs        webapps
 
cs






3. 구동 확인


- 톰캣 시작



- 제대로 실행되는지 확인 (http://localhost:8080)




4. 포트변경


- conf/server.xml 열기

1
2
3
4
5
6
7
8
$ cd ../
$ cd ./conf
igoun-ui-MacBook-Pro:conf finegw$ ls
Catalina        context.xml        logging.properties    tomcat-users.xsd
catalina.policy        jaspic-providers.xml    server.xml        web.xml
catalina.properties    jaspic-providers.xsd    tomcat-users.xml
 
$ vi server.xml
cs



- 8080포트 번호 8090으로 변경

1
2
3
4
5
<Connector port="8090" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
 
cs


-  톰캣 실행

1
2
3
4
5
6
7
$ ./startup.sh
Using CATALINA_BASE:   /Users/finegw/dev_web/tomcat-8.5
Using CATALINA_HOME:   /Users/finegw/dev_web/tomcat-8.5
Using CATALINA_TMPDIR: /Users/finegw/dev_web/tomcat-8.5/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
Using CLASSPATH:       /Users/finegw/dev_web/tomcat-8.5/bin/bootstrap.jar:/Users/---/dev_web/tomcat-8.5/bin/tomcat-juli.jar
Tomcat started.
cs




















'MacBook Pro' 카테고리의 다른 글

macOS 스크린샷 단축키 및 저장위치 변경  (0) 2017.12.16
macOS 이클립스 프로젝트 생성/톰캣 연동  (0) 2017.12.16
macOS 이클립스 설치  (0) 2017.12.16
macOS Java 설치  (0) 2017.12.15
Comments