Tomcat 설정 및 확인
Tomcat 설치
root@ysy:~# ai tomcat9 tomcat9-examples tomcat9-admin tomcat9-docs
Tomcat 실행
root@ysy:~# systemctl start tomcat9
root@ysy:~# ps -ef | grep tomcat
tomcat 32730 1 1 17:28 ? 00:00:14 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -XX:+UseG1GC -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat9 -Dcatalina.home=/usr/share/tomcat9 -Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start
root 33339 31783 0 17:47 pts/2 00:00:00 grep --color=auto tomcat
root@ysy:~# ps -ef | grep apache2
root 33247 1 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 33255 33247 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 33257 33247 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 33259 33247 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 33260 33247 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 33261 33247 0 17:43 ? 00:00:00 /usr/sbin/apache2 -k start
root 33341 31783 0 17:48 pts/2 00:00:00 grep --color=auto apache2
w3m 이용하여 톰캣 실행 확인
root@ysy:~# cd /etc/apache2/
root@ysy:/etc/apache2# ls
apache2.conf conf-enabled magic mods-enabled sites-available
conf-available envvars mods-available ports.conf sites-enabled
root@ysy:/etc/apache2# cd /etc/apache2/mods-enabled/
root@ysy:/etc/apache2/mods-enabled# ln -s ../mods-available/userdir.conf
root@ysy:/etc/apache2/mods-enabled# ln -s ../mods-available/userdir.load
root@ysy:/etc/apache2/mods-enabled# w3m http://localhost:8080
'네이버클라우드 > Linux' 카테고리의 다른 글
Linux 9일차 (2023-05-04) 네이버클라우드서버 설정하기 - mail 보내기 (0) | 2023.05.04 |
---|---|
Linux 9일차 (2023-05-04) 네이버클라우드 서버 설정하기 - bind 설정 및 확인 (0) | 2023.05.04 |
Linux 9일차 (2023-05-04) 네이버클라우드 서버 설정하기 - apache2 설정 및 확인 (0) | 2023.05.04 |
Linux 9일차 (2023-05-04) 네이버클라우드서버 설정하기 - mysql 계정 만들기 (0) | 2023.05.04 |
Linux 9일차 (2023-05-04) 네이버클라우드 서버 설정하기 - 사용자 용량제한 (0) | 2023.05.04 |