리눅스 톰캣 버전 확인

Jmnote (토론 | 기여)님의 2013년 1월 29일 (화) 03:00 판 (톰캣 버전 확인 문서를 리눅스 톰캣 버전 확인(으)로 옮김)
톰캣 버전 확인

1 방법 1: rpm

[root@jmnote ~]# rpm -qa | grep webapps
tomcat6-admin-webapps-6.0.36-1.jpp5
tomcat6-webapps-6.0.36-1.jpp5
→ tomcat 6.0.36

2 방법 2: yum

[root@jmnote ~]# yum list installed tomcat? | grep tomcat
tomcat6.noarch                      6.0.36-1.jpp5                      installed

3 방법 3: tomcat

[root@jmnote ~]# tomcat5
-bash: tomcat5: command not found
[root@jmnote ~]# tomcat6
Usage: /usr/sbin/tomcat6 {start|start-security|stop|version}
[root@jmnote ~]# tomcat7
-bash: tomcat7: command not found
→ tomcat6
[root@jmnote ~]# tomcat6 version | head -3
Server version: Apache Tomcat/6.0.36
Server built:   Nov 2 2012 12:31:49
Server number:  6.0.36.0
→ tomcat 6.0.36

4 방법 4: chkconfig

[root@jmnote ~]# chkconfig --list | grep tomcat
tomcat6        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
→ tomcat6

5 방법 5: /etc/init.d

[root@svn0 webapps]# ll /etc/init.d/ | grep tomcat
-rwxr-xr-x 1 root root  8433 Nov  2 21:32 tomcat6
→ tomcat6

6 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}