V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shayang888
V2EX  ›  程序员

docker 启动 nginx 后,就一直在重启

  •  
  •   shayang888 · 2018-06-01 14:45:11 +08:00 · 4196 次点击
    这是一个创建于 2148 天前的主题,其中的信息可能已经有所发展或是发生改变。

    nginx "nginx -g 'daemon of …" 10 minutes ago Restarting (1) 24 seconds ago blog_nginx

    就这样 我的启动命令是 docker run --restart=always -p 80:80 --name blog_nginx -v $PWD/www:/www -v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf -v $PWD/logs:/wwwlogs -d nginx

    docker container logs blog_nginx 显示的 2018/06/01 06:33:00 [emerg] 1#1: no "events" section in configuration nginx: [emerg] no "events" section in configuration 2018/06/01 06:33:00 [emerg] 1#1: no "events" section in configuration nginx: [emerg] no "events" section in configuration 2018/06/01 06:33:01 [emerg] 1#1: no "events" section in configuration nginx: [emerg] no "events" section in configuration 2018/06/01 06:33:02 [emerg] 1#1: no "events" section in configuration nginx: [emerg] no "events" section in configuration

    yanaraika
        1
    yanaraika  
       2018-06-01 14:51:26 +08:00
    配置写错了,自己慢慢查吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5429 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:13 · PVG 15:13 · LAX 00:13 · JFK 03:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.