Ubuntu18.04安装配置Zabbix

  参考:https://www.zabbix.com/download

  环境查看

 

 

 

   配置源

# wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+bionic_all.deb
# dpkg -i zabbix-release_5.0-1+bionic_all.deb
# apt update

   安装zabbix server frontend agent

# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent

   创建数据库

# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;

   导入数据

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

   设置数据库密码

  /etc/zabbix/zabbix_server.conf

DBPassword=password

   设置PHP时区

   /etc/zabbix/apache.conf

# php_value date.timezone Asia/Shanghai

   启动应用

# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2

   打开页面配置

http://IP/zabbix

   默认用户名和密码为Admin zabbix

posted @ 2020-09-16 11:05  minseo  阅读(1520)  评论(0编辑  收藏  举报