zabbix 2.2.3 一键安装脚本
[*]yum install make gcc mysql-server mysql-devel libcurl-devel net-snmp-devel php php-gd php-xml php-mysql php-mbstring php-bcmath httpd wget lrzsz telnet lsof -y
[*]
[*]groupadd zabbix
[*]useradd zabbix -g zabbix
[*]
[*]wget -c http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.3/zabbix-2.2.3.tar.gz
[*]tar zxf zabbix-2.2.3.tar.gz
[*]cd zabbix-2.2.3
[*]./configure --prefix=/usr/local/zabbix --enable-server --enable-agent \
[*]--with-mysql --with-net-snmp --with-libcurl
[*]make install
[*]
[*]service mysqld start;
[*]mysql -e "create database zabbix character set utf8;"
[*]mysql -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';flush privileges;"
[*]
[*]mysql -urootzabbix /etc/rc.local
[*]chkconfig --level 345 mysqld on
[*]chkconfig --level 345 httpd on
[*]
[*]
[*]/etc/init.d/zabbix_server start
[*]/etc/init.d/zabbix_agentd start
[*]/etc/init.d/httpd start
页:
[1]