CentOS 7 yum install zabbix 2.4
2016-08-24 11:12
483 查看
安装MariaDB
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
创建zabbix数据库及帐号
[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)
添加zabbix仓库配置
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm安装并启用zabbix server
yum install -y zabbix-server-mysql zabbix-web-mysql
启用Apache httpd
systemctl enable httpd.service systemctl start httpd.service firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --reload
初始化zabbix数据库
cd /usr/share/doc/zabbix-server-mysql-2.4.8/create mysql -uroot -pzabbix zabbix < schema.sql mysql -uroot -pzabbix zabbix < images.sql mysql -uroot -zabbixp zabbix < data.sql
修改zabbix前端的PHP配置
zabbix前端的Apache配置文件为/etc/httpd/conf.d/zabbix.conf。需要去掉# php_value date.timezone Europe/Riga的
#,并把
Europe/Riga改成服务器所在的时区,例如
Asia/Shanghai。修改完后重启Apache web服务器:
systemctl restart httpd
修改zabbix配置文件
按如下说明配置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地址,按照提示完成安装。安装完成后默认的用户名是:Admin,密码是zabbix。
转自 http://joelhy.github.io/2015/02/26/install-zabbix-2-4-on-centOS-7-using-yum/
相关文章推荐
- Centos7下使用Yum安装Zabbix2.4
- yum install zabbix
- 解决centos下yum install epel-release报错:CentOS No package nginx available.
- Install Zabbix Proxy on CentOS 6.5
- Yum install clamd 在CentOS 6 64bit上安装成功
- CentOS7下解决yum install mysql-server没有可用包的问题
- centos howto yum install mysql-python
- CentOS 6.4 yum快速搭建Zabbix 2.2版本(中文)
- Zabbix之CentOS7.3下yum安装Zabbix3.5
- CentOS7下解决yum install mysql-server没有可用包的问题
- Xshell不能连接SSH的解决(附Kali2.0 SSH连接)(有图,非常清楚)apt-get install ssh or yum install ssh (CentOS)
- 安装zabbix 3.0/minimal CentOS 7 install zabbix from rpm package
- Centos 6.7 LNMP环境下整合安装zabbix2.4
- CentOS7下解决yum install mysql-server没有可用包的问题
- centos7下解决yum install mysql-server没有可用包
- Install Zabbix 2.2.6 From Sources (CentOS 6.4)
- IT忍者神龟之RHEL / Centos 6: Install Nginx Using Yum Command 翻译
- CentOS 5 下yum安装 Mono 2.4
- How To CentOS / RHEL 7 Install Gnome Desktop Using Yum
- CentOS7下解决yum install mysql-server没有可用包的问题