CentOS 7.4 安装Zabbix 3.4(3)

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              #修改配置文件

  

CentOS 7.4 安装Zabbix 3.4

启动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

CentOS 7.4 安装Zabbix 3.4

修改为亚洲上海

CentOS 7.4 安装Zabbix 3.4

保存并退出

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 浏览器访问,并进行安装

CentOS 7.4 安装Zabbix 3.4

点击next step

CentOS 7.4 安装Zabbix 3.4

点击 next step

CentOS 7.4 安装Zabbix 3.4

输入数据库的密码

点击next step

CentOS 7.4 安装Zabbix 3.4

点击 next step

CentOS 7.4 安装Zabbix 3.4

确认信息没错以后

点击 next step

CentOS 7.4 安装Zabbix 3.4

完成安装,会将在/etc/zabbix/web/zabbix.conf.php生成配置文件

Congratulations! You have successfully installed Zabbix frontend.

Configuration file "/etc/zabbix/web/zabbix.conf.php" created.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/920f84eef01aa50ca1e572c415a5c035.html