1、其他电脑不能访问服务器WEB。

服务器80端口和http服务没问题,本机也能打开。

  1. #netstat –tunl
  2. #service httpd status
  3. #curl 127.0.0.1

关闭防火墙后可以正常访问。

  1. #service iptables stop

添加一条防火墙规则应该也可以解决这个问题。以后学习。

2、访问http://localhost/cacti时出现HTTP 403 Forbidden错误

web目录访问权限都正常

  1. #ll /var/www/html

网上搜索后,发现是selinux的问题,如下设置后正常

  1. #chcon -R -t httpd_user_content_t /var/www/html  #令/var/www/html及其下所有子目录/文件获得httpd_user_content_t的属性