V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kmdd33
V2EX  ›  问与答

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

  •  
  •   kmdd33 · Apr 9, 2018 · 2150 views
    This topic created in 2943 days ago, the information mentioned may be changed or developed.
    安装的路径是:
    /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  
       Apr 9, 2018
    service nginx restart。。。。。。。。。。。。。。。。吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   878 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:11 · PVG 06:11 · LAX 15:11 · JFK 18:11
    ♥ Do have faith in what you're doing.