在安装zabbix_server之前,我们先来部署LAMP环境以及系统环境。
系统版本:redhat7.3
apache版本:httpd(yum源自带)
PHP版本:php(yum源自带)
Mysql版本:mariadb(yum源自带)
zabbix版本:zabbix-4.0.19 https://www.zabbix.com/cn/download_sources#tab:40LTS
1、系统环境:关闭防火墙、关闭SElinux
# systemctl stop firewalld.service
# systemctl disable firewalld.service
# getenforce
Disabled
2、创建系统用户:zabbix
# useradd zabbix
# echo zabbix |passwd --stdin zabbix
3、安装lamp环境
# yum -y install httpd php php-mysql php-gd php-xml* mariadb*
启动http、mariadb,并设置开机自启
# systemctl start httpd.service mariadb.service
# systemctl enable httpd.service mariadb.service
4、设置数据库root用户密码,创建库zabbixdb,并授权给用户zabbix
# mysqladmin -uroot password "123.com"
# mysql -uroot -p