[root@cook ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7c02ec1a6985 yunyoujun/cook "/docker-entrypoint.…"24 seconds ago Up 24 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp cook
5.3、查看cook容器日志
# 如果查看到的日志内容跟如下差不多没有明显错误,说明容器正常[root@cook ~]# docker logs cook
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/06/11 23:52:44 [notice]1#1: using the "epoll" event method2024/06/11 23:52:44 [notice]1#1: nginx/1.24.02024/06/11 23:52:44 [notice]1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) 2024/06/11 23:52:44 [notice]1#1: OS: Linux 3.10.0-1160.71.1.el7.x86_642024/06/11 23:52:44 [notice]1#1: getrlimit(RLIMIT_NOFILE): 1048576:10485762024/06/11 23:52:44 [notice]1#1: start worker processes2024/06/11 23:52:44 [notice]1#1: start worker process 302024/06/11 23:52:44 [notice]1#1: start worker process 31
Spring
Spring Boot
非常快速构建应用程序,简化开发 (1)创建Springboot工程,勾选web开发依赖 创建好的目录,并将没用多余的删掉了
(2)定义请求处理类,并添加方法 创建请求处理类…