首页 > 代码库 > 使用yum方式安装 zabbix3.0
使用yum方式安装 zabbix3.0
Zabbix监控端安装
Lamp环境安装
安装epel和remi源
#rpm –Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安装LAMP 基础环境
# yum install --enablerepo=remi--enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcryptphp-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-mysqlphp-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath # yum –y install httpd php mysql mysql-server httpd-manual mod_ssl mod_perl mod_auth_mysqlmysql-connector-odbc mysql-devel libdbi-dbd-mysql
启动并设置开机自启
Chkconfig mysqld on /etc/init.d/mysqld start Chkconfig httpd on /etc/init.d/httpd start
yum -yinstall gcc gcc-c++ autoconf net-snmp net-snmp-develcurl-devel
#rpm –ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm#yum install zabbix-server-mysql zabbix-web-mysql
mysql -uroot -p<root_password> mysql> create database zabbixcharacter set utf8 collate utf8_bin; mysql> grant all privileges onzabbix.* to zabbix@localhost identified by ‘<password>‘; mysql> quit;
zcat/usr/share/doc/zabbix-server-mysql-3.0.*/create.sql.gz | mysql -uzabbix -pzabbix
vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=<password>
# /etc/init.d/zabbix-server start # chkconfig on zabbix-server
# cp/usr/share/doc/zabbix-web-3.0.8/httpd22-example.conf/etc/httpd/conf.d/zabbix.conf
Vi /etc/php.ini 设置相应的值 max_execution_time 300 memory_limit 128M post_max_size 16M upload_max_filesize 2M max_input_time 300 always_populate_raw_post_data -1 bcmath.scale = 1 date.timezone Asia/Shanghai
l至此zabbix服务器端安装完毕,可用浏览器访问zabbixserver_IP/zabbix 使用Admin密码zabbix来登录 zabbix控制台,注意服务器防火墙配置
3.2Zabbix被监控端安装
Yum install zabbix-agent Chkconfig zabbix-agent on
本文出自 “xiaoma” 博客,请务必保留此出处http://xiaoma90.blog.51cto.com/1351568/1904879
使用yum方式安装 zabbix3.0
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。