我已经购买了godaddy vps服务器,并且我想安装nginx,laravel和php。
我正在尝试安装nginx我遇到了问题:
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
1. List item
2017/11/21 03:52:00 [emerg] 23590#0: open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
答案 0 :(得分:0)
您应该检查SELinux是否已关闭。
的更新强>
请在此处禁用SELinux作为指南:
https://www.tecmint.com/disable-selinux-temporarily-permanently-in-centos-rhel-fedora/
为节省您的时间,请尝试以下命令:
setenforce 0
然后再试一次。