1、安装MySQL

1.1、安装MySQL

rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

yum -y install mysql-server

1.2、修改MySQL的配置文件

vim /etc/my.cnf

default-storage-engine = innodb

innodb_file_per_table

collation-server = utf8_general_ci

init-connect = 'SET NAMES utf8'

character-set-server = utf8

1.3、设置MySQL自动启动并启动MySQL

chkconfig mysqld on

service mysqld start

1.4、设置MySQL安全选项

mysql_secure_installation 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current

password for the root user.  If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none): 

OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL

root user without the proper authorisation.

Set root password? [Y/n] Y

New password: 

Re-enter new password: 

Password updated successfully!

Reloading privilege tables..

 ... Success!

By default, a MySQL installation has an anonymous user, allowing anyone

to log into MySQL without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.

Remove anonymous users? [Y/n] Y

 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] Y

 ... Success!

By default, MySQL comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.

Remove test database and access to it? [Y/n] Y

 - Dropping test database...

ERROR  (HY000) at line : Can't drop database 'test'; database doesn't exist

 ... Failed!  Not critical, keep moving...

 - Removing privileges on test database...

 ... Success!

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

Reload privilege tables now? [Y/n] Y

 ... Success!

All done!  If you've completed all of the above steps, your MySQL

installation should now be secure.

Thanks for using MySQL!

Cleaning up...

1.5、创建Zabbix数据库

mysql -uroot -proot123

mysql> create database zabbix character set utf8 collate utf8_bin;

Query OK, 1 row affected (0.04 sec)

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

Query OK, 0 rows affected (0.01 sec)

mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye 

2、安装PHP

2.1、安装PHP

rpm -ivh http://repo.webtatic.com/yum/el6/latest.rpm

yum install -y httpd libxml2-devel net-snmp-devel libcurl-devel php56w php56w-gd php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldap

2.2、修改PHP配置文件

vim /etc/php.ini

post_max_size=16M

max_execution_time=

max_input_time=

date.timezone=Asia/Shanghai

always_populate_raw_post_data=-

2.3、设置HTTP自动启动并启动HTTP

chkconfig httpd on

service httpd start

3、安装Zabbix Server

3.1、下载相关的软件包

wget http://repo.zabbix.com/zabbix/3.2/rhel/6/i386/deprecated/zabbix-server-mysql-3.2.2-1.el6.i686.rpm 

wget http://repo.zabbix.com/zabbix/3.2/rhel/6/i386/deprecated/zabbix-web-3.2.2-1.el6.noarch.rpm

wget http://repo.zabbix.com/zabbix/3.2/rhel/6/i386/deprecated/zabbix-web-mysql-3.2.2-1.el6.noarch.rpm

3.2、安装Zabbix Server

yum -y localinstall zabbix-web-3.2.-.el6.noarch.rpm zabbix-web-mysql-3.2.-.el6.noarch.rpm zabbix-server-mysql-3.2.-.el6.i686.rpm

3.3、将Zabbix相关数据导入 MySQL

zcat /usr/share/doc/zabbix-server-mysql-3.2./create.sql.gz | mysql -uroot -proot123 zabbix

3.4、修改Zabbix Sever配置

vim /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

3.5、将Zabbix相关文件拷贝至相关目录

cp -r /usr/share/zabbix/* /var/www/html/zabbix/

chown -R apache:apache /var/www/html/zabbix

3.6、设置Zabbix Server自动启动并启动Zabbix Server

chkconfig zabbix-server on

service zabbix-server start

4、浏览器配置Zabbix

默认账号为:Admin 默认密码为:zabbix

5、开启中文支持及更正中文乱码问题

开启中文支持:

vim /var/www/html/zabbix/include/locales.inc.php

zh_CN' => array('name' => _('Chinese (zh_CN)'),        'display' => true),

将false改为true

更正中文乱码问题:

在Windows中找到所需的字体文件传到/var/www/html/zabbix/fonts目录下,修改zabbix的web端/var/www/html/zabbix/include/defines.inc.php将原来的字体替换掉.

#define('ZBX_GRAPH_FONT_NAME',          'graphfont'); // 45行

define('ZBX_GRAPH_FONT_NAME',           'simkai'); 

#define('ZBX_FONT_NAME', 'graphfont');                //93行

define('ZBX_FONT_NAME', 'simkai');

6、安装Zabbix Agent

6.1、下载相关的软件包

wget http://repo.zabbix.com/zabbix/3.2/rhel/6/i386/zabbix-agent-3.2.2-1.el6.i686.rpm

6.2、安装Zabbix Agent

yum -y localinstall zabbix-agent-3.2.-.el6.i686.rpm 

6.2、修改Zabbix Agent配置

vim /etc/zabbix/zabbix_agentd.conf

Server=192.168.31.125

6.3、设置Zabbix Agent自动启动并启动Zabbix Agent

chkconfig zabbix-agent on

service zabbix-agent start 

声明:
本文转载自:http://blog.51cto.com/kaiyuandiantang/1881583

CentOS6.5之Zabbix3.2.2 Server安装、汉化及Agent安装的更多相关文章

  1. Gitlab一键端的安装汉化及问题解决(2017/12/14目前版本为10.2.4)

    Gitlab的安装汉化及问题解决 一.前言 Gitlab需要安装的包太TM多了,源码安装能愁死个人,一直出错,后来发现几行命令就装的真是遇到的新大陆一样... ... 装完之后感觉太简单,加了汉化补丁 ...

  2. Gitlab的安装汉化及问题解决

    Gitlab的安装汉化及问题解决(2017/12/14目前版本为10.2.4) 一.前言 Gitlab需要安装的包太TM多了,源码安装能愁死个人,一直出错,后来发现几行命令就装的真是遇到的新大陆一样. ...

  3. Sublime Text 2安装汉化破解、插件包安装教程

    原文地址: Sublime Text 2安装汉化破解.插件包安装教程_百度经验 http://jingyan.baidu.com/article/ff4116259b057c12e48237b8.ht ...

  4. PS抠图神器: KnockOut 2.0安装汉化和使用教程

    PS抠图神器: KnockOut 2.0安装汉化和使用教程 http://jingyan.baidu.com/article/6b97984d8aeadc1ca2b0bf3b.html

  5. 如何给sublime text3安装汉化包?so easy 哦

    这是我本人亲身测试过的,肯定有效,没用的话怪我咯. 首先安装package control,然后安装汉化包即可,很简单哦!!! 1.安装package control:打开sublime,使用快捷键: ...

  6. kibana安装汉化包

    kibana安装汉化包其实很简单!但要找到汉化包可能就很麻烦了.我这里提供了6.2的版本的汉化包!至于能不能在其他版本用,我就没试过了.但6.2的kibana本人亲测.没问题!!!! 下载——解压.这 ...

  7. JIRA6.3.6 安装汉化破解指南

    JIRA6.3.6 安装汉化破解指南 近期试着安装了下JIRA,碰到了些问题.特记录下来,供后来者使用: 1.常规安装 1.1. 下载并安装jira 从官网下载atlassian-jira-6.3.6 ...

  8. Charles抓包1-Charles安装汉化(附正版注册码)

    目录 1.下载&&安装 2.汉化 1.下载&&安装 charles官网 charles下载 下载后直接安装即可. 2.汉化 下载提供的汉化包charles.jar(加群 ...

  9. C语言入门-ide的概念介绍及codeblocks编辑器安装汉化

    大家好,本章教程就ide(集成开发环境)来说一说. ide就是编译器+编辑器,原理就是在编辑器写代码,然后编辑器会让编译器来编译成二进制可执行文件. 常见的c/c++编译器有mingw64,msvc, ...

随机推荐

  1. 使用jsonp处理跨域问题

    调用web接口,get请求,发现提示:No 'Access-Control-Allow-Origin' header is present on the requested resource. 这个和 ...

  2. shiro配置unauthorizedUrl,无权限抛出无权限异常,但是不跳转

    在使用shiro配置无授权信息的url的时候,发现这样的一个scenario,配置好unauthorizedUrl后仍然无法跳转,然后就在网上开始找,找了原因以及解决方案 原因,先post一个源码: ...

  3. gin入门

    Download and install it: $ go get github.com/gin-gonic/gin Import it in your code: import "gith ...

  4. EasyUI 创建对话框

    对话框是特殊的窗口,它能包括上面的工具栏和下面的按钮.默认对话框不能改变大小,但是用户可以设置resizeable属性为true来使它可以被改变大小:对话框非常简单,可以使用DIV标记创建: < ...

  5. 《精通CSS》读书笔记(一)

    最近新添16本书,目前开始看陈剑瓯翻译的<精通CSS——高级Web标准解决方案>(Andy Budd, CSS Mastery -- Advanced Web Standards Solu ...

  6. 谷歌字体(Google Font)初探 [翻译自Google官方文档]

    这个指南解释了如何使用Google Font的API,把网络字体添加到自己的页面上.你不需要任何的编码,你所要做的只是添加一个特定的CSS到HTML页面上,然后把字体关联到这个CSS样式. 一个快速的 ...

  7. 在Swing的组件中,基本上都是在AWT组件的名称前面加“J”

    在Swing的组件中,基本上都是在AWT组件的名称前面加“J”. 一般情况下,除了Choise等组件: import javax.swing.*;好要加上:import java.awt.*以及imp ...

  8. jquery合并表格中相同文本的相邻单元格

    <!DOCTYPE HTML> <html> <head>   <title>Example</title>   <meta char ...

  9. Mac终端使用mysql

    1.安装完mysql后给mysql命别名 alias mysql=/usr/local/mysql/bin/mysql aliasmysqladmin=/usr/local/mysql/bin/mys ...

  10. CStringArray序列化处理

    开发中需要对CStringArray进行保存操作,涉及到序列化,特总结一下: //写 CStringArray saTmp1; CStringArray saTmp2 saTmp1.AddString ...