Zabbix 服务端安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Zabbix 服务端安装相关的知识,希望对你有一定的参考价值。
1. 安装 Zabbix 服务端
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm yum install -y mysql mysql-server zabbix-server-mysql zabbix-web-mysql zabbix-agent service mysqld start mysql -uroot -e "create database zabbix character set utf8 collate utf8_bin;" mysql -uroot -e "grant all privileges on zabbix.* to [email protected] identified by ‘zabbix‘;" mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/schema.sql mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/images.sql mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/data.sql sed -i ‘s/# DBPassword=/DBPassword=zabbix/g‘ /etc/zabbix/zabbix_server.conf sed -i ‘s#;date.timezone =#date.timezone = Asia/Shanghai#g‘ /etc/php.ini cat >> /etc/php.ini << EOF php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 EOF
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate us.pool.ntp.org
chkconfig httpd on
chkconfig mysqld on
chkconfig zabbix-server on
chkconfig zabbix-agent on
/etc/init.d/zabbix-server start
/etc/init.d/zabbix-agent start
/etc/init.d/httpd start
iptables -F
setenforce 0
2. 安装 Zabbix 控制台
访问:http://yourIP/zabbix
以上是关于Zabbix 服务端安装的主要内容,如果未能解决你的问题,请参考以下文章