赞
踩
在实际开发中,我们经常会遇到多台机器配置相同的软件运行环境。
比如配置一个tomcat,mysql...一些环境,其他机器也需要相同的环境时,就会一遍一遍的进行配置,比较麻烦。
而且容器和容器之间是完全隔离的。
在学习的过程中发现Docker可以解决这个问题,所以记录下安装遇到的坑
1、首先我们需要安装linux系统,可以上网
2、接下来需要查看linux内核版本,因为Docker需要Linux 3.10以上的版本
- [root@localhost ~]# uname -a
- Linux localhost 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
3、刚装上Linux我们更新下系统
[root@localhost ~]# yum update
4、正式安装Docker
[root@localhost ~]# yum install docker
然后一直输入y
安装好后,查看是否安装成功
- [root@localhost ~]# docker -v
- Docker version 1.13.1, build 8633870/1.13.1
5、接着运行docker服务
- [root@localhost ~]# service docker start
- Redirecting to /bin/systemctl start docker.service
- Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "j
- ournalctl -xe" for details.
我们发现启动没有成功,根据提示,查看详细内容
- [root@localhost ~]# systemctl status docker.service
- ● docker.service - Docker Application Container Engine
- Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
- Active: failed (Result: exit-code) since 五 2018-10-12 13:58:56 CST; 20s ago
- Docs: http://docs.docker.com
- Process: 5179 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default
- -runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --i
- nit-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $
- DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
- Main PID: 5179 (code=exited, status=1/FAILURE)
-
- 10月 12 13:58:54 localhost systemd[1]: Starting Docker Application Container Engine...
- 10月 12 13:58:54 localhost dockerd-current[5179]: time="2018-10-12T13:58:54.608122086+08:00" level=warning msg="could...ound"
- 10月 12 13:58:54 localhost dockerd-current[5179]: time="2018-10-12T13:58:54.614454691+08:00" level=info msg="libconta...5184"
- 10月 12 13:58:56 localhost dockerd-current[5179]: Error starting daemon: SELinux is not supported with the overlay2 g...alse)
- 10月 12 13:58:56 localhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
- 10月 12 13:58:56 localhost systemd[1]: Failed to start Docker Application Container Engine.
- 10月 12 13:58:56 localhost systemd[1]: Unit docker.service entered failed state.
- 10月 12 13:58:56 localhost systemd[1]: docker.service failed.
- Hint: Some lines were ellipsized, use -l to show in full.
折腾了一段时间后,在网上终于找到了解决办法
6、找到docker-storage文件
[root@localhost ~]# vi /etc/sysconfig/docker
如下图
我加了上图用红色圈住的一段代码
7、接着重新启动docker,OK
- [root@localhost ~]# systemctl restart docker
- [root@localhost ~]#
8、比如我们要装tomcat,输入命令,查找tomcat
- [root@localhost ~]# docker search tomcat
- INDEX NAME DESCRIPTION STARS OFFICIAL
- AUTOMATED
- docker.io docker.io/tomcat Apache Tomcat is an open source implementa... 2072 [OK]
-
- docker.io docker.io/tomee Apache TomEE is an all-Apache Java EE cert... 56 [OK]
-
- docker.io docker.io/dordoka/tomcat Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 ba... 49
- [OK]
- docker.io docker.io/davidcaste/alpine-tomcat Apache Tomcat 7/8 using Oracle Java 7/8 wi... 31
- [OK]
- docker.io docker.io/bitnami/tomcat Bitnami Tomcat Docker Image 25
- [OK]
- docker.io docker.io/consol/tomcat-7.0 Tomcat 7.0.57, 8080, "admin/admin" 16
- [OK]
- docker.io docker.io/cloudesire/tomcat Tomcat server, 6/7/8 15
- [OK]
- docker.io docker.io/tutum/tomcat Base docker image to run a Tomcat applicat... 11
-
- docker.io docker.io/meirwa/spring-boot-tomcat-mysql-app a sample spring-boot app using tomcat and ... 10
- [OK]
- docker.io docker.io/aallam/tomcat-mysql Debian, Oracle JDK, Tomcat & MySQL 8
- [OK]
- docker.io docker.io/jeanblanchard/tomcat Minimal Docker image with Apache Tomcat 8
-
- docker.io docker.io/maluuba/tomcat7-java8 Tomcat7 with java8. 3
-
- docker.io docker.io/rightctrl/tomcat CentOS , Oracle Java, tomcat application s... 3
- [OK]
- docker.io docker.io/amd64/tomcat Apache Tomcat is an open source implementa... 2
-
- docker.io docker.io/arm64v8/tomcat Apache Tomcat is an open source implementa... 2
-
- docker.io docker.io/99taxis/tomcat7 Tomcat7 1
- [OK]
- docker.io docker.io/camptocamp/tomcat-logback Docker image for tomcat with logback integ... 1
- [OK]
- docker.io docker.io/fabric8/tomcat-8 Fabric8 Tomcat 8 Image 1
- [OK]
- docker.io docker.io/jelastic/tomcat An image of the Tomcat Java application se... 1
-
- docker.io docker.io/primetoninc/tomcat Apache tomcat 8.5, 8.0, 7.0 1
- [OK]
- docker.io docker.io/cfje/tomcat-resource Tomcat Concourse Resource 0
-
- docker.io docker.io/oobsri/tomcat8 Testing CI Jobs with different names. 0
-
- docker.io docker.io/picoded/tomcat7 tomcat7 with jre8 and MANAGER_USER / MANAG... 0
- [OK]
- docker.io docker.io/s390x/tomcat Apache Tomcat is an open source implementa... 0
-
- docker.io docker.io/swisstopo/service-print-tomcat backend tomcat for service-print "the true... 0
-
- [root@localhost ~]#
附上docker仓库网站https://hub.docker.com/
如果使用docker pull xxx来拉取镜像,那么会使用国外的网站,现在我们使用国内的镜像来拉取,会更快的下载,如下
docker pull registry.docker-cn.com/library/xxx
9、安装tomcat到本地镜像,使用pull命令
- [root@localhost ~]# docker pull registry.docker-cn.com/library/tomcat
- Using default tag: latest
- Trying to pull repository docker.io/library/tomcat ...
- latest: Pulling from docker.io/library/tomcat
- 05d1a5232b46: Pull complete
- 5cee356eda6b: Pull complete
- 89d3385f0fd3: Pull complete
- 65dd87f6620b: Pull complete
- 78a183a01190: Pull complete
- 1a4499c85f97: Pull complete
- 2c9d39b4bfc1: Pull complete
- 1b1cec2222c9: Pull complete
- fc95b85a81f3: Pull complete
- 0f3868647539: Pull complete
- 9b6a6eddb2d9: Pull complete
- 8787183cb077: Pull complete
- Digest: sha256:8d120de5102cc12310de741299e9bf6f39d2d674663f2ce4e6f0f181ccfeebe7
- Status: Downloaded newer image for docker.io/tomcat:latest
10、查看本地的tomcat镜像
- [root@localhost ~]# docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB
11、可以下载指定版本的tomcat,默认下载latest版本,一下是我下载tomcat 8.0版本时候的效果,输入命令:docker pull tomcat:8.0 就是可下载指定版本的tomcat了
- [root@localhost ~]# docker pull registry.docker-cn.com/library/tomcat:8.0
- Trying to pull repository docker.io/library/tomcat ...
- 8.0: Pulling from docker.io/library/tomcat
- f189db1b88b3: Downloading [==========================================> ] 46.12 MB/54.25 MB
- 3d06cf2f1b5e: Download complete
- edd0da9e3091: Download complete
- eb7768aae14e: Download complete
- e2780f585e0f: Download complete
- e5ed720afeba: Downloading [=============> ] 21.38 MB/81.8 MB
- d9e134700cfc: Download complete
- e4804b33d02a: Download complete
- b9df0c24315e: Download complete
- 49fdae8eaa20: Downloading [===============================> ] 6.479 MB/10.38 MB
- 1aea3d9a32e6: Waiting
12、查看刚下载的tomcat8.0,查看镜像是用docker images命令查看
- [root@localhost ~]# docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB
- docker.io/tomcat 8.0 ef6a7c98d192 4 weeks ago 356 MB
多了tomcat 8.0版本的镜像,每个镜像都有自己的镜像ID
13、删除不用的镜像,使用docker rmi 镜像名:tag
- [root@localhost ~]# docker rmi tomcat:8.0
- Untagged: tomcat:8.0
- Untagged: docker.io/tomcat@sha256:8ecb10948deb32c34aeadf7bf95d12a93fbd3527911fa629c1a3e7823b89ce6f
- Deleted: sha256:ef6a7c98d192507d6066dcf24e44bec66d07ec9cf7c55d8d3d1ea0a24660bdef
- Deleted: sha256:6dc5bbd9ede58ce52f6e9d34eaac4e3bf1fbb3014e9eae344677bf3c2f022a17
- Deleted: sha256:6f22c12dcf0ac783b0b00471e38262c708761a677e6a847a57a5d7cce2cbc7f1
- Deleted: sha256:dbefc7cd29b21d99c136d6234ca442cdb89fc91f3c91ef6c1d333d37424d2f44
- Deleted: sha256:d65396dbf112285c9d395bb33c2eb2f776cd9b959c007152c10a2f25fbf1c198
- Deleted: sha256:5b8a875f80bdd2e9f9cf2c0852243e0cb59ea7be5e92620b2c2089800bb18594
- Deleted: sha256:d97b31b9ca51e024a895e2f6fa032224fb73ba2a070149499ce87306ed9d7af6
- Deleted: sha256:3717c4f05493340d97d982bc6ed8cba98869833918de23c78c39414788dd08c1
- Deleted: sha256:b9c326fb510188d2958888aee970ae93925c2a2ad8a78b2ec3a521747ee3ec4f
- Deleted: sha256:8cc193ff8a5b4837eab54bee27418daadad8825f13b8fab55229b4954fee6f9f
- Deleted: sha256:b1852f6f3f85863ed849af673e566ad8de76dac4d2c6526d791e965978c1ce62
- Deleted: sha256:8c466bf4ca6ffdda8b7717b1cd6fe31109529ee64e626a003a224fb8bd2bc469
14、在查看,没有了刚才删除的tomcat8.0
- [root@localhost ~]# docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB
15、如果想使docker在Linux启动的时候也跟着启动,那么输入命令 systemctl enable docker
- [root@localhost ~]# systemctl enable docker
- Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
16、真正的用docker运行一个tomcat镜像,使用命令 docker run --name mytomcat -d tomcat:latest
- [root@localhost ~]# docker run --name mytomcat -d tomcat:latest
- 1e05e524c6097b1dac4e58821bb220037d40488c5cf9846e37fabd29a3dfb22b
17、查看刚才运行的tomat镜像,使用命令 docker ps 查看运行中的容器
- [root@localhost ~]# docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 1e05e524c609 tomcat:latest "catalina.sh run" About a minute ago Up About a minute 8080/tcp mytomcat
18、停止docker容器 使用命令 docker stop 容器ID或者容器名称
- [root@localhost ~]# docker stop 1e05e524c609
- 1e05e524c609
可以使用docker ps -a 查看容器中的镜像,已经退出了。
- [root@localhost ~]# docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 1e05e524c609 tomcat:latest "catalina.sh run" 5 minutes ago Exited (143) 22 seconds ago mytomcat
如果我们想要容器启动,那么我们使用docker start mytomcat命令
19、删除容器 docker rm mytomcat
20、如果想要真正是运行tomcat可以被访问到,那么我们在运行docker的tomcat容器时需要加一些参数,docker run -d -p 8888:8080 tomcat 说明:-d后台运行,-p端口映射,把主机的端口映射到容器中的端口,下面的例子是把8888映射到容器中的8080
- [root@localhost ~]# docker run -d -p 8888:8080 tomcat
- 52f3b94d083eb9669b92e346d489df626b59377327f5d84cc3c55860fcd9614f
这样就启动了映射,外部可以访问启动的容器了
- [root@localhost ~]# docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 52f3b94d083e tomcat "catalina.sh run" 7 minutes ago Up 7 minutes 0.0.0.0:8888->8080/tcp optimistic_albattani
20、如果外部访问不了,可能是防火墙的问题,使用命令 service firewalld status 查看防火墙状态
- [root@localhost ~]# service firewalld status
- Redirecting to /bin/systemctl status firewalld.service
- ● firewalld.service - firewalld - dynamic firewall daemon
- Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
- Active: active (running) since 五 2018-10-12 13:52:11 CST; 1h 7min ago
- Docs: man:firewalld(1)
- Main PID: 16275 (firewalld)
- Tasks: 2
- Memory: 516.0K
- CGroup: /system.slice/firewalld.service
- └─16275 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
-
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE' failed: iptables: N...by that name.
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C DOCKER -i docker0 -j RETURN' failed: iptables: Bad rule (does a matching rul...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching ...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT' failed: iptables: Bad rule (does...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT' failed: iptables: Bad rule (do...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT' ...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -o docker0 -j DOCKER' failed: iptables: No chain/target/match by that name.
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C DOCKER -p tcp -d 0/0 --dport 8888 -j DNAT --to-destination 172.17.0.2:8080 !...by that name.
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 8080 -j ACCEP...that chain?).
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C POSTROUTING -p tcp -s 172.17.0.2 -d 172.17.0.2 --dport 8080 -j MASQUERADE' f...by that name.
- Hint: Some lines were ellipsized, use -l to show in full.
如果是启动的,给停止了,使用service firewalld stop
- [root@localhost ~]# service firewalld stop
- Redirecting to /bin/systemctl stop firewalld.service
查看现在防火墙的状态
- [root@localhost ~]# service firewalld status
- Redirecting to /bin/systemctl status firewalld.service
- ● firewalld.service - firewalld - dynamic firewall daemon
- Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
- Active: inactive (dead) since 五 2018-10-12 15:03:54 CST; 6s ago
- Docs: man:firewalld(1)
- Process: 16275 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
- Main PID: 16275 (code=exited, status=0/SUCCESS)
-
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching ...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT' failed: iptables: Bad rule (does...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT' failed: iptables: Bad rule (do...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT' ...that chain?).
- 10月 12 14:23:12 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C FORWARD -o docker0 -j DOCKER' failed: iptables: No chain/target/match by that name.
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C DOCKER -p tcp -d 0/0 --dport 8888 -j DNAT --to-destination 172.17.0.2:8080 !...by that name.
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -C DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 8080 -j ACCEP...that chain?).
- 10月 12 14:53:52 localhost firewalld[16275]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t nat -C POSTROUTING -p tcp -s 172.17.0.2 -d 172.17.0.2 --dport 8080 -j MASQUERADE' f...by that name.
- 10月 12 15:03:54 localhost systemd[1]: Stopping firewalld - dynamic firewall daemon...
- 10月 12 15:03:54 localhost systemd[1]: Stopped firewalld - dynamic firewall daemon.
- Hint: Some lines were ellipsized, use -l to show in full.
21、如果想要查看容器的日志,可以使用docker logs 容器ID
- [root@localhost ~]# docker logs 52f3b94d083e
- 12-Oct-2018 06:53:53.585 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.34
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:28:22 UTC
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.34.0
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-514.el7.x86_64
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
- 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-8u181-b13-1~deb9u1-b13
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
- 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.5.2].
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
- 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
- 12-Oct-2018 06:53:53.603 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.0f 25 May 2017]
- 12-Oct-2018 06:53:53.749 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
- 12-Oct-2018 06:53:53.767 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
- 12-Oct-2018 06:53:53.786 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
- 12-Oct-2018 06:53:53.787 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
- 12-Oct-2018 06:53:53.796 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 828 ms
- 12-Oct-2018 06:53:53.829 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
- 12-Oct-2018 06:53:53.829 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
- 12-Oct-2018 06:53:53.867 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
- 12-Oct-2018 06:55:42.456 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PR
- NG] took [108,085] milliseconds.
- 12-Oct-2018 06:55:42.533 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in
- [108,666] ms
- 12-Oct-2018 06:55:42.533 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
- 12-Oct-2018 06:55:42.564 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in
- [31] ms
- 12-Oct-2018 06:55:42.564 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
- 12-Oct-2018 06:55:42.944 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finishe
- d in [380] ms
- 12-Oct-2018 06:55:42.944 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
- 12-Oct-2018 06:55:42.998 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has fin
- ished in [54] ms
- 12-Oct-2018 06:55:42.998 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
- 12-Oct-2018 06:55:43.042 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished
- in [44] ms
- 12-Oct-2018 06:55:43.047 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
- 12-Oct-2018 06:55:43.054 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
- 12-Oct-2018 06:55:43.056 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 109259 ms
- [root@localhost ~]#
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。