安装 zabbix 前的准备
先了解 zabbix 架构
先安装 mariaDB , http 即搭建 LAMP 架构和其它的依赖包 执行以下安装命令
成功后
下面开始安装 zabbix
这是官网安装教程, 可以作为参考
- Choose your platform
- Install and configure Zabbix server for your platform
- a. Install Zabbix repository
- documentation
- #rpm -Uvh
- #dnf clean all
- b. Install Zabbix server, frontend, agent
- #dnf -y install zabbix-server-MySQL zabbix-web-MySQL zabbix-agent
- c. Create initial database
- documentation
- #MySQL -uroot -p
- password
- MySQL> create database zabbix character set utf8 collate utf8_bin;
- MySQL> grant all privileges on zabbix.* to [email protected] identified by 'password';
- MySQL> quit;
- Import initial schema and data. You will be prompted to enter your newly created password.
- #zcat /usr/share/doc/zabbix-server-MySQL*/create.sql.gz | MySQL -uzabbix -p zabbix
- d. Configure the database for Zabbix server
- Edit file /etc/zabbix/zabbix_server.conf
- DBPassword=password
- e. Configure PHP for Zabbix frontend
- Edit file /etc/PHP-fpm.d/zabbix.conf, uncomment and set the right timezone for you.
- ; php_value[date.timezone] = Europe/Riga
- f. Start Zabbix server and agent processes
- Start Zabbix server and agent processes and make it start at system boot:
- #systemctl restart zabbix-server zabbix-agent httpd PHP-fpm
- #systemctl enable zabbix-server zabbix-agent httpd PHP-fpm
- Now your Zabbix server is up and running!
- Configure Zabbix frontend
- Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
- Follow steps described in Zabbix documentation: Installing frontend
- Start using Zabbix
- Read in documentation: Quickstart guide
默认用户名 Admin
默认密码 zabbix
- Watch video guide:
- Zabbix Server Installation
- Zabbix server installation explained
来源: http://www.bubuko.com/infodetail-3286788.html