centos7 - Alibaba Cloud server Nginx fails to restart
PHP中文网
PHP中文网 2017-06-10 09:49:38
0
4
1151


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中文网

认证高级PHP讲师

reply all(4)
cloudmam

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

黄舟

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

扔个三星炸死你

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)
左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template