How to Install Zabbix Server on Centos6.7
Prerequisite Environment
First you must use your Subscription Manager to enable SCL:
[root@fileserver ~]# subscription-manager repos --enable rhel-server-rhscl-6-eus-rpms
Repository 'rhel-server-rhscl-6-eus-rpms' is enabled for this system.
Install Apache
[root@fileserver ~]# yes | yum install httpd
Start Apache
[root@fileserver ~]# /usr/sbin/apachectl start
httpd: apr_sockaddr_info_get() failed for fileserver.qq.debao
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Accept port 80 for apache
[root@fileserver ~]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[root@fileserver ~]# service iptables save
Set Apache start on boot
[root@fileserver ~]# chkconfig httpd on
Install PHP5.4
[root@fileserver ~]# yes | yum install php54 php54-php php54-php-gd php54-php-mbstring php54-php-ldap php54-php-bcmath
[root@fileserver ~]# yes | yum install php54-php-mysqlnd
[root@fileserver ~]#export PATH=$PATH:/opt/rh/php54/root/usr/bin/
[root@fileserver ~]# service httpd restart
Install mysql
[root@fileserver ~]# yum -y install mysql mysql-server
Start mysql
[root@fileserver ~]# service mysqld start
Set the first password
[root@fileserver ~]# /usr/bin/mysqladmin -u root password '123456'
Set mysql start on boot
[root@fileserver ~]# chkconfig mysqld on
Install Zabbix
a. Install Repository with MySQL database
[root@fileserver ~]# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm
b. Install Zabbix server, frontend, agent
[root@fileserver ~]# yes | yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent -y
c. Create initial database
# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
Import initial schema and data. You will be prompted to enter your newly created password.
[root@fileserver ~]# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
d. Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
e. Configure PHP for Zabbix frontend
[root@fileserver ~]# cp /usr/share/doc/zabbix-web-3.4.11/httpd22-example.conf /etc/httpd/conf.d/zabbix.conf
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
# php_value date.timezone Asia/Shanghai
f. Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot:
[root@fileserver ~]# service zabbix-server start
[root@fileserver ~]# service zabbix-agent start
[root@fileserver ~]# service httpd restart
[root@fileserver ~]# chkconfig zabbix-server on
[root@fileserver ~]# chkconfig zabbix-agent on
How to Install Zabbix Server on Centos6.7的更多相关文章
- Zabbix Server 3.2
软件环境 Centos7.3 LAMP Zabbix 3.2 1. Installing repository configuration package Install the repositor ...
- Zabbix Server和MPM(monitor for mysql)的高速部署
1. 前言 zabbix作为开源免费的监控软件.其易于管理配置和可视化的视图.历史数据的定期维护.模板化的监控项目越来越受到广大IT运维人员的喜爱. 这里主要是总结了下Zabbix S ...
- Zabbix server(离线版)安装手册
由于zabbix server需要依赖MySQL及PHP的相关依赖,因此需要先安装好MySQL及PHP的相关依赖后方可安装zabbixserver. 安装MySQL 目录mysql下的rpm 1.新建 ...
- Centos 6.5 下安装 Zabbix server 3.0服务器的安装及 监控主机的加入(2)
一.Centos 6.5 下的Zabbix Server安装 上篇文章记录的是centos 7 下安装zabbix ,很简单.但是6.5上面没有可用的源直接安装zabbix,所以需要从别处下载.感谢i ...
- 企业级监控软件zabbix搭建部署之zabbix server的安装
企业级监控软件zabbix搭建部署之zabbix server的安装 zabbix线上已经应用半年多了,关于zabbix在生产环境中的使用心得,以及一些经验写下来,希望让大家少走弯路,共同学习! 环境 ...
- 基于LNMP的Zabbbix之Zabbix Server源码详细安装,但不给图
Zabbix Server安装 看到那里有错或者有什么问题的话,求指点 邮箱:losbyday@163.com 上一篇PHP源码安装参见基于LNMP的Zabbbix之PHP源码安装:https://i ...
- zabbix server安装详解
简介 zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以 ...
- Centos7下使用yum源安装zabbix Server
系统:Centos7 zabbix版本:4.2 一.Zabbix Server端 1.安装仓库 rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel ...
- linux搭建zabbix server
一.linux配置jdk 1.安装rpm包,安装完成位置:/usr/java/jdk1.8.0_152 2.配置环境变量/etc/profile: JAVA_HOME=/usr/java/jdk1.. ...
随机推荐
- Js 文件上传后缀验证
//img格式验证 function imgFormat(name) { //再对文件名进行截取,以取得后缀名 var namearr= name.split("."); //获取 ...
- Django模板语言,过滤器整理
Django模板语言,过滤器整理 1. add {{ value|add:"2" }} 把add后的参数加给value: 处理时,过滤器首先会强制把两个值转换成Int类型. 如果强 ...
- HDU1854 Q-Sequence
http://acm.hdu.edu.cn/showproblem.php?pid=1854 随手练习 #include <bits/stdc++.h> using namespace s ...
- net Core 2.0应用程序发布到IIS
.net Core 2.0应用程序发布到IIS上注意事项 .net Core2.0应用程序发布window服务器报错容易错过的配置. 1.应用程序发布. 2.IIS上新建网站. 3.应用程序池选择 ...
- c++笔记1
using namespace std:命名空间可以保证一些命名能够在全局不冲突.如用户可以通过声明命名空间,然后用运算符::区别同名的不同变量 using namespace std;namespa ...
- 使用Zeppelin时出现at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Client.recv_getFormType(RemoteInterpreterService.java:288)错误的解决办法(图文详解)
不多说,直接上干货! 问题详解 org.apache.thrift.TApplicationException: Internal error processing getFormType at or ...
- Windows1
① 对Windows的设置一般在, 所有设置, 控制面板(control), 管理方式打开此电脑和此电脑上的选项 ② 关闭对账号安全的检验, 在控制面板中, 找到系统和安全, 再找到更改用户账号控制设 ...
- Column 'xxx' in field list is ambiguous
一 其实看一下ambiguous的翻译就好了 一开始我觉得是含糊什么的,后来找了下才知道应该是双关... 二 所以翻译过来就是 : 列'XX'在字段列表中双关 其实就是两张表有相同的字段,但是使用时, ...
- css3弹性伸缩和使用
columns 分栏 column的中文意思就是栏的意思,在html中,作用是分列,把一块内容相同比例均匀的分成一块一块的列,想报纸的内容似的,一篇文章在一张内容上分成好几栏那样显示,它的属性有 1 ...
- Date 对象 时间格式注意事项
Date 对象,是操作日期和时间的对象. Date 为内置的构造函数, 通过 new Date () 来获取当前本地日期与时间 const time = new Date console.log(ti ...