码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS6.8 RPM包安装快速zabbix22

时间:2016-07-20 22:51:34      阅读:285      评论:0      收藏:0      [点我收藏+]

标签:

 

CentOS6.8 RPM包安装快速zabbix22

yum install -y epel-release

 

# yum install -y httpd php php-devel mysql-server mysql-devel
# yum install -y libxml2-devel unixODBC-devel OpenIPMI OpenIPMI-devel net-snmp net-snmp-devel libssh2-devel curl-devel
# yum install -y php-mysql php-bcmath php-mbstring php-gd libjpeg libjpeg-devel libpng libpng-devel php-xml
# yum install -y gcc make wget curl-devel


# yum install -y zabbix22 zabbix22-agent zabbix22-dbfiles-mysql zabbix22-proxy zabbix22-proxy-mysql zabbix22-server zabbix22-server-mysql zabbix22-web zabbix22-web-mysql 

# /etc/init.d/zabbix-server start
# /etc/init.d/zabbix-agent start
# /etc/init.d/httpd start
# /etc/init.d/mysqld start

# vi /etc/my.cnf
[mysql]
default-character-set = utf8

[mysqld]
character_set_server = utf8



# cat /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbixsrv/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbixsrv/zabbix_server.pid
DBName=zabbix
DBUser=zabbix_user
DBPassword=zabbix_passwd
DBSocket=/var/lib/mysql/mysql.sock
AlertScriptsPath=/var/lib/zabbixsrv/alertscripts
ExternalScripts=/var/lib/zabbixsrv/externalscripts
TmpDir=/var/lib/zabbixsrv/tmp


# mysql -uroot -p -e "create database zabbix"
# mysql -uroot -p -e "grant all on zabbix.* to ‘zabbix_user‘@‘localhost‘ identified by ‘zabbix_passwd‘"

# mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/schema.sql
# mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/images.sql
# mysql -uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/data.sql

 

CentOS6.8 RPM包安装快速zabbix22

标签:

原文地址:http://www.cnblogs.com/caoguo/p/5689876.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!