1、Linux监控平台
2、 zabbix监控
3、zabbix的安装
下载:wget -c https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
安装rpm包:rpm -ivh zabbix-release-3.4-2.el7.noarch.rpm
然后,用yum安装:
yum install -y zabbix-agent zabbix-get zabbix-server-mysql zabbix-web zabbix-web-mysql
进入mysql创建一个库:create database zabbix character set utf8;
再授权:grant all on zabbix.* to ‘zabbix‘@‘127.0.0.1‘ identified by ‘zabbixtest‘;
然后退出:
然后再进入:cd /usr/share/doc/zabbix-server-mysql-3.4.11/
导入数据: 先解压:gzip -d create.sql.gz,再导入:mysql -uroot -p zabbix < create.sql
再停止以前所站用的80端口
启动httpd:systemctl start httpd
再启动zabbix service:systemctl start zabbix-server.service
最后进行查看:ps aux |grep zabbix
原文地址:https://www.cnblogs.com/nfyx/p/9281868.html
时间: 2024-10-12 11:12:48