Centos7安装Zabbix3.4

来源:互联网 发布:淘宝产品推销方案 编辑:程序博客网 时间:2024/06/06 00:16

1、先装mariadb:

yum install mariadb-server mariadb -y

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation 配置mysql的root等信息

mysql进后create database zabbix;grant all on zabbix.* to zabbix@localhost identified by 'zabbix';

2、开始安装

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

yum install zabbix-server-mysql zabbix-web-mysql -y

zcat /usr/share/doc/zabbix-server-mysql-3.4.3/create.sql.gz > /home/create.sql

进入mysql后导入到zabbix中:use zabbix;source /home/create.sql

vi /etc/zabbix/zabbix_server.conf配置 DBHost、DBPassword、DBUser、DBHost、DBSocket

3、配备服务

systemctl start httpd

systemctl enable httpd

systemctl start zabbix-server

systemctl enable zabbix-server

firewall-cmd --permanent --zone=public --add-service=http

firewall-cmd --reload

4、浏览器打开192.168.1.160/zabbix然后开始配置,用户名是admin 密码zabbix 然后配置用户

5、安装本机的agent

yum install zabbix-agent -y

service zabbix-agent start

systemctl enable zabbix-agent

6、排错

注意selinux关闭还有看zabbix_server日志



原创粉丝点击