安装discuz时显示目录不存在和不可写
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
我一开始也是出现这种情况。
出现这种情况有两种,目前我碰到就是两种
第一种就是文件没有给够权限。可以通过chmod -R 777 /var/www/html/
给权限。
第二种就是对于Centos
系统来说的,selinux
的安全问题。
再命令行输入getenforce
如果出现Enforcing
,就是适用这种方法
cd /etc/selinux/
然后ls
然后编辑vi config
把
SELINUX=enforcing
先设置成 permissive
尝试一下看行不行,如果不行再
改成SELINUX=disabled
像下面一样
如果发现Disabled
切换到Enforcing
之后,发现有服务开启不了的话,就先换成Permissive
模式,使用命令restorecon - Rv file
还原所有的SELinux
的类型.
然后重启reboot
然后重新再安装。就可以了,亲测可以。




A beautiful web dashboard for Linux
最近提交(Master分支:21 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)