首页 > 其他 > 详细

Centos 7 最简单 LAMP 搭建zabbix监控平台

时间:2019-03-23 23:59:07      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:one   grant   rac   wal   leg   lamp   lamp 搭建   con   usr   

Centos 7 lamp 搭建 zabbix

yum -y install mariadb-server mariadb
yum install httpd -y
setenforce 0
systemctl stop firewalld
systemctl start httpd
systemctl start mariadb
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum clean all
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix. to [email protected] identified by ‘password‘;
mysql> quit;
zcat /usr/share/doc/zabbix-server-mysql
/create.sql.gz | mysql -uzabbix -p zabbix
vi /etc/zabbix/zabbix_server.conf
DBPassword=password 修改密码为上面设置的
vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Europe/Riga 取消警号 设置为 Asia/ShangHai
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd

访问https://IP/zabbix

Centos 7 最简单 LAMP 搭建zabbix监控平台

标签:one   grant   rac   wal   leg   lamp   lamp 搭建   con   usr   

原文:https://blog.51cto.com/7206952/2367681

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 designnerd.net 版权所有 鲁ICP备09046678号-4
打开技术之扣,分享程序人生!
             

鲁公网安备 37021202000002号