欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ganglia访问时出现“You don‘t have permission to access /ganglia/ on this server“

程序员文章站 2022-03-15 22:44:06
...

sudo chmod 777 /var/lib/ganglia 没有用

修改配置文件/etc/httpd/conf.d/ganglia.conf

#
# Ganglia monitoring system php web frontend
#

Alias /ganglia /usr/share/ganglia

<Location /ganglia>
  Order deny,allow
  Deny from all
  Allow from all
  #Allow from 127.0.0.1
  #Allow from ::1
  # Allow from.example.com
</Location>

sudo vim /etc/httpd/conf.d/ganglia.conf

#
# Ganglia monitoring system php web frontend
#

Alias /ganglia /usr/share/ganglia

#<Location /ganglia>
#  Require local
  # Require ip 10.1.2.3
  # Require host example.org
#</Location>


<Location /ganglia>
  #Order deny,allow
 # Deny from all
 # Allow from all
  # Allow from 127.0.0.1
  # Allow from ::1
  # Allow from .example.com
    Require all granted
</Location>

重启httpd

sudo service httpd restart

ganglia访问时出现“You don‘t have permission to access /ganglia/ on this server“

相关标签: flume