zabbix安装

关闭防火墙

上传yum源

下载zabbix

下载mysql

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb mariadb-server

启动自启mysql

systemctl enable mariadb

systemctl start mariadb

在mysql建zabbix库

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

设置zabbix登录权限

grant all on *.* to zabbix@"localhost" identified by "zabbix";

上传zabbix 的 mysql包

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

修改zabbix-server端

  • vim /etc/zabbix/zabbix_server.conf 
    1.   DBHost=localhost
    2.   DBName=zabbix
    3.   DBUser=zabbix
    4.   DBPassword=zabbix

启动zabbix-server  zabbix-agent    httpd

  • 自启
  • systemctl enable zabbix-agent zabbix-server httpd
  • 启动
  • systemctl start zabbix-agent zabbix-server httpd

监控zabbix-server 端口

  • netstat -lunpt |grep 10051

监控zabbix-agent 端口

  • netstat -lunpt |grep 10050

同步时间

vim /etc/php.ini

  date.timezone = Asia/shanghai

 

posted @ 2020-05-09 15:10  麋鹿zyx  阅读(65)  评论(0编辑  收藏  举报