반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- oracle
- git
- 개발
- 이클립스
- hashcode
- Spring Boot
- tomcat
- REST
- JAR
- springboot
- annotaion
- java
- jsp
- 웹프로젝트
- Gradle
- Spring
- gitlab
- War
- SpringFramework
- Linux
- mybatis
- Jenkins
- soap
- maven
- Web
- spring-framework
- 스프링부트
- 스프링프레임워크
- Spring Framework
- Pipeline
Archives
- Today
- Total
Verity's Daily Logs_
[LINUX]Tomcat 설치하기 본문
반응형
LINUX환경(CentOS)에서 Tomcat 설치하는 과정을 정리한다.
1. 원하는 톰캣 설치 버전 확인
아래 사이트에서 원하는 버전의 다운로드 경로를 확인할 수 있다. 최종 다운로드 경로는
http://archive.apache.org/dist/tomcat/tomcat-9/v9.0.38/bin/apache-tomcat-9.0.38.tar.gz 형식이다.
사이트: http://archive.apache.org/dist/tomcat
2. 톰캣 파일 다운로드
[root@localhost ~]# cd /home/tomcat
[root@localhost tomcat]# curl -O http://archive.apache.org/dist/tomcat/tomcat-9/v9.0.38/bin/apache-tomcat-9.0.38.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.7M 100 10.7M 0 0 1915k 0 0:00:05 0:00:05 --:--:-- 2356k
[root@localhost tomcat]# ls
apache-tomcat-9.0.38.tar.gz
3. 다운로드 파일 압축 해제
[root@localhost tomcat]# tar xvzpf apache-tomcat-9.0.38.tar.gz
...
apache-tomcat-9.0.38/bin/startup.sh
apache-tomcat-9.0.38/bin/tool-wrapper.sh
apache-tomcat-9.0.38/bin/version.sh
[root@localhost tomcat]# mv apache-tomcat-9.0.38 tomcat9
[root@localhost tomcat]# ls
apache-tomcat-9.0.38.tar.gz tomcat9
4. 서버 실행
[root@localhost tomcat]# ./tomcat9/bin/startup.sh
Using CATALINA_BASE: /home/tomcat/tomcat9
Using CATALINA_HOME: /home/tomcat/tomcat9
Using CATALINA_TMPDIR: /home/tomcat/tomcat9/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.275.b01-0.el7_9.i386
Using CLASSPATH: /home/tomcat/tomcat9/bin/bootstrap.jar:/home/tomcat/tomcat9/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
[root@localhost tomcat]# tail -f ./tomcat9/logs/catalina.out
11-Jan-2021 20:16:20.138 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/tomcat/tomcat9/webapps/docs]
11-Jan-2021 20:16:20.182 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/tomcat/tomcat9/webapps/docs] has finished in [44] ms
11-Jan-2021 20:16:20.182 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/tomcat/tomcat9/webapps/examples]
11-Jan-2021 20:16:20.866 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/tomcat/tomcat9/webapps/examples] has finished in [684] ms
11-Jan-2021 20:16:20.867 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/tomcat/tomcat9/webapps/host-manager]
11-Jan-2021 20:16:20.968 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/tomcat/tomcat9/webapps/host-manager] has finished in [101] ms
11-Jan-2021 20:16:20.968 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/tomcat/tomcat9/webapps/manager]
11-Jan-2021 20:16:21.022 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/tomcat/tomcat9/webapps/manager] has finished in [54] ms
11-Jan-2021 20:16:21.029 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
11-Jan-2021 20:16:21.136 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [1906] milliseconds
5. 사이트 접속 확인
[root@localhost tomcat]# curl http://localhost:8080
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Apache Tomcat/9.0.38</title>
<link href="favicon.ico" rel="icon" type="image/x-icon" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="tomcat.css" rel="stylesheet" type="text/css" />
</head>
...
6. 브라우저 접속(방화벽 해제 여부) 확인: http://서버 IP:8080
반응형
'LINUX' 카테고리의 다른 글
[LINUX]JAVA 버전 업그레이드 하기 (1) | 2021.01.12 |
---|---|
[LINUX]용량확인 (0) | 2020.09.04 |
[Windows]실행중인 포트 확인 및 죽이기 (0) | 2020.08.24 |
Comments