Home  >  Q&A  >  body text

centos7 - Alibaba Cloud server Nginx fails to restart


After reconfiguring the conf.default file, the restart has failed. I have tried some methods but still failed. I hope you can give me some advice!

PHP中文网PHP中文网2687 days ago1100

reply all(4)I'll reply

  • cloudmam

    cloudmam2020-06-23 16:12:21

    It is recommended to install a server management tool Cloud Helper (https://www.cloudx.cn/?utm_source=wu-p). My Alibaba Cloud server is managed with this tool. You can try it

    reply
    0
  • 黄舟

    黄舟2017-06-10 09:51:38

    You didn’t find the installation path! ps aux|grep nginx first check whether the nginx process is up. Use the which command to find nginx and find the installation path, such as /app/local/nginx/sbin/nginx -s reload

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-06-10 09:51:38

    Assume nginx is installed in /usr/local/nginx:

    ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
    nginx -s reload (如果配置默认路劲是: /usr/local/nginx/conf/nginx.default)

    reply
    0
  • ringa_lee

    ringa_lee2017-06-10 09:51:38

    If nginx is compiled and installed, you should use the full path. You can check the system log or nginx log

    reply
    0
  • Cancelreply