본문 바로가기

[Terry] ETC

CentOS에 Tomcat 설치하기.

1. http://tomcat.apache.org에 접속해서 tomcat을 다운 받는다.
2. 압축을 풀어준다.
    [root@www www]# tar xvfz apache-tomcat-7.0.16.tar.gz
3. 압축 풀어놓은 폴더를 이름을 바꿔서 이동하낟.
    [root@www www]# mv apache-tomcat-7.0.16 /usr/local/tomcat
4.     톰캣을 실행한다.
    [root@www tomcat]# cd /usr/local/tomcat/bin
    [root@www bin]# ./startup.sh
    [root@www bin]# ps -ef | grep java
    root      7651     1 67 16:42 pts/3    00:00:03 /usr/local/jdk1.6.0_26/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
    root      7686  6932  0 16:42 pts/3    00:00:00 grep java
5. 웹 브라우저에서 확인한다.
    http://주소:8080