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的更多相关文章

  1. Zabbix Server 3.2

    软件环境 Centos7.3 LAMP Zabbix 3.2  1. Installing repository configuration package Install the repositor ...

  2. Zabbix Server和MPM(monitor for mysql)的高速部署

    1. 前言         zabbix作为开源免费的监控软件.其易于管理配置和可视化的视图.历史数据的定期维护.模板化的监控项目越来越受到广大IT运维人员的喜爱. 这里主要是总结了下Zabbix S ...

  3. Zabbix server(离线版)安装手册

    由于zabbix server需要依赖MySQL及PHP的相关依赖,因此需要先安装好MySQL及PHP的相关依赖后方可安装zabbixserver. 安装MySQL 目录mysql下的rpm 1.新建 ...

  4. Centos 6.5 下安装 Zabbix server 3.0服务器的安装及 监控主机的加入(2)

    一.Centos 6.5 下的Zabbix Server安装 上篇文章记录的是centos 7 下安装zabbix ,很简单.但是6.5上面没有可用的源直接安装zabbix,所以需要从别处下载.感谢i ...

  5. 企业级监控软件zabbix搭建部署之zabbix server的安装

    企业级监控软件zabbix搭建部署之zabbix server的安装 zabbix线上已经应用半年多了,关于zabbix在生产环境中的使用心得,以及一些经验写下来,希望让大家少走弯路,共同学习! 环境 ...

  6. 基于LNMP的Zabbbix之Zabbix Server源码详细安装,但不给图

    Zabbix Server安装 看到那里有错或者有什么问题的话,求指点 邮箱:losbyday@163.com 上一篇PHP源码安装参见基于LNMP的Zabbbix之PHP源码安装:https://i ...

  7. zabbix server安装详解

    简介 zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以 ...

  8. Centos7下使用yum源安装zabbix Server

    系统:Centos7 zabbix版本:4.2   一.Zabbix Server端   1.安装仓库 rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel ...

  9. linux搭建zabbix server

    一.linux配置jdk 1.安装rpm包,安装完成位置:/usr/java/jdk1.8.0_152 2.配置环境变量/etc/profile: JAVA_HOME=/usr/java/jdk1.. ...

随机推荐

  1. compass初探

    1.安装compass: sudo gem install compass 如果你用的是Windows系统,那么要省略前面的sudo. 2.项目初始化 接下来,(首先要进入目标目录.)要创建一个你的C ...

  2. 关于JS点击button之灵活替换改变内容方法

    <p id="demo">JavaScript 能改变 HTML 元素的内容.</p> <script>function myFunction( ...

  3. php:比较两个txt文件,格式如下,分别取出a.txt有的b.txt没有的,b.txt有的a.txt没有的及两个都有的

    <?php /*比较两个txt文件,格式如下,分别取出a.txt有的b.txt没有的,b.txt有的a.txt没有的及两个都有的 * a.txt: * A * B * C * D * b.txt ...

  4. Ubuntu上源码安装golang并设置开发环境

    安装go #wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz #tar -xzf go1.10.3.linux-amd64.tar.g ...

  5. JavaSE---基本网络支持

    1.Java为网络支持提供了java.net包,该包下的URL和URLConnection等类提供了 以编程方式访问WEB服务 的功能: 2.URLDecoder.URLEncoder提供了 普通字符 ...

  6. BI的意义

    BI系统建设的价值,有可能不值钱,也有可能价值数千万,就看我们大家好用了没.”所以,BI系统建设的收获,终究还是因企业而异的,再归根,便是与企业的文化,与企业的人,尤其是管理层是极为相关的了. 商业智 ...

  7. 自动生成sql

    添加下面这个类 public static class GetAllAttribute<T> where T : class { public static string Names; p ...

  8. JavaWeb项目开发中eclipse缓存问题

    学习Java快2年了 有时候改完代码启动tomcat测试时,新代码不生效,这可能就是缓存问题. 所以平时就用以下几个方法解决,如果还是解决不了,就找老师吧! 1.清理项目 2.移除项目,清理tomca ...

  9. DatabaseMetaData类

    DatabaseMetaData类是java.sql包中的类,利用它可以获取我们连接到的数据库的结构.存储等很多信息.如: 1.数据库与用户,数据库标识符以及函数与存储过程.         2.数据 ...

  10. js浮点数乘除法

    JS在处理浮点数计算时经常会遇到精度的问题,上一篇博客封装了JS浮点数加减法的方法,这一次来封装一下js浮点数乘除法运算. 其实浮点除法的封装跟加减法的封装原理是一样,只是在第一次计算完后会再复位小数 ...