LAMP 1.6 Discuz打开错误

打开discuz失败,

ps aux |grep mysql
ps aux |grep httpd

查看mysql apache有没有打开。

重启mysql

service mysqld restart

重启apache

/usr/local/apache2/bin/apachectl restart

 

查看selinux防火墙有没有关闭

getenforce

enforcing - SELinux security policy is enforced.打开
permissive - SELinux prints warnings instead of enforcing.打开不拦截
disabled - No SELinux policy is loaded.关闭,默认

永久打开或关闭就修改配置文件。

vim /etc/selinux/config

重启生效。或者临时关闭

临时关闭命令是 

setenforce 0

临时打开命令是

setenforce 1

 

或者清除防火墙规则

iptables -F
service  iptables stop
chkconfig iptables off

 

 

 

 

 

 

 

 

启动apache服务,报错

这里命令写错了,/usr/local/apache2/bin/apachectl  start

80端口被占用

 

命令 killall httpd 杀死全部httpd进程 

然后重启apache

 

posted @ 2015-12-02 20:21  dennyLinux  阅读(170)  评论(0编辑  收藏  举报