大佬教程收集整理的这篇文章主要介绍了CentOS 7 yum install zabbix 2.4,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
yum install mariadb-server mariadb systemctl enable mariadb.service systemctl start mariadb.service MysqL_secure_installation firewall-cmd --peRMANent --zone=public --add-service=MysqL firewall-cmd --reload
[root@localhost create]# MysqL -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 12 Server version: 5.5.41-MariaDB MariaDB Server Copyright (C) 2000,2014,Oracle,MariaDB Corporation Ab and others. Type 'Help;' or '\h' for Help. Type '\c' to clear the current input statement. MariaDB [(nonE)]> create database zabbix character set utf8; Query OK,1 row affected (0.00 seC) MariaDB [(nonE)]> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix'; Query OK,0 rows affected (0.00 seC)
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
yum install -y zabbix-server-MysqL zabbix-web-MysqL
systemctl enable httpd.service systemctl start httpd.service firewall-cmd --peRMANent --zone=public --add-service=http firewall-cmd --reload
cd /usr/share/doc/zabbix-server-MysqL-2.4.8/create MysqL -uroot -pzabbix zabbix < scheR_590_11845@a.sql MysqL -uroot -pzabbix zabbix < images.sql MysqL -uroot -zabbixp zabbix < data.sql
zabbix前端的Apache配置文件为/etc/httpd/conf.d/zabbix.conf。需要去掉# PHP_value date.timezone Europe/Riga
的#
,并把Europe/Riga
改成服务器所在的时区,例如Asia/Shanghai
。修改完后重启Apache web服务器:systemctl restart httpd
按如下说明配置zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBpassword=zabbix
配置完重启zabbix server:
systemctl stop zabbix-server systemctl start zabbix-server
systemctl restart zabbix-server命令执行后,不能启动zabbix-server,故需要先stop再start zabbix-server。
使用浏览器打开 http://server_ip/zabbix,其中server_ip要替换为服务器实际使用的IP地址,按照提示完成安装。
转自 http://joelhy.github.io/2015/02/26/install-zabbix-2-4-on-centOS-7-using-yum/
以上是大佬教程为你收集整理的CentOS 7 yum install zabbix 2.4全部内容,希望文章能够帮你解决CentOS 7 yum install zabbix 2.4所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。