zabbix 修改默认的/zabbix 斜杠

发布时间:2020-07-26 23:00:45 作者:小小三郎1
来源:网络 阅读:4298

修改此处   /etc/httpd/conf/httpd.conf


#DocumentRoot "/var/www/html"

DocumentRoot "/usr/share/zabbix"


可以直接访问zabbix了 IP

不用IP/zabbix了


如果zabbix3.4不能浏览

报错:

[Mon Nov 20 16:32:26.449942 2017] [:error] [pid 4979] [client 172.23.10.155:53980] PHP Warning:  require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.449996 2017] [:error] [pid 4979] [client 172.23.10.155:53980] PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.788031 2017] [:error] [pid 4982] [client 172.23.10.155:53981] PHP Warning:  require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.788089 2017] [:error] [pid 4982] [client 172.23.10.155:53981] PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/classes/core/ZBase.php on line 271


chown  -R   apache.apache  /etc/zabbix/web/

chown  -R apache.apache  /usr/share/zabbix/include/classes/core

重启httpd

和zabbix-server

推荐阅读:
  1. Zabbix 监控结合 Grafana 绘图
  2. zabbix从入门到精通文章汇集

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

zabbix zabb

上一篇:Systemstate Dump分析经典案例(下)

下一篇:根据80/20原则计算TPS

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》