CentOS7 二进制安装 Zabbix 5.0
环境准备
MariaDB-10.4.22已安装
关闭防火墙和selinux
[root@centos7 ~]
[root@centos7 ~]
[root@centos7 ~]
1. 安装zabbix rpm源
[root@centos7 ~]
[root@centos7 ~]
[root@centos7 ~]
2. 安装zabbix server和agent
[root@centos7 ~]
3. 安装Zabbix前端
[root@centos7 ~]
[root@centos7 ~]
[zabbix-frontend]
...
enabled=1
...
[root@centos7 ~]
4. 创建初始数据库
[root@centos7 ~]
Enter password:
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> create user zabbix@'10.0.0.%' identified by 'zabbix';
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'10.0.0.%';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit;
[root@centos7 ~]
[root@centos7 ~]
MariaDB [zabbix]> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| ...... |
5. 为Zabbix server配置数据库
[root@centos7 ~]
ListenPort=10051
DBHost=10.0.0.7
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBPort=3306
6. 为Zabbix前端配置PHP
[root@centos7 ~]
php_value[date.timezone] = Asia/Shanghai
7. 启动Zabbix server和agent进程
[root@centos7 ~]
[root@centos7 ~]
8. 配置Zabbix前端
点击【下一步】
确认状态都OK,点击【下一步】
配置数据库连接,点击【下一步】
输入Zabbix server 详细信息,点击【下一步】
确认安装信息,点击【下一步】
完成安装
9. 登录zabbix,默认用户名为Admin,密码为zabbix
zabbix首页
10.配置中文语言
点击左下角【User settings】,选择【Chinese(zh_CH)】,点击【Update】更新
|