Follow me step by step docker deploy javaweb project - centOS install tomcat

install command

yum -y install tomcat

 Installation process

[root@bogon ~]# yum -y install tomcat
Plugin loaded: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.aliyun.com
Resolving dependencies
--> Checking transaction
---> Package tomcat.noarch.0.7.0.76-3.el7_4 will be installed
--> Processing dependency tomcat-lib=7.0.76-3.el7_4, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Processing dependency apache-commons-pool, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Processing dependency apache-commons-logging, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Processing dependency apache-commons-dbcp, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Processing dependency apache-commons-daemon, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Processing dependency apache-commons-collections, which is required by package tomcat-7.0.76-3.el7_4.noarch
--> Checking transaction
---> Package apache-commons-collections.noarch.0.3.2.1-22.el7_2 will be installed
---> Package apache-commons-daemon.x86_64.0.1.0.13-6.el7 will be installed
---> Package apache-commons-dbcp.noarch.0.1.4-17.el7 will be installed
--> Processing dependency mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec) required by package apache-commons-dbcp-1.4-17.el7.noarch
---> Package apache-commons-logging.noarch.0.1.1.2-7.el7 will be installed
--> Processing dependency mvn(logkit:logkit), which is required by package apache-commons-logging-1.1.2-7.el7.noarch
--> Processing dependency mvn(log4j:log4j), which is required by package apache-commons-logging-1.1.2-7.el7.noarch
--> Processing dependency mvn(avalon-framework:avalon-framework-api), which is required by package apache-commons-logging-1.1.2-7.el7.noarch
---> Package apache-commons-pool.noarch.0.1.6-9.el7 will be installed
---> Package tomcat-lib.noarch.0.7.0.76-3.el7_4 will be installed
--> Processing dependency tomcat-servlet-3.0-api=7.0.76-3.el7_4, which is required by package tomcat-lib-7.0.76-3.el7_4.noarch
--> Processing dependency tomcat-jsp-2.2-api=7.0.76-3.el7_4, which is required by package tomcat-lib-7.0.76-3.el7_4.noarch
--> Processing dependency tomcat-el-2.2-api=7.0.76-3.el7_4, which is required by package tomcat-lib-7.0.76-3.el7_4.noarch
--> Processing dependency ecj >= 1:4.2.1, which is required by package tomcat-lib-7.0.76-3.el7_4.noarch
--> Checking transaction
---> Package avalon-framework.noarch.0.4.3-10.el7 will be installed
--> Processing dependency xalan-j2, which is required by package avalon-framework-4.3-10.el7.noarch
---> Package avalon-logkit.noarch.0.2.1-14.el7 will be installed
--> Processing dependency jms, which is required by package avalon-logkit-2.1-14.el7.noarch
---> Package ecj.x86_64.1.4.5.2-3.el7 will be installed
---> Package geronimo-jta.noarch.0.1.1.1-17.el7 will be installed
---> Package log4j.noarch.0.1.2.17-16.el7_4 will be installed
--> Processing dependency mvn(javax.mail:mail) required by package log4j-1.2.17-16.el7_4.noarch
---> Package tomcat-el-2.2-api.noarch.0.7.0.76-3.el7_4 will be installed
---> Package tomcat-jsp-2.2-api.noarch.0.7.0.76-3.el7_4 will be installed
---> Package tomcat-servlet-3.0-api.noarch.0.7.0.76-3.el7_4 will be installed
--> Checking transaction
---> Package geronimo-jms.noarch.0.1.1.1-19.el7 will be installed
---> Package javamail.noarch.0.1.4.6-8.el7 will be installed
---> Package xalan-j2.noarch.0.2.7.1-23.el7 will be installed
--> Processing dependency xerces-j2, which is required by package xalan-j2-2.7.1-23.el7.noarch
--> Processing dependency osgi(org.apache.xerces), which is required by package xalan-j2-2.7.1-23.el7.noarch
--> Checking transaction
---> Package xerces-j2.noarch.0.2.11.0-17.el7_0 will be installed
--> Processing dependency xml-commons-resolver >= 1.2, which is required by package xerces-j2-2.11.0-17.el7_0.noarch
--> Processing dependency xml-commons-apis >= 1.4.01, which is required by package xerces-j2-2.11.0-17.el7_0.noarch
--> Processing dependency osgi(org.apache.xml.resolver), which is required by package xerces-j2-2.11.0-17.el7_0.noarch
--> Processing dependency osgi (javax.xml), which is required by package xerces-j2-2.11.0-17.el7_0.noarch
--> Checking transaction
---> Package xml-commons-apis.noarch.0.1.4.01-16.el7 will be installed
---> Package xml-commons-resolver.noarch.0.1.2-15.el7 will be installed
--> Resolve dependencies complete

Dependency Resolution

=============================================================================================================================================================
 Package schema version source size
=============================================================================================================================================================
Installing:
 tomcat                                            noarch                        7.0.76-3.el7_4                         updates                         90 k
Install for dependencies:
 apache-commons-collections                        noarch                        3.2.1-22.el7_2                         base                           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.5.2-3.el7                          base                           1.9 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-16.el7_4                        updates                        444 k
 tomcat-el-2.2-api                                 noarch                        7.0.76-3.el7_4                         updates                         80 k
 tomcat-jsp-2.2-api                                noarch                        7.0.76-3.el7_4                         updates                         93 k
 tomcat-lib                                        noarch                        7.0.76-3.el7_4                         updates                        3.9 M
 tomcat-servlet-3.0-api                            noarch                        7.0.76-3.el7_4                         updates                        211 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 downloads: 12M
Installation size: 15M
Downloading packages:
(1/21): apache-commons-daemon-1.0.13-6.el7.x86_64.rpm                                                                                 |  54 kB  00:00:00
(2/21): avalon-framework-4.3-10.el7.noarch.rpm                                                                                        |  88 kB  00:00:00
(3/21): avalon-logkit-2.1-14.el7.noarch.rpm                                                                                           |  87 kB  00:00:00
(4/21): apache-commons-logging-1.1.2-7.el7.noarch.rpm                                                                                 |  78 kB  00:00:00
(5/21): apache-commons-dbcp-1.4-17.el7.noarch.rpm                                                                                     | 167 kB  00:00:00
(6/21): apache-commons-collections-3.2.1-22.el7_2.noarch.rpm                                                                          | 509 kB  00:00:00
(7/21): geronimo-jms-1.1.1-19.el7.noarch.rpm | 31 kB 00:00:00
(8/21): geronimo-jta-1.1.1-17.el7.noarch.rpm | 20 kB 00:00:00
(9/21): apache-commons-pool-1.6-9.el7.noarch.rpm                                                                                      | 113 kB  00:00:00
(10/21): tomcat-7.0.76-3.el7_4.noarch.rpm                                                                                             |  90 kB  00:00:00
(11/21): tomcat-el-2.2-api-7.0.76-3.el7_4.noarch.rpm                                                                                  |  80 kB  00:00:00
(12/21): javamail-1.4.6-8.el7.noarch.rpm                                                                                              | 758 kB  00:00:00
(13/21): tomcat-jsp-2.2-api-7.0.76-3.el7_4.noarch.rpm                                                                                 |  93 kB  00:00:00
(14/21): log4j-1.2.17-16.el7_4.noarch.rpm                                                                                             | 444 kB  00:00:00
(15/21): ecj-4.5.2-3.el7.x86_64.rpm                                                                                                   | 1.9 MB  00:00:00
(16/21): tomcat-servlet-3.0-api-7.0.76-3.el7_4.noarch.rpm                                                                             | 211 kB  00:00:00
(17/21): xml-commons-apis-1.4.01-16.el7.noarch.rpm                                                                                    | 227 kB  00:00:00
(18/21): xml-commons-resolver-1.2-15.el7.noarch.rpm                                                                                   | 108 kB  00:00:00
(19/21): xalan-j2-2.7.1-23.el7.noarch.rpm | 1.9 MB 00:00:00
(20/21): xerces-j2-2.11.0-17.el7_0.noarch.rpm                                                                                         | 1.1 MB  00:00:00
(21/21): tomcat-lib-7.0.76-3.el7_4.noarch.rpm                                                                                         | 3.9 MB  00:00:02
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.8 MB/s | 12 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing: apache-commons-pool-1.6-9.el7.noarch 1/21
  Installing: tomcat-servlet-3.0-api-7.0.76-3.el7_4.noarch 2/21
  Installing: apache-commons-collections-3.2.1-22.el7_2.noarch 3/21
  Installing: geronimo-jms-1.1.1-19.el7.noarch 4/21
  Installing: xml-commons-apis-1.4.01-16.el7.noarch 5/21
  Installing: xml-commons-resolver-1.2-15.el7.noarch 6/21
  Installing: xalan-j2-2.7.1-23.el7.noarch 7/21
  Installing: xerces-j2-2.11.0-17.el7_0.noarch 8/21
  Installing: tomcat-jsp-2.2-api-7.0.76-3.el7_4.noarch 9/21
  Installing: geronimo-jta-1.1.1-17.el7.noarch 10/21
  Installing: apache-commons-dbcp-1.4-17.el7.noarch 11/21
  Installing: tomcat-el-2.2-api-7.0.76-3.el7_4.noarch 12/21
  Installing: apache-commons-daemon-1.0.13-6.el7.x86_64 13/21
  Installing: 1:ecj-4.5.2-3.el7.x86_64 14/21
  Installing: tomcat-lib-7.0.76-3.el7_4.noarch 15/21
  Installing: javamail-1.4.6-8.el7.noarch 16/21
  Installing: log4j-1.2.17-16.el7_4.noarch 17/21
  Installing: apache-commons-logging-1.1.2-7.el7.noarch 18/21
  Installing: avalon-logkit-2.1-14.el7.noarch 19/21
  Installing: avalon-framework-4.3-10.el7.noarch 20/21
  Installing: tomcat-7.0.76-3.el7_4.noarch 21/21
  Verifying: xml-commons-apis-1.4.01-16.el7.noarch 1/21
  Verifying: log4j-1.2.17-16.el7_4.noarch 2/21
  Verifying: apache-commons-logging-1.1.2-7.el7.noarch 3/21
  Verifying: geronimo-jms-1.1.1-19.el7.noarch 4/21
  Verifying: tomcat-servlet-3.0-api-7.0.76-3.el7_4.noarch 5/21
  Verifying: javamail-1.4.6-8.el7.noarch 6/21
  Verifying: avalon-logkit-2.1-14.el7.noarch 7/21
  Validating: avalon-framework-4.3-10.el7.noarch 8/21
  Verifying: apache-commons-pool-1.6-9.el7.noarch 9/21
  Verifying: 1:ecj-4.5.2-3.el7.x86_64 10/21
  Verifying: apache-commons-daemon-1.0.13-6.el7.x86_64 11/21
  Verifying: apache-commons-dbcp-1.4-17.el7.noarch 12/21
  Verifying: tomcat-el-2.2-api-7.0.76-3.el7_4.noarch 13/21
  Verifying: xalan-j2-2.7.1-23.el7.noarch 14/21
  Verifying: geronimo-jta-1.1.1-17.el7.noarch 15/21
  Verifying: apache-commons-collections-3.2.1-22.el7_2.noarch 16/21
  Verifying: xml-commons-resolver-1.2-15.el7.noarch 17/21
  Verifying: xerces-j2-2.11.0-17.el7_0.noarch 18/21
  Verifying: tomcat-7.0.76-3.el7_4.noarch 19/21
  Verifying: tomcat-jsp-2.2-api-7.0.76-3.el7_4.noarch 20/21
  Verifying: tomcat-lib-7.0.76-3.el7_4.noarch 21/21

It has been installed:
  tomcat.noarch 0:7.0.76-3.el7_4

Installed as a dependency:
  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.5.2-3.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-16.el7_4
  tomcat-el-2.2-api.noarch 0:7.0.76-3.el7_4                 tomcat-jsp-2.2-api.noarch 0:7.0.76-3.el7_4         tomcat-lib.noarch 0:7.0.76-3.el7_4
  tomcat-servlet-3.0-api.noarch 0:7.0.76-3.el7_4            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!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326021938&siteId=291194637