【问题标题】:How to install nginx,php and laravel on centos6.9?centos6.9如何安装nginx、php和laravel?
【发布时间】:2018-05-04 19:43:17
【问题描述】:

我已经购买了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

【问题讨论】:

    标签: nginx centos vps


    【解决方案1】:

    您应该检查 SELinux 是否已关闭。
    更新:
    请在此处禁用 SELinux 作为指南: https://www.tecmint.com/disable-selinux-temporarily-permanently-in-centos-rhel-fedora/
    为了节省您的时间,请尝试以下命令:
    setenforce 0
    然后再试一次。

    【讨论】:

    • 这个选项在哪里?你能解释一下吗?
    猜你喜欢
    • 2019-05-19
    • 1970-01-01
    • 2018-04-25
    • 2015-04-23
    • 2017-11-25
    • 1970-01-01
    • 2023-01-13
    • 2016-08-24
    • 2015-04-30
    相关资源
    最近更新 更多