CentOS6.5之Zabbix3.2.2 Server安装、汉化及Agent安装
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安装的更多相关文章
- Gitlab一键端的安装汉化及问题解决(2017/12/14目前版本为10.2.4)
Gitlab的安装汉化及问题解决 一.前言 Gitlab需要安装的包太TM多了,源码安装能愁死个人,一直出错,后来发现几行命令就装的真是遇到的新大陆一样... ... 装完之后感觉太简单,加了汉化补丁 ...
- Gitlab的安装汉化及问题解决
Gitlab的安装汉化及问题解决(2017/12/14目前版本为10.2.4) 一.前言 Gitlab需要安装的包太TM多了,源码安装能愁死个人,一直出错,后来发现几行命令就装的真是遇到的新大陆一样. ...
- Sublime Text 2安装汉化破解、插件包安装教程
原文地址: Sublime Text 2安装汉化破解.插件包安装教程_百度经验 http://jingyan.baidu.com/article/ff4116259b057c12e48237b8.ht ...
- PS抠图神器: KnockOut 2.0安装汉化和使用教程
PS抠图神器: KnockOut 2.0安装汉化和使用教程 http://jingyan.baidu.com/article/6b97984d8aeadc1ca2b0bf3b.html
- 如何给sublime text3安装汉化包?so easy 哦
这是我本人亲身测试过的,肯定有效,没用的话怪我咯. 首先安装package control,然后安装汉化包即可,很简单哦!!! 1.安装package control:打开sublime,使用快捷键: ...
- kibana安装汉化包
kibana安装汉化包其实很简单!但要找到汉化包可能就很麻烦了.我这里提供了6.2的版本的汉化包!至于能不能在其他版本用,我就没试过了.但6.2的kibana本人亲测.没问题!!!! 下载——解压.这 ...
- JIRA6.3.6 安装汉化破解指南
JIRA6.3.6 安装汉化破解指南 近期试着安装了下JIRA,碰到了些问题.特记录下来,供后来者使用: 1.常规安装 1.1. 下载并安装jira 从官网下载atlassian-jira-6.3.6 ...
- Charles抓包1-Charles安装汉化(附正版注册码)
目录 1.下载&&安装 2.汉化 1.下载&&安装 charles官网 charles下载 下载后直接安装即可. 2.汉化 下载提供的汉化包charles.jar(加群 ...
- C语言入门-ide的概念介绍及codeblocks编辑器安装汉化
大家好,本章教程就ide(集成开发环境)来说一说. ide就是编译器+编辑器,原理就是在编辑器写代码,然后编辑器会让编译器来编译成二进制可执行文件. 常见的c/c++编译器有mingw64,msvc, ...
随机推荐
- Office Web App2013 在线查看PDF文件
经常会有客户问,在SharePoint中,如何在浏览器中查看与编辑文档,通常给出的解决方案是集成Office Web App. 而在实际应用过程中,客户通常会要求实现PDF文件在线查看,对于PDF文件 ...
- jquery-alert对话框
IE的alert没有标题,如果是做企业系统的话,弹出来的的感觉不是很好,所以自己找了一下国外有没有做好的,经过1个小时的奋斗,找到一个不错的,自己重写整理了一下 下载地址如下:http://downl ...
- Requests blocked by CORS policy in spring boot and angular
在本地启动Spring Boot后端和Angular前端调试时遇到跨域访问的问题导致前端请求失败. 错误描述 Access to XMLHttpRequest at 'http://localhost ...
- tp-04 框架与模板的整合
- CI 多表关联查询
方法一:$this->db->query("sql 语句"); 直接写sql语句 方法二: #多表关联查询 $data=$this->db->fr ...
- High-level NavMesh Building Components
Here we introduce four high level components for the navigation system: //这里我们介绍四个高水平导航系统组件: NavMesh ...
- php -- instanceof、class_exists、insterface_exists、method_exists、get_class、get_parent_class
class_exists:类是否存在 在创建对象之前判断类是否存在,如果不存在就应该先加载类,再创建对象,容错. interface_exists:接口是否存在 method_exists:方法是否存 ...
- css图标
一.介绍 采用这种字体,我们可以避免网站制作中采用好多图片,一方面解决了浏览器的兼容性问题.另一方面,这些字体都是矢量字体,我们只要在调整这些图标时,将他们的字体大小以及颜色,我们就可以解决很多不是图 ...
- Libcap的简介及安装
Libpcap 简介 libpcap 是unix/linux 平台下的网络数据包捕获函数包, 大多数网络监控软件都以它为基础. Libpcap 可以在绝大多数类unix 平台下工作. Libpcap ...
- C#------SortedLIst键值对的使用方法
方法: SortedList sf = new SortedList(); sf.Add(, "广州"); sf.Add(, "江门"); sf.Add(, & ...