Development/기타

[ linux ] systemctl tomcat 설정

Jin’s 2021. 4. 15. 09:48
반응형

 

[ tomcat 실행 명령어 ]

systemctl start tomcat

systemctl stop tomcat

 

[ tomcat start 한 후 상태 체크 ]

systemctl status tomcat.service

 

[ tomcat.service 내용 변경 ]

* type을 꼭 forking으로 해주어야함

 

[ tomcat.service 변경시 꼭 해줘야함 ]

systemctl daemon-reload

 

[ 서버 재기동시 tomcat 도 다시 로드 하게 설정하는것? ]

systemctl enable /usr/lib/systemd/system/tomcat.service

 

[ systemctl active 확인 ]

systemctl list-units --type service --all

 

[ 상세로그 확인 ]

journalctl -u tomcat.service

반응형