Linux监控平台介绍
Linux监控平台介绍
zabbix监控介绍
zabbix监控介绍
zabbix监控介绍
安装zabbix
安装zabbix
安装zabbix
安装zabbix
安装zabbix
忘记Admin密码
server上操作,默认mysql已经安装
#官网下载地址 www.zabbix.com/download
[root@wsl3 ~]# rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
[root@wsl3 ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
#mysql增加配置
[root@wsl3 ~]# vim /etc/my.cnf
#[mysqld]下增加如下配置
character_set_server = utf8
[root@wsl3 ~]# /etc/init.d/mysqld restart
Shutting down MySQL.. SUCCESS!
Starting MySQL.. SUCCESS!
[root@wsl3 ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.35-log MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '123456';
Query OK, 0 rows affected (0.01 sec)
mysql> quit;
Bye
[root@wsl3 ~]# cd /usr/share/doc/zabbix-server-mysql-3.4.9/
[root@wsl3 zabbix-server-mysql-3.4.9]# ls
AUTHORS ChangeLog COPYING create.sql.gz NEWS README
[root@wsl3 zabbix-server-mysql-3.4.9]# gzip -d create.sql.gz
[root@wsl3 zabbix-server-mysql-3.4.9]# mysql -uroot -p zabbix < create.sql
Enter password:
[root@wsl3 zabbix-server-mysql-3.4.9]# systemctl start httpd
[root@wsl3 zabbix-server-mysql-3.4.9]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@wsl3 zabbix-server-mysql-3.4.9]# vim /etc/zabbix/zabbix_server.conf
#添加如下
DBPassword=123456
DBHost=127.0.0.1
[root@wsl3 zabbix-server-mysql-3.4.9]# vim /etc/php.ini
#添加如下
date.timezone = Asia/Shanghai
[root@wsl3 zabbix-server-mysql-3.4.9]# systemctl restart httpd
[root@wsl3 zabbix-server-mysql-3.4.9]# systemctl start zabbix-server
[root@wsl3 zabbix-server-mysql-3.4.9]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
[root@wsl3 zabbix-server-mysql-3.4.9]# netstat -lntp |grep zabbix
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 8704/zabbix_server
tcp6 0 0 :::10051 :::* LISTEN 8704/zabbix_server
配置MySQL
默认账号:Admin 默认密码:zabbix
登录
更改密码和语言
客户端安装
[root@wsl2 ~]# rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
[root@wsl2 ~]# yum install zabbix-agent
[root@wsl2 ~]# vim /etc/zabbix/zabbix_agentd.conf
#更改为服务端ip
Server=172.16.230.133
ServerActive=172.16.230.133
Hostname=wsl2
[root@wsl2 ~]# systemctl start zabbix-agent
[root@wsl2 ~]# systemctl enable zabbix-agent
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.

Linux监控平台介绍
zabbix监控介绍
zabbix监控介绍
安装zabbix
安装zabbix
安装zabbix
安装zabbix
忘记Admin密码
配置MySQL
登录
更改密码和语言











网友评论