https://www.zabbix.com/documentation/3.4/zh/manual/installation/install_from_packages


# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.noarch.rpm
# yum install zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-agent
安装 mysql


安装初始化数据库
1、登录mysql
2、create database zabbix
# cd /usr/share/doc/zabbix-server-mysql-3.4.0
# zcat create.sql.gz | mysql -uroot -p zabbix

启动Zabbix Server进程
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix 登录数据库名
DBPassword=zabbix 登录数据库密码

启动Zabbix Server进程

# systemctl start zabbix-server

编辑Zabbix前端的PHP配置
/etc/httpd/conf.d/zabbix.conf

php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga #“date.timezone” 设置的注释,并正确配置它
systemctl start httpd

访问:
http://zabbix-frontend-hostname/zabbix 默认的用户名/密码为 Admin/zabbix。

posted on 2022-02-21 10:14  Old-Kang  阅读(29)  评论(0编辑  收藏  举报