WEB/WAS 설치

WEB/WAS 프로세스 확인 및 실행방법

WEB/WAS 개념

  • WEB Server : HTTP를 통해 웹 브라우저에서 요청하는 HTML 문서나 오브젝트(이미지 파일 등)을 전송해주는 서비스 프로그램

  • WAS (Web Application Server) : 웹 프로그램(혹은 웹 시스템, 웹 사이트, 웹 서비스 등)을 실행할 수 있는 기초적인 환경을 제공

WEB/WAS 차이점

  • WEB server : 정적인 데이터를 처리하는 서버이다. 이미지나 단순 html파일과 같은 리소스를 제공하는 서버는 웹 서버를 통하면 WAS를 이용하는 것보다 빠르고 안정적이다.

  • WAS (Web Application Server) : 동적인 데이터를 처리하는 서버이다. DB와 연결되어 데이터를 주고 받거나 프로그램으로 데이터 조작이 필요한 경우에는 WAS를 활용한다.

Apache Tomcat 설치

1. windows CMD창에서 wget으로 apache-tomcat 다운로드wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.5.27/bin/apache-tomcat-8.5.27.tar.gz

2. 다운로드한 파일을 FileZilla에서 아래의 경로에 업로드 저장 경로: /home/suser

3. 해당 경로 이동하여 apache-tomcat tar파일 압축 해제 # cd /home/suser # tar xvfz apache-tomcat-8.5.27.tar.gz

4. apache-tomcat 폴더를 /usr/local 경로로 이동 # cd /home/suser # mv apache-tomcat-8.5.27/ /usr/local

5. 심볼릭 링크 설정 # cd /usr/local # ln -s apache-tomcat-8.5.27/ tomcat

6. profile 파일에 환경 변수 설정 # vi /etc/profile

7. profile 설정 반영 및 변수 확인 # source /etc/profile # echo $CATALINA_HOME

8. 서버 방화벽 확인 # systemctl status firewalld

# systemctl stop firewalld # systemctl disable firewalld

Apache Tomcat 실행

1. apache-tomcat 실행 확인 # cd /usr/local/tomcat/bin # startup.sh

2. 포트가 LISTEN 되는지 확인 # netstat -an | grep 8080

3. 동작 중인 tomcat 프로세스 정보 확인 # ps -ef | grep tomcat

4. 웹페이지에서 apache-tomcat 실행 확

Last updated