Centos7安装zabbix3.4全过程

安装zabbix-server 3.4

本文以centos 7为例。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
systemctl stop firewalld.service	#关闭防火墙
systemctl disable firewalld.service #开机不启动防火墙
setenforce 0 #清空selinux的配置
yum install mariadb-server mariadb –y
systemctl enable mariadb #设置开机启动
systemctl start mariadb #启动MariaDB
rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.5-1.el7.x86_64.rpm
yum install zabbix-server-mysql zabbix-web-mysql -y
zcat /usr/share/doc/zabbix-server-mysql-3.4.9/create.sql.gz |mysql -uzabbix -pzabbix zabbix #这里是设定zabbix数据库账号密码和database的地方,create.sql.gz这个文件位置要根据实际情况来
vim /etc/httpd/conf.d/zabbix.conf #这里要修改文件里的时区,改成Asia/Shanghai
systemctl start zabbix-server
systemctl enable zabbix-server
setsebool -P httpd_can_connect_zabbix on
setsebool -P httpd_can_cetwork_connect_db on
systemctl start httpd
systemctl enable httpd
chkconfig zabbix_agent on
systemctl start zabbix-agent

然后就是在浏览器输入外网IP/zabbix/进行页面安装了,剩下的就不多写了。

安装zabbix-agent 3.4

如果是centos 6:

1
2
3
rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm
yum install -y zabbix-agent
chkconfig zabbix_agent on;service zabbix_agent start #如果不对就使使zabbix-agent

如果是centos 7:

1
2
rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.5-1.el7.x86_64.rpm
chkconfig zabbix_agent on;service zabbix_agent start #如果不对就使使zabbix-agent

其他资料

https://www.kaijia.me/2014/11/zabbix-report-lack-of-free-swap-space-issue-on-server-without-swap-solved/

akb48

-------------This article is over!Thanks for reading!-------------
感谢您请我喝咖啡!(o´ω`o)
0%