CentOS 7 yum install zabbix 2.4
来源:互联网 发布:栅格数据 编辑:程序博客网 时间:2024/06/06 12:54
安装MariaDB
yum install mariadb-server mariadbsystemctl enable mariadb.servicesystemctl start mariadb.servicemysql_secure_installationfirewall-cmd --permanent --zone=public --add-service=mysqlfirewall-cmd --reload
创建zabbix数据库及帐号
[root@localhost create]# mysql -uroot -pEnter password: Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 12Server version: 5.5.41-MariaDB MariaDB ServerCopyright (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.servicesystemctl start httpd.servicefirewall-cmd --permanent --zone=public --add-service=httpfirewall-cmd --reload
初始化zabbix数据库
cd /usr/share/doc/zabbix-server-mysql-2.4.8/createmysql -uroot -pzabbix zabbix < schema.sqlmysql -uroot -pzabbix zabbix < images.sqlmysql -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.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbix
配置完重启zabbix server:
systemctl stop zabbix-serversystemctl 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/
0 0
- CentOS 7 yum install zabbix 2.4
- CentOS 7 yum安装Zabbix
- CentOS 7 yum安装Zabbix
- CentOS 7 yum安装Zabbix
- CentOS 7 yum install mysql
- Centos minimal install zabbix
- How To Install Zabbix Server On CentOS 7
- CentOS 7Install Zabbix Monitoring Server and Agent
- 安装zabbix 3.0/minimal CentOS 7 install zabbix from rpm package
- Centos 5 yum install wine
- centos 6.7 yum install mysql
- Install ZABBIX agent on Linux (CentOS)
- centos 6.4 yum安装zabbix-agent端
- CentOS samba安装,yum install和yum local install比较
- CentOS 7安装zabbix-2.4.8监控
- Centos 7 搭建 Zabbix
- centos 7 安装zabbix
- Centos yum 命令 install Mysql Apache Php
- HDU 1394 (树状数组)
- 第4个python程序:变量
- 查看thinkphp版本
- 如何给APK签名
- Android中的图片压缩
- CentOS 7 yum install zabbix 2.4
- 自定义的TextView,带有placeholder
- Codeforces Round #328 (Div. 2)C. The Big Race
- C++在dll中获取自身路径(非exe调用路径)
- 某公司测试题(二)---完全平方数最少
- Cscope的使用(实现vim函数跳转)(领略Vim + Cscope的强大魅力)
- boot.asm文件注释
- Android Logcat颜色值
- SSL请求trustStore的两种注册方式 (java/SQL Server)