nginx配置问题
- 该主题包含 27个回复,有 27个参与人,并且由2021年10月29日-下午8:46 于 最后一次更新。
大家好。我用树梅派装了OMV4, 安装了插件nginx。但是在启动nginx服务的时候提示错误:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; nginx -t 2>&1' with exit code '1': nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) nginx: configuration file /etc/nginx/nginx.conf test failed
端口改成其他的也是一样的错误。
进入etc/nginx/sites-enabled/default文件,文件是空的。请问大神们怎么解决这个问题啊,谢谢。