当前位置:   article > 正文

linux安装docker,已经遇到的问题_docker 版本与内核兼容性选择

docker 版本与内核兼容性选择

在实际开发中,我们经常会遇到多台机器配置相同的软件运行环境。

比如配置一个tomcat,mysql...一些环境,其他机器也需要相同的环境时,就会一遍一遍的进行配置,比较麻烦。

而且容器和容器之间是完全隔离的。

在学习的过程中发现Docker可以解决这个问题,所以记录下安装遇到的坑

1、首先我们需要安装linux系统,可以上网

2、接下来需要查看linux内核版本,因为Docker需要Linux 3.10以上的版本

  1. [root@localhost ~]# uname -a
  2. 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

安装好后,查看是否安装成功

  1. [root@localhost ~]# docker -v
  2. Docker version 1.13.1, build 8633870/1.13.1

5、接着运行docker服务

  1. [root@localhost ~]# service docker start
  2. Redirecting to /bin/systemctl start docker.service
  3. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "j
  4. ournalctl -xe" for details.

我们发现启动没有成功,根据提示,查看详细内容

  1. [root@localhost ~]# systemctl status docker.service
  2. ● docker.service - Docker Application Container Engine
  3. Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
  4. Active: failed (Result: exit-code) since 五 2018-10-12 13:58:56 CST; 20s ago
  5. Docs: http://docs.docker.com
  6. Process: 5179 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default
  7. -runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --i
  8. nit-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $
  9. DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
  10. Main PID: 5179 (code=exited, status=1/FAILURE)
  11. 1012 13:58:54 localhost systemd[1]: Starting Docker Application Container Engine...
  12. 1012 13:58:54 localhost dockerd-current[5179]: time="2018-10-12T13:58:54.608122086+08:00" level=warning msg="could...ound"
  13. 1012 13:58:54 localhost dockerd-current[5179]: time="2018-10-12T13:58:54.614454691+08:00" level=info msg="libconta...5184"
  14. 1012 13:58:56 localhost dockerd-current[5179]: Error starting daemon: SELinux is not supported with the overlay2 g...alse)
  15. 1012 13:58:56 localhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
  16. 1012 13:58:56 localhost systemd[1]: Failed to start Docker Application Container Engine.
  17. 1012 13:58:56 localhost systemd[1]: Unit docker.service entered failed state.
  18. 1012 13:58:56 localhost systemd[1]: docker.service failed.
  19. Hint: Some lines were ellipsized, use -l to show in full.

折腾了一段时间后,在网上终于找到了解决办法

6、找到docker-storage文件

[root@localhost ~]# vi /etc/sysconfig/docker

如下图

我加了上图用红色圈住的一段代码

7、接着重新启动docker,OK

  1. [root@localhost ~]# systemctl restart docker
  2. [root@localhost ~]#

8、比如我们要装tomcat,输入命令,查找tomcat

  1. [root@localhost ~]# docker search tomcat
  2. INDEX NAME DESCRIPTION STARS OFFICIAL
  3. AUTOMATED
  4. docker.io docker.io/tomcat Apache Tomcat is an open source implementa... 2072 [OK]
  5. docker.io docker.io/tomee Apache TomEE is an all-Apache Java EE cert... 56 [OK]
  6. docker.io docker.io/dordoka/tomcat Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 ba... 49
  7. [OK]
  8. docker.io docker.io/davidcaste/alpine-tomcat Apache Tomcat 7/8 using Oracle Java 7/8 wi... 31
  9. [OK]
  10. docker.io docker.io/bitnami/tomcat Bitnami Tomcat Docker Image 25
  11. [OK]
  12. docker.io docker.io/consol/tomcat-7.0 Tomcat 7.0.57, 8080, "admin/admin" 16
  13. [OK]
  14. docker.io docker.io/cloudesire/tomcat Tomcat server, 6/7/8 15
  15. [OK]
  16. docker.io docker.io/tutum/tomcat Base docker image to run a Tomcat applicat... 11
  17. docker.io docker.io/meirwa/spring-boot-tomcat-mysql-app a sample spring-boot app using tomcat and ... 10
  18. [OK]
  19. docker.io docker.io/aallam/tomcat-mysql Debian, Oracle JDK, Tomcat & MySQL 8
  20. [OK]
  21. docker.io docker.io/jeanblanchard/tomcat Minimal Docker image with Apache Tomcat 8
  22. docker.io docker.io/maluuba/tomcat7-java8 Tomcat7 with java8. 3
  23. docker.io docker.io/rightctrl/tomcat CentOS , Oracle Java, tomcat application s... 3
  24. [OK]
  25. docker.io docker.io/amd64/tomcat Apache Tomcat is an open source implementa... 2
  26. docker.io docker.io/arm64v8/tomcat Apache Tomcat is an open source implementa... 2
  27. docker.io docker.io/99taxis/tomcat7 Tomcat7 1
  28. [OK]
  29. docker.io docker.io/camptocamp/tomcat-logback Docker image for tomcat with logback integ... 1
  30. [OK]
  31. docker.io docker.io/fabric8/tomcat-8 Fabric8 Tomcat 8 Image 1
  32. [OK]
  33. docker.io docker.io/jelastic/tomcat An image of the Tomcat Java application se... 1
  34. docker.io docker.io/primetoninc/tomcat Apache tomcat 8.5, 8.0, 7.0 1
  35. [OK]
  36. docker.io docker.io/cfje/tomcat-resource Tomcat Concourse Resource 0
  37. docker.io docker.io/oobsri/tomcat8 Testing CI Jobs with different names. 0
  38. docker.io docker.io/picoded/tomcat7 tomcat7 with jre8 and MANAGER_USER / MANAG... 0
  39. [OK]
  40. docker.io docker.io/s390x/tomcat Apache Tomcat is an open source implementa... 0
  41. docker.io docker.io/swisstopo/service-print-tomcat backend tomcat for service-print "the true... 0
  42. [root@localhost ~]#

附上docker仓库网站https://hub.docker.com/

如果使用docker pull xxx来拉取镜像,那么会使用国外的网站,现在我们使用国内的镜像来拉取,会更快的下载,如下

docker pull registry.docker-cn.com/library/xxx

9、安装tomcat到本地镜像,使用pull命令

  1. [root@localhost ~]# docker pull registry.docker-cn.com/library/tomcat
  2. Using default tag: latest
  3. Trying to pull repository docker.io/library/tomcat ...
  4. latest: Pulling from docker.io/library/tomcat
  5. 05d1a5232b46: Pull complete
  6. 5cee356eda6b: Pull complete
  7. 89d3385f0fd3: Pull complete
  8. 65dd87f6620b: Pull complete
  9. 78a183a01190: Pull complete
  10. 1a4499c85f97: Pull complete
  11. 2c9d39b4bfc1: Pull complete
  12. 1b1cec2222c9: Pull complete
  13. fc95b85a81f3: Pull complete
  14. 0f3868647539: Pull complete
  15. 9b6a6eddb2d9: Pull complete
  16. 8787183cb077: Pull complete
  17. Digest: sha256:8d120de5102cc12310de741299e9bf6f39d2d674663f2ce4e6f0f181ccfeebe7
  18. Status: Downloaded newer image for docker.io/tomcat:latest

10、查看本地的tomcat镜像

  1. [root@localhost ~]# docker images
  2. REPOSITORY TAG IMAGE ID CREATED SIZE
  3. docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB

11、可以下载指定版本的tomcat,默认下载latest版本,一下是我下载tomcat 8.0版本时候的效果,输入命令:docker pull tomcat:8.0  就是可下载指定版本的tomcat了

  1. [root@localhost ~]# docker pull registry.docker-cn.com/library/tomcat:8.0
  2. Trying to pull repository docker.io/library/tomcat ...
  3. 8.0: Pulling from docker.io/library/tomcat
  4. f189db1b88b3: Downloading [==========================================> ] 46.12 MB/54.25 MB
  5. 3d06cf2f1b5e: Download complete
  6. edd0da9e3091: Download complete
  7. eb7768aae14e: Download complete
  8. e2780f585e0f: Download complete
  9. e5ed720afeba: Downloading [=============> ] 21.38 MB/81.8 MB
  10. d9e134700cfc: Download complete
  11. e4804b33d02a: Download complete
  12. b9df0c24315e: Download complete
  13. 49fdae8eaa20: Downloading [===============================> ] 6.479 MB/10.38 MB
  14. 1aea3d9a32e6: Waiting

12、查看刚下载的tomcat8.0,查看镜像是用docker images命令查看

  1. [root@localhost ~]# docker images
  2. REPOSITORY TAG IMAGE ID CREATED SIZE
  3. docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB
  4. docker.io/tomcat 8.0 ef6a7c98d192 4 weeks ago 356 MB

多了tomcat 8.0版本的镜像,每个镜像都有自己的镜像ID

13、删除不用的镜像,使用docker rmi 镜像名:tag

  1. [root@localhost ~]# docker rmi tomcat:8.0
  2. Untagged: tomcat:8.0
  3. Untagged: docker.io/tomcat@sha256:8ecb10948deb32c34aeadf7bf95d12a93fbd3527911fa629c1a3e7823b89ce6f
  4. Deleted: sha256:ef6a7c98d192507d6066dcf24e44bec66d07ec9cf7c55d8d3d1ea0a24660bdef
  5. Deleted: sha256:6dc5bbd9ede58ce52f6e9d34eaac4e3bf1fbb3014e9eae344677bf3c2f022a17
  6. Deleted: sha256:6f22c12dcf0ac783b0b00471e38262c708761a677e6a847a57a5d7cce2cbc7f1
  7. Deleted: sha256:dbefc7cd29b21d99c136d6234ca442cdb89fc91f3c91ef6c1d333d37424d2f44
  8. Deleted: sha256:d65396dbf112285c9d395bb33c2eb2f776cd9b959c007152c10a2f25fbf1c198
  9. Deleted: sha256:5b8a875f80bdd2e9f9cf2c0852243e0cb59ea7be5e92620b2c2089800bb18594
  10. Deleted: sha256:d97b31b9ca51e024a895e2f6fa032224fb73ba2a070149499ce87306ed9d7af6
  11. Deleted: sha256:3717c4f05493340d97d982bc6ed8cba98869833918de23c78c39414788dd08c1
  12. Deleted: sha256:b9c326fb510188d2958888aee970ae93925c2a2ad8a78b2ec3a521747ee3ec4f
  13. Deleted: sha256:8cc193ff8a5b4837eab54bee27418daadad8825f13b8fab55229b4954fee6f9f
  14. Deleted: sha256:b1852f6f3f85863ed849af673e566ad8de76dac4d2c6526d791e965978c1ce62
  15. Deleted: sha256:8c466bf4ca6ffdda8b7717b1cd6fe31109529ee64e626a003a224fb8bd2bc469

14、在查看,没有了刚才删除的tomcat8.0

  1. [root@localhost ~]# docker images
  2. REPOSITORY TAG IMAGE ID CREATED SIZE
  3. docker.io/tomcat latest 41a54fe1f79d 4 weeks ago 463 MB

15、如果想使docker在Linux启动的时候也跟着启动,那么输入命令 systemctl enable docker

  1. [root@localhost ~]# systemctl enable docker
  2. 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

  1. [root@localhost ~]# docker run --name mytomcat -d tomcat:latest
  2. 1e05e524c6097b1dac4e58821bb220037d40488c5cf9846e37fabd29a3dfb22b

17、查看刚才运行的tomat镜像,使用命令 docker ps 查看运行中的容器

  1. [root@localhost ~]# docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 1e05e524c609 tomcat:latest "catalina.sh run" About a minute ago Up About a minute 8080/tcp mytomcat

18、停止docker容器  使用命令 docker stop 容器ID或者容器名称

  1. [root@localhost ~]# docker stop 1e05e524c609
  2. 1e05e524c609

可以使用docker ps -a 查看容器中的镜像,已经退出了。

  1. [root@localhost ~]# docker ps -a
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 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

  1. [root@localhost ~]# docker run -d -p 8888:8080 tomcat
  2. 52f3b94d083eb9669b92e346d489df626b59377327f5d84cc3c55860fcd9614f

这样就启动了映射,外部可以访问启动的容器了

  1. [root@localhost ~]# docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 52f3b94d083e tomcat "catalina.sh run" 7 minutes ago Up 7 minutes 0.0.0.0:8888->8080/tcp optimistic_albattani

20、如果外部访问不了,可能是防火墙的问题,使用命令 service firewalld status 查看防火墙状态

  1. [root@localhost ~]# service firewalld status
  2. Redirecting to /bin/systemctl status firewalld.service
  3. ● firewalld.service - firewalld - dynamic firewall daemon
  4. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
  5. Active: active (running) since 五 2018-10-12 13:52:11 CST; 1h 7min ago
  6. Docs: man:firewalld(1)
  7. Main PID: 16275 (firewalld)
  8. Tasks: 2
  9. Memory: 516.0K
  10. CGroup: /system.slice/firewalld.service
  11. └─16275 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
  12. 1012 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.
  13. 1012 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?).
  14. 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?).
  15. 1012 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?).
  16. 1012 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?).
  17. 1012 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?).
  18. 1012 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.
  19. 1012 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.
  20. 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?).
  21. 1012 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.
  22. Hint: Some lines were ellipsized, use -l to show in full.

如果是启动的,给停止了,使用service firewalld stop

  1. [root@localhost ~]# service firewalld stop
  2. Redirecting to /bin/systemctl stop firewalld.service

查看现在防火墙的状态

  1. [root@localhost ~]# service firewalld status
  2. Redirecting to /bin/systemctl status firewalld.service
  3. ● firewalld.service - firewalld - dynamic firewall daemon
  4. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
  5. Active: inactive (dead) since 五 2018-10-12 15:03:54 CST; 6s ago
  6. Docs: man:firewalld(1)
  7. Process: 16275 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
  8. Main PID: 16275 (code=exited, status=0/SUCCESS)
  9. 1012 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. 1012 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?).
  11. 1012 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?).
  12. 1012 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?).
  13. 1012 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.
  14. 1012 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.
  15. 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?).
  16. 1012 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.
  17. 1012 15:03:54 localhost systemd[1]: Stopping firewalld - dynamic firewall daemon...
  18. 1012 15:03:54 localhost systemd[1]: Stopped firewalld - dynamic firewall daemon.
  19. Hint: Some lines were ellipsized, use -l to show in full.

21、如果想要查看容器的日志,可以使用docker logs 容器ID

  1. [root@localhost ~]# docker logs 52f3b94d083e
  2. 12-Oct-2018 06:53:53.585 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.34
  3. 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:28:22 UTC
  4. 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.34.0
  5. 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
  6. 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-514.el7.x86_64
  7. 12-Oct-2018 06:53:53.587 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
  8. 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
  9. 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
  10. 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
  11. 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
  12. 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
  13. 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
  14. 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
  15. 12-Oct-2018 06:53:53.591 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
  16. 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
  17. 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
  18. 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
  19. 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
  20. 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
  21. 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
  22. 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].
  23. 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].
  24. 12-Oct-2018 06:53:53.592 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
  25. 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]
  26. 12-Oct-2018 06:53:53.749 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
  27. 12-Oct-2018 06:53:53.767 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
  28. 12-Oct-2018 06:53:53.786 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
  29. 12-Oct-2018 06:53:53.787 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
  30. 12-Oct-2018 06:53:53.796 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 828 ms
  31. 12-Oct-2018 06:53:53.829 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
  32. 12-Oct-2018 06:53:53.829 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
  33. 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]
  34. 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
  35. NG] took [108,085] milliseconds.
  36. 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
  37. [108,666] ms
  38. 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]
  39. 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
  40. [31] ms
  41. 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]
  42. 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
  43. d in [380] ms
  44. 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]
  45. 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
  46. ished in [54] ms
  47. 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]
  48. 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
  49. in [44] ms
  50. 12-Oct-2018 06:55:43.047 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
  51. 12-Oct-2018 06:55:43.054 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
  52. 12-Oct-2018 06:55:43.056 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 109259 ms
  53. [root@localhost ~]#

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/948367
推荐阅读
相关标签
  

闽ICP备14008679号