반응형
해당 명령어들을 주석에 적힌 내용대로 천천히 진행할 것
ai tomcat9 tomcat9-examples tomcat9-admin tomcat9-docs
# aliase 설정이 안되어 있다면, apt-get -y install tomcat9 tomcat9-examples tomcat9-admin tomcat9-docs
ps -ef | grep tomcat
systemctl stop apache2
systemctl restart tomcat9
systemctl start apache2
cd /etc/apache2/
ls
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/userdir.conf
ln -s ../mods-available/userdir.load
systemctl restart tomcat9
w3m http://localhost:8080
ps -ef | grep tomcat: 톰캣 프로세스를 검색하여 확인합니다.
systemctl stop apache2: 아파치 웹 서버를 정지합니다.
systemctl restart tomcat9: 톰캣 서버를 재시작합니다.
systemctl start apache2: 아파치 웹 서버를 시작합니다.
cd /etc/apache2/: /etc/apache2/ 디렉토리로 이동합니다.
ls: 해당 디렉토리의 내용을 나열합니다.
cd /etc/apache2/mods-enabled/: /etc/apache2/mods-enabled/ 디렉토리로 이동합니다.
ln -s ../mods-available/userdir.conf: ../mods-available/userdir.conf 파일을 심볼릭 링크로 생성합니다.
ln -s ../mods-available/userdir.load: ../mods-available/userdir.load 파일을 심볼릭 링크로 생성합니다.
systemctl restart tomcat9: 톰캣 서버를 재시작합니다.
w3m http://localhost:8080: w3m을 사용하여 로컬에서 톰캣 서버의 웹 페이지를 확인합니다.
[실행결과]
반응형