1. 다운로드
https://archive.apache.org/dist/tomcat/tomcat-10/v10.0.8/bin/apache-tomcat-10.0.8.tar.gz
2. 설치
tar zxvf apache-tomcat-10.0.8.tar.gz
mv apache-tomcat-10.0.8 /usr/local/lib
3. 환경 설정
vi /etc/profile
JAVA_HOME=/usr/local/java
JRE_HOME=/usr/local/java
CATALINA_HOME=/usr/local/lib/apache-tomcat-8.5.59
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/lib/jsp-api.jar:$CATALINA_HOME/lib/servlet-api.jar
PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export JAVA_HOME JRE_HOME CLASSPATH PATH CATALINA_HOME
4. 방화벽 설정
[root@localhost ~]$ firewall-cmd --permanent --zone=public --add-port=8080/tcp
[root@localhost ~]$ firewall-cmd --reload
반응형
'좋은지식 > 리눅스' 카테고리의 다른 글
RedHat Linux 7.9 MySQL 저장소 경로 확인 (0) | 2022.03.18 |
---|---|
RedHat Linux 7.9 MySQL 저장경로 변경 (0) | 2022.03.18 |
Redhat Linux 7.9 MySQL 8.0 설치 (0) | 2021.12.16 |
Redhat Linux 7.9 Jenkins 설치 (0) | 2021.12.09 |
Redhat Linux 7.9 openJDK 11 설치 (0) | 2021.12.09 |