CentOS7 톰캣7 설치

(Yum으로 톰캣7 설치에서 넘어옴)
CentOS7 톰캣7 설치

1 확인[ | ]

[root@zetawiki ~]# yum list tomcat*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.cdnetworks.com
 * extras: centos.mirror.cdnetworks.com
 * updates: centos.mirror.cdnetworks.com
Available Packages
tomcat.noarch                                    7.0.54-8.el7_2                     updates

2 설치[ | ]

[root@zetawiki ~]# yum install tomcat
... (생략)
===========================================================================================
 Package                          Arch         Version                 Repository     Size
===========================================================================================
Installing:
 tomcat                           noarch       7.0.54-8.el7_2          updates        85 k
Installing for dependencies:
 apache-commons-collections       noarch       3.2.1-22.el7_2          updates       509 k
 apache-commons-daemon            x86_64       1.0.13-6.el7            base           54 k
 apache-commons-dbcp              noarch       1.4-17.el7              base          167 k
 apache-commons-logging           noarch       1.1.2-7.el7             base           78 k
 apache-commons-pool              noarch       1.6-9.el7               base          113 k
 avalon-framework                 noarch       4.3-10.el7              base           88 k
 avalon-logkit                    noarch       2.1-14.el7              base           87 k
 ecj                              x86_64       1:4.2.1-8.el7           base          1.4 M
 geronimo-jms                     noarch       1.1.1-19.el7            base           31 k
 geronimo-jta                     noarch       1.1.1-17.el7            base           20 k
 javamail                         noarch       1.4.6-8.el7             base          758 k
 log4j                            noarch       1.2.17-15.el7           base          443 k
 tomcat-el-2.2-api                noarch       7.0.54-8.el7_2          updates        77 k
 tomcat-jsp-2.2-api               noarch       7.0.54-8.el7_2          updates        91 k
 tomcat-lib                       noarch       7.0.54-8.el7_2          updates       3.7 M
 tomcat-servlet-3.0-api           noarch       7.0.54-8.el7_2          updates       208 k
 xalan-j2                         noarch       2.7.1-23.el7            base          1.9 M
 xerces-j2                        noarch       2.11.0-17.el7_0         base          1.1 M
 xml-commons-apis                 noarch       1.4.01-16.el7           base          227 k
 xml-commons-resolver             noarch       1.2-15.el7              base          108 k

Transaction Summary
===========================================================================================
Install  1 Package (+20 Dependent packages)

Total download size: 11 M
Installed size: 14 M
Is this ok [y/d/N]: y
... (생략)
Installed:
  tomcat.noarch 0:7.0.54-8.el7_2                                                           

Dependency Installed:
  apache-commons-collections.noarch 0:3.2.1-22.el7_2                                       
  apache-commons-daemon.x86_64 0:1.0.13-6.el7                                              
  apache-commons-dbcp.noarch 0:1.4-17.el7                                                  
  apache-commons-logging.noarch 0:1.1.2-7.el7                                              
  apache-commons-pool.noarch 0:1.6-9.el7                                                   
  avalon-framework.noarch 0:4.3-10.el7                                                     
  avalon-logkit.noarch 0:2.1-14.el7                                                        
  ecj.x86_64 1:4.2.1-8.el7                                                                 
  geronimo-jms.noarch 0:1.1.1-19.el7                                                       
  geronimo-jta.noarch 0:1.1.1-17.el7                                                       
  javamail.noarch 0:1.4.6-8.el7                                                            
  log4j.noarch 0:1.2.17-15.el7                                                             
  tomcat-el-2.2-api.noarch 0:7.0.54-8.el7_2                                                
  tomcat-jsp-2.2-api.noarch 0:7.0.54-8.el7_2                                               
  tomcat-lib.noarch 0:7.0.54-8.el7_2                                                       
  tomcat-servlet-3.0-api.noarch 0:7.0.54-8.el7_2                                           
  xalan-j2.noarch 0:2.7.1-23.el7                                                           
  xerces-j2.noarch 0:2.11.0-17.el7_0                                                       
  xml-commons-apis.noarch 0:1.4.01-16.el7                                                  
  xml-commons-resolver.noarch 0:1.2-15.el7                                                 

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# yum list tomcat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.cdnetworks.com
 * extras: centos.mirror.cdnetworks.com
 * updates: centos.mirror.cdnetworks.com
Installed Packages
tomcat.noarch                            7.0.54-8.el7_2                            @updates

4 자동시작 설정 및 시작[ | ]

[root@zetawiki ~]# systemctl enable tomcat
Created symlink from /etc/systemd/system/multi-user.target.wants/tomcat.service to /usr/lib/systemd/system/tomcat.service.
[root@zetawiki ~]# systemctl start tomcat
[root@zetawiki ~]#

5 확인 3[ | ]

[root@zetawiki ~]# ps -ef | grep tomcat
tomcat   10071     1  0 01:49 ?        00:00:01 java -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
root     10221  5999  0 01:52 pts/1    00:00:00 grep --color=auto tomcat

6 같이 보기[ | ]

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