Tomcat 8 설치.
Tomcat 8 설치.
CentOS 7 에서는 OpenJDK 1.7 이 기본으로 탑재되어 있다. Java 7 에 대응하는 Tomcat 은 버전 8인데, 이에 대한 설치에 대한 것입니다.
Spec
Tomcat 8 의 스팩은 다음과 같다.
- Servlet : 3.1
- JSP Spec: 2.3
- EL Spec: 3.0
- WebSocket Spec: 1.1
- Support Java Versions: 7 and later
Download
다운로드는 Apache Tomcat 페이지에서 다운로드 한다.
설치
설치는 압축을 해제하는 것으로 끝이 난다.
1 |
tar xvzf apache-tomcat-8.0.11.tar.gz -C /usr/src |
시작
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
cd /usr/src/apache-tomcat-8.0.11/bin/ ./startup.sh Using CATALINA_BASE: /usr/src/apache-tomcat-8.0.11 Using CATALINA_HOME: /usr/src/apache-tomcat-8.0.11 Using CATALINA_TMPDIR: /usr/src/apache-tomcat-8.0.11/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/src/apache-tomcat-8.0.11/bin/bootstrap.jar:/usr/src/apache-tomcat-8.0.11/bin/tomcat-juli.jar Tomcat started. ps -eLf | grep java root 6942 1 6942 0 23 02:57 pts/2 00:00:00 java -Djava.util.logging.config.file=/usr/src/apache-tomcat-8.0.11/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/src/apache-tomcat-8.0.11/endorsed -classpath /usr/src/apache-tomcat-8.0.11/bin/bootstrap.jar:/usr/src/apache-tomcat-8.0.11/bin/tomcat-juli.jar -Dcatalina.base=/usr/src/apache-tomcat-8.0.11 -Dcatalina.home=/usr/src/apache-tomcat-8.0.11 -Djava.io.tmpdir=/usr/src/apache-tomcat-8.0.11/temp org.apache.catalina.startup.Bootstrap start root 6942 1 6943 1 23 02:57 pts/2 00:00:01 java -Djava.util.logging.config.file=/usr/src/apache-tomcat-8.0.11/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/src/apache-tomcat-8.0.11/endorsed -classpath /usr/src/apache-tomcat-8.0.11/bin/bootstrap.jar:/usr/src/apache-tomcat-8.0.11/bin/tomcat-juli.jar -Dcatalina.base=/usr/src/apache-tomcat-8.0.11 -Dcatalina.home=/usr/src/apache-tomcat-8.0.11 -Djava.io.tmpdir=/usr/src/apache-tomcat-8.0.11/temp org.apache.catalina.startup.Bootstrap start root 6942 1 6944 0 23 02:57 pts/2 00:00:00 java -Djava.util.logging.config.file=/usr/src/apache-tomcat-8.0.11/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/src/apache-tomcat-8.0.11/endorsed -classpath /usr/src/apache-tomcat-8.0.11/bin/bootstrap.jar:/usr/src/apache-tomcat-8.0.11/bin/tomcat-juli.jar -Dcatalina.base=/usr/src/apache-tomcat-8.0.11 -Dcatalina.home=/usr/src/apache-tomcat-8.0.11 -Djava.io.tmpdir=/usr/src/apache-tomcat-8.0.11/temp org.apache.catalina.startup.Bootstrap start root 6942 1 6945 0 23 02:57 pts/2 00:00:00 java -Djava.util.logging.config.file=/usr/src/apache-tomcat-8.0.11/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/src/apache-tomcat-8.0.11/endorsed -classpath /usr/src/apache-tomcat-8.0.11/bin/bootstrap.jar:/usr/src/apache-tomcat-8.0.11/bin/tomcat-juli.jar -Dcatalina.base=/usr/src/apache-tomcat-8.0.11 -Dcatalina.home=/usr/src/apache-tomcat-8.0.11 -Djava.io.tmpdir=/usr/src/apache-tomcat-8.0.11/temp org.apache.catalina.startup.Bootstrap start |
웹에서 http://localhost:8080 으로 접속을 시도해 페이지가 뜬다면 정상이다.