码迷,mamicode.com
首页 > 其他好文 > 详细

zabbix

时间:2018-10-30 11:15:24      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:5.4   rhel7.3   rhel7   vpd   system   ring   collate   utf8   mariadb   

环境 rhel7.3 server10
软件: zabbix3.4 php5.4-42
[root@server10 ~]# ls
3.4 php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm
安装软件:
[root@server10 ~]# yum install php-*
[root@server10 3.4]# yum install fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm zabbix-agent-3.4.6-1.el7.x86_64.rpm zabbix-server-mysql-3.4.6-1.el7.x86_64.rpm zabbix-web-3.4.6-1.el7.noarch.rpm zabbix-web-mysql-3.4.6-1.el7.noarch.rpm
[root@server10 3.4]# yum install mariadb-server #数据库安装
[root@server10 3.4]# systemctl start mariadb
[root@server10 3.4]# mysql
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by ‘westos‘;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> quit
[root@server10 3.4]# cd /usr/share/doc/zabbix-server-mysql-3.4.6/
[root@server10 zabbix-server-mysql-3.4.6]# zcat create.sql.gz |mysql zabbix #导入zabbix库
[root@server10 zabbix-server-mysql-3.4.6]# mysql
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
[root@server10 ~]# cd /etc/zabbix/
[root@server10 zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@server10 zabbix]# vim zabbix_server.conf
技术分享图片
技术分享图片
[root@server10 zabbix]# systemctl start zabbix
[root@server10 zabbix]# yum install httpd
[root@server10 zabbix]# vim /etc/httpd/conf.d/zabbix.conf
[root@server10 zabbix]# systemctl start httpd
[root@server10 zabbix]# systemctl start zabbix-agent
技术分享图片

zabbix

标签:5.4   rhel7.3   rhel7   vpd   system   ring   collate   utf8   mariadb   

原文地址:http://blog.51cto.com/13810716/2310481

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!