Linux 修改zabbix server的web访问端口

在安装zabbix server的时候默认就安装了apache,zabbix依靠apache提供的web服务,修改Zabbix的浏览器访问端口,就是修改apache的服务端口(默认端口:80)

1.编辑httpd.conf文件  :vim /etc/httpd/conf/httpd.conf

2.修改默认的侦听端口和ServerName

   136 Listen 8008

    277 ServerName IP:8008

3.重启apache服务,使配置生效: service httpd restart

4.添加防火墙规则,允许端口访问

  编辑 :vim /etc/sysconfig/iptables

  # zabbix web

  -A INPUT -m state --state NEW -m tcp -p tcp --dport 8008 -j ACCEPT

 重启防火墙:service iptables restart
5.浏览器访问http://IP:8008/zabbix 测试是否修改成功
 
原文地址:https://www.cnblogs.com/qinxu/p/9837931.html