美文网首页运维监控
修改Zabbix Server的Web UI访问端口

修改Zabbix Server的Web UI访问端口

作者: 皇阿玛PLUS | 来源:发表于2017-03-11 11:07 被阅读631次

根据上文的Zabbix部署文章可以知道,在安装zabbix server的时候默认就安装了apache,也就是说zabbix依靠apache提供的web服务,因此,修改Zabbix的浏览器访问端口,其实就是修改apache的服务端口(默认端口:80)。

配置过程

1.编辑httpd.conf配置文件
搜索httpd.conf配置文件的位置

  [root@iZbp share]# find / -name httpd.conf
  /etc/httpd/conf/httpd.conf

修改默认的侦听端口和ServerName

  [root@iZbp share]# vim /etc/httpd/conf/httpd.conf 
   136 Listen 9008
   277 ServerName 121.43.161.35:9008  

2.重启apache服务,使得配置生效

  [root@iZbp share]# service httpd restart
  Stopping httpd:                                            [  OK  ]
  Starting httpd:                                            [  OK  ]

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

  [root@iZbp share]# vim /etc/sysconfig/iptables
  # zabbix web
  -A INPUT -m state --state NEW -m tcp -p tcp --dport 9008 -j ACCEPT

  [root@iZbp share]# service iptables restart

4.浏览器访问http://x.x.x.x:9008/zabbix 测试是否修改成功

相关文章

网友评论

    本文标题:修改Zabbix Server的Web UI访问端口

    本文链接:https://www.haomeiwen.com/subject/gugogttx.html