여백에 도장 찍기

Install JDK, Apache Tomcat on CentOS 7 본문

Web Server & WAS/Apache

Install JDK, Apache Tomcat on CentOS 7

Linzyseo 2019. 1. 21. 18:47

 

WAS(Web Application Server), Apache Tomcat 을 CentOS7 환경에서 설치해보자. 

 

※ Tomcat을 설치하고 실행하기 위해서는 Java, 즉 JDK 설치가 먼저 선행되어야 한다. 

OracleJDK는 유료화될 예정이므로, OpenJDK를 설치하도록 한다. 

[root@localhost ~]# yum list | grep jdk 
[root@localhost ~]# yum -y install java-1.8.0-openjdk.x86_64
[root@localhost ~]# java --version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

 

> 이제, Java가 설치되었으므로, Apache Tomcat을 설치 및 실행한다. 

[root@localhost ~]# wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-8/v8.5.37/bin/apache-tomcat-8.5.37.tar.gz
[root@localhost ~]# ls
apache-tomcat-8.5.37.tar.gz

[root@localhost ~]# tar xvfz apache-tomcat-8.5.37.tar.gz

[root@localhost ~]# mv apache-tomcat-8.5.37 /usr/local/

[root@localhost ~]# cd /usr/local/apache-tomcat-8.5.37/

[root@localhost apache-tomcat-8.5.37 ]# ./bin/startup.sh

 > 재시작 Command 는 아래와 같다.

[root@localhost apache-tomcat-8.5.37 ]# ./bin/shutdown.sh
[root@localhost apache-tomcat-8.5.37 ]# ./bin/startup.sh

 

'Web Server & WAS > Apache ' 카테고리의 다른 글

Apache Installation on Centos7  (0) 2018.12.06
Comments