zabbix安装以及部署

本文详细介绍了Zabbix的安装过程,包括下载安装包、安装MySQL、设置密码和权限、访问Zabbix web界面并切换中文、修改密码。接着讲解了客户端server2的Zabbix-agent安装和配置,最后阐述了如何通过网页手动和自动添加主机,以及使用API进行删除和添加操作,并特别提到了添加httpd和mysql模块的步骤。
摘要由CSDN通过智能技术生成

一·下载安装包

[root@server1 ~]# ls     
fping-3.10-1.el7.x86_64.rpm            zabbix-java-gateway-3.4.6-1.el7.x86_64.rpm
iksemel-1.4-2.el7.centos.x86_64.rpm    zabbix-proxy-mysql-3.4.6-1.el7.x86_64.rpm
php-bcmath-5.4.16-42.el7.x86_64.rpm    zabbix-server-mysql-3.4.6-1.el7.x86_64.rpm
php-mbstring-5.4.16-42.el7.x86_64.rpm  zabbix-web-3.4.6-1.el7.noarch.rpm
zabbix-agent-3.4.6-1.el7.x86_64.rpm    zabbix-web-mysql-3.4.6-1.el7.noarch.rpm
zabbix-get-3.4.6-1.el7.x86_64.rpm
[root@server1 ~]# yum install -y *.rpm    
[root@server1 ~]# cd /etc/zabbix/
[root@server1 zabbix]# ls
web                 zabbix_java_gateway.conf         zabbix_server.conf
zabbix_agentd.conf  zabbix_java_gateway_logback.xml
zabbix_agentd.d     zabbix_proxy.conf

这里写图片描述

二·下载mysql

1.修改密码

[root@server1 zabbix]# yum install -y mariadb-server
[root@server1 zabbix]# systemctl start mariadb
[root@server1 zabbix]# mysql_secure_installation 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] Y
New password:     #设置密码
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值