V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kmdd33
V2EX  ›  问与答

重启 openresty 失败。请问正确命令

  •  
  •   kmdd33 · 2018-04-09 19:27:55 +08:00 · 1801 次点击
    这是一个创建于 2209 天前的主题,其中的信息可能已经有所发展或是发生改变。
    安装的路径是:
    /usr/local/openresty/nginx

    今天修改了 nginx.conf 文件,需要保存,重新启动

    执行:[root@newoneacreland ~]# /usr/local/openresty/nginx -s reload

    -bash: /usr/local/openresty/nginx: Is a directory

    [root@newoneacreland ~]# /usr/local/openresty/nginx/sbin/nginx -p pwd/ -c conf/nginx.conf

    nginx: [alert] could not open error log file: open() "/root/logs/error.log" failed (2: No such file or directory)

    请问正确的重启方式?
    xzc0001
        1
    xzc0001  
       2018-04-09 21:31:39 +08:00
    service nginx restart。。。。。。。。。。。。。。。。吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1009 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:45 · PVG 03:45 · LAX 12:45 · JFK 15:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.