修改此处,/etc/httpd/conf/httpd.参看
# DocumentRoot“/var/www/html"
DocumentRoot“/usr/share/zabbix"
可以直接访问zabbix了IP
不用IP/zabbix了
如果zabbix3.4不能浏览
报错:
[星期一2017年11月20日16:32:26.449942][:错误][pid 4979][客户172.23.10.155:53980]PHP警告:,require_once (/etc/zabbix/web/maintenance.inc.php):未能开放流:在/usr/share/zabbix/include/classes/core/ZBase.没有权限php在第271行
[星期一2017年11月20日16:32:26.449996][:错误][pid 4979][客户172.23.10.155:53980]php致命错误:,require_once():打开失败需要& # 39;/etc/zabbix/web/maintenance.inc.php& # 39;=& # 39;(include_path。:/usr/share/梨:/usr/share/php # 39;)/usr/share/zabbix/include/classes/core/ZBase.php在第271行
[星期一2017年11月20日16:32:26.788031][:错误][pid 4982][客户172.23.10.155:53981]php警告:,require_once (/etc/zabbix/web/maintenance.inc.php):未能开放流:在/usr/share/zabbix/include/classes/core/ZBase.没有权限php在第271行
[星期一2017年11月20日16:32:26.788089][:错误][pid 4982][客户172.23.10.155:53981]php致命错误:,require_once():打开失败需要& # 39;/etc/zabbix/web/maintenance.inc.php& # 39;=& # 39;(include_path。:/usr/share/梨:/usr/share/php # 39;)/usr/share/zabbix/include/classes/core/ZBase.php在第271行
乔恩,- r,apache。apache,/etc/zabbix/web/
乔恩,apache - r。apache,/usr/share/zabbix/include/类/核心
重启httpd
和zabbix服务器