nginx配置:"http" directive is not

2019-09-25  本文已影响0人  杰x6770

一、背景

Debian/Ubuntu/Deepin安装Nginx

cd /etc/nginx/config.d
sudo touch index.conf
sudo vim index.conf
/etc/nginx/conf.d$ systemctl restart nginx.service 
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

二、解决

server {
    listen 80;

    root /usr/share/nginx/html;
    index index.html;

    location / {
    }
}
上一篇 下一篇

猜你喜欢

热点阅读