1 [root@linuxidc ~]# grep -n '^'[a-Z] /etc/zabbix/zabbix_server.conf 2 3 38:LogFile=/var/log/zabbix/zabbix_server.log 4 5 49:LogFileSize=0 6 7 72:PidFile=/var/run/zabbix/zabbix_server.pid 8 9 82:SocketDir=/var/run/zabbix 10 11 101:DBName=zabbix 12 13 117:DBUser=zabbix 14 15 316:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log 16 17 434:Timeout=4 18 19 476:AlertScriptsPath=/usr/lib/zabbix/alertscripts 20 21 486:ExternalScripts=/usr/lib/zabbix/externalscripts 22 23 522:LogSlowQueries=3000
[root@linuxidc ~]# vim /etc/zabbix/zabbix_server.conf #修改配置文件
启动zabbix server并设置开机启动
1 [root@linuxidc ~]# systemctl start zabbix-server 2 3 [root@linuxidc ~]# systemctl enable zabbix-server 4
编辑Zabbix前端PHP配置,更改时区1 [root@linuxidc ~]# vim /etc/httpd/conf.d/zabbix.conf
修改为亚洲上海
保存并退出
SELinux配置1 [root@linuxidc ~]# setsebool -P httpd_can_connect_zabbix on 2 3 setsebool: SELinux is disabled. 4 5 [root@linuxidc ~]# setsebool -P httpd_can_cetwork_connect_db on 6 7 setsebool: SELinux is disabled.
启动httpd并设置开机启动1 [root@linuxidc ~]# systemctl start httpd #启动httpd服务 2 3 [root@linuxidc ~]# systemctl enable httpd #设置开机启动httpd服务
四、安装Zabbix Web 浏览器访问,并进行安装点击next step
点击 next step
输入数据库的密码
点击next step
点击 next step
确认信息没错以后
点击 next step
完成安装,会将在/etc/zabbix/web/zabbix.conf.php生成配置文件
Congratulations! You have successfully installed Zabbix frontend.
Configuration file "/etc/zabbix/web/zabbix.conf.php" created.