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

zabbix 3.0 on centos 7

时间:2016-06-24 22:20:51      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:zabbix 3.0 on centos 7



yum install httpd httpd-devel
yum -y install mariadb*
yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

systemctl start mariadb.service
systemctl enable mariadb.service
http://blog.csdn.net/default7/article/details/39138139

groupadd zabbix
useradd -g zabbix zabbix

mysql_secure_installation

rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway



vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Kolkata

systemctl restart httpd.service

 mysql -uroot -pAcc0unt! -e "create database zabbix default character set utf8 collate utf8_bin;"
mysql -uroot -pAcc0unt! -e "grant all on zabbix.* to ‘zabbix‘@‘%‘ identified by ‘Acc0unt!‘;"

cd /usr/share/doc/zabbix-server-mysql-3.0.0
zcat create.sql.gz | mysql -uroot -pAcc0unt! zabbix

yum install zabbix*

vi /etc/php.ini
 384 max_execution_time = 300

394 max_input_time = 300

405 memory_limit = 128M

800 upload_max_filesize = 2M

878 date.timezone = Asia/Shanghai

672 post_max_size = 28M


mkdir /var/www/html/zabbix
ll -a /var/www/html/
cp -r . /var/www/html/zabbix/
ll -a /var/www/html/zabbix

systemctl stop firewalld.service

Reference:


http://tecadmin.net/install-zabbix-network-monitoring-on-centos-rhel-and-fedora/#


http://itfish.net/article/61057.html#


https://www.zabbix.com/documentation/3.0/manual/quickstart/login 

zabbix 3.0 on centos 7

标签:zabbix 3.0 on centos 7

原文地址:http://zhangfang526.blog.51cto.com/8588740/1792719

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