Zabbix3.0+CentOS7.0+MariaDB5.5监视服务器安装
本次安装采用:
Centos7.0
Zabbix3.0
MariaDB5.5
-------------------
2012/12/2更新
最新的Centos7.1或者Redhat7.1版本在最后启动zabbix-server的时候会报错无法启动
# systemctl start zabbix-server Job for zabbix-server.service failed. See 'systemctl status zabbix-server.service' and 'journalctl -xn' for details. 是因为少一个依赖包,只要安装就好了
yum install trousers 另外,用Redhat的源会少两个PHP的包php-mbstring,php-bcmath,请修改成Centos的源或者163源后继续安装-----------------
系统安装完成后,关闭selinux,防火墙
[root@testz ~]#vi /etc/selinux/config SELINUX=disabled [root@testz ~]#systemctl stop firewalld [root@testz ~]#systemctl disable firewalld
如果安全需求上不能关闭防火墙的话,打开10051端口和http协议
[root@testz ~]# firewall-cmd --add-port=10051/tcp --zone=public --permanent success [root@testz ~]# firewall-cmd --add-service=http --zone=public --permanent success [root@testz ~]# systemctl restart firewalld
重启
Zabbix安装
下载安装源
[root@testz ~]# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm [root@testz ~]# rpm -ivh zabbix-release-3.0-1.el7.noarch.rpm
安装zabbix,
mysql和MariaDB安装zabbix-server-mysql zabbix-web-mysql,
PostgreSQL安装zabbix-server-pgsql zabbix-web- pgsql 。
[root@testz ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-get zabbix-agent
MariaDB安装:
YUM安装就可以了
[root@testz ~]# yum install mariadb-server [root@testz ~]# vi /etc/my.cnf.d/server.cnf [mysqld] character-set-server = utf8 collation-server = utf8_bin skip-character-set-client-handshake skip-external-locking symbolic-links=0 innodb_buffer_pool_size = 2048M innodb_log_file_size = 512M sort_buffer_size = 2M innodb_additional_mem_pool_size = 30M innodb_log_buffer_size = 8M key_buffer_size = 16M log-bin=mysql-bin expire_logs_days = 7 server-id=1001 innodb_data_file_path = ibdata1:1G innodb_file_per_table
启动mariaDB并设开机启动
[root@testz ~]# systemctl start mariadb [root@testz ~]# systemctl enable mariadb
初始数据库导入以及zabbix配置:
数据库中创建zabbix的数据库和账号
[root@testz ~]# mysql -uroot MariaDB [(none)]> create database zabbix; MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix' ; MariaDB [(none)]> exit
导入初始表
[root@testz etc]# zcat /usr/share/doc/zabbix-server-mysql-3.0.1/create.sql.gz | mysql -uroot zabbix
配置zabbix
[root@testz etc]# vi /etc/zabbix/zabbix_server.conf DBPassword=zabbix
配置Http
[root@testz etc]# vi /etc/httpd/conf.d/zabbix.conf php_value date.timezone Asia/Shanghai
设置开机启动
[root@testz etc]# systemctl start zabbix-server [root@testz etc]# systemctl start zabbix-agent [root@testz etc]# systemctl start httpd [root@testz etc]# systemctl enable zabbix-server [root@testz etc]# systemctl enable zabbix-agent [root@testz etc]# systemctl enable httpd
打开浏览器,键入http:/serverIP/zabbix
一路点next,最后出现登录画面,默认账号是Admin,密码是zabbix
至此,zabbix服务器安装完成。
Zabbix3.0+CentOS7.0+MariaDB5.5监视服务器安装的更多相关文章
- 云服务器 Centos7.0 部署
CentOS安装jdk的三种方法 http://www.mamicode.com/info-detail-613410.html centos Linux下安装Tomcat和发布Java的web程序 ...
- centos7.0 下安装jdk1.8
centos7.0这里安装jdk1.8采用yum安装方式,非常简单. 1.查看yum库中jdk的版本 [root@localhost ~]# yum search java|grep jdk 2.选择 ...
- centos7.0 安装redis集群
生产环境下redis基本上都是用的集群,毕竟单机版随时都可能挂掉,风险太大.这里我就来搭建一个基本的redis集群,功能够用但是还需要完善,当然如果有钱可以去阿里云买云数据库Redis版的,那个还是很 ...
- centos7.0 安装字体库
最近在centos7.0下用itextpdf将word文档转成pdf时出现字体丢失的情况.网上找了很多资料,各式各样的原因和解决方法.后来经过一番测试发现是centos7.0 minimal没有安装相 ...
- centos7.0改变用户创建目录组权限
centos7.0改变用户创建目录组权限可通过umask进行设置. 临时改变可通过umask命令进行设置 永久性改变,可通过修改~/.bash_profile的方式进行调整.
- CentOS-7.0.中安装与配置Tomcat-7的方法
安装说明 安装环境:CentOS-7.0.1406安装方式:源码安装 软件:apache-tomcat-7.0.29.tar.gz 下载地址:http://tomcat.apache.org/down ...
- CentOS7.0关于libguestfs的bug
libguestfs,libguestfs-tools是用来在不启动虚拟机的情况下,快速简单访问虚拟机磁盘的工具. 今天在CentOS7.0系统上通过guestmount命令去mount虚拟机磁盘的时 ...
- Win7系统安装Centos7.0双系统(二)
4.6语言选择
- CentOS7.0安装与配置Tomcat-7
解决权限不够 #chmod a+x filename 安装说明 安装环境:CentOS-7.0.1406安装方式:源码安装 软件:apache-tomcat-7.0.29.tar.gz 下载地址:ht ...
随机推荐
- 【转】提高VR渲染速度的最好方法(经典转载)
VR的基本渲染方法掌握起来并不难,但是最迫切需要解决的问题是VR的出图速度问题.动则需要数小时的渲染时间真的是很难以接受,我们从三个影响速度的参数结合网上一些高手的教程来分析一下. 一.Irradia ...
- Python之路【第十九篇】:爬虫
Python之路[第十九篇]:爬虫 网络爬虫(又被称为网页蜘蛛,网络机器人,在FOAF社区中间,更经常的称为网页追逐者),是一种按照一定的规则,自动地抓取万维网信息的程序或者脚本.另外一些不常使用 ...
- 第十六章 综合实例——《跟我学Shiro》
简单的实体关系图 简单数据字典 用户(sys_user) 名称 类型 长度 描述 id bigint 编号 主键 username varchar 100 用户名 password varchar 1 ...
- linux基础知识(四)
•查看ip地址,ifconfig命令 •重启.启动.停止网络命令 •service network restart/start/stop •VMnet0:用于虚拟桥接网络下的虚拟交换机 •VMne ...
- magnum 命令使用说明
magnum 命令使用说明 1.用法 usage: magnum [--version] [--debug] [--os-cache] [--os-region-name <region-nam ...
- 学习打造自己的DEBUG_NEW
学习范例http://www.cppblog.com/Robertxiao/archive/2012/11/05/194547.html 在使用MFC库开发程序时,我非常喜欢MFC框架中的内存泄漏诊断 ...
- Changing SharePoint Default port ( 80 ) to another port ( 79 ).
Introduction In this How-To I will change my port from 80 to 79, probably because I want to host s ...
- 记一次未解决的异常:java.lang.NoClassDefFoundError: net/sf/json/JSONObject
原因:Jetty会导致这个问题,Tomcat可以正常启动 一.异常产生现象 使用json-lib转换实体类/字符串,跑单元测试没问题,但是启动jetty后调用JSONArray.fromObjec ...
- protobuff 配合 libevent 在Linux 和windows 下的使用
protobuff 配合 libevent 在Linux 和windows 下的使用待补全. libprotobuf.lib libproto-lite.lib libprotoc.lib
- GsonWithoutObject 没有对象(脱离对象) 直接提取 ... gson json
GsonWithoutObject 脱离对象, 直接提取 package temp; import tool.FileTool; import com.google.gson.JsonElement; ...