1
|
#rpm –ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm |
1
|
#yum -y install gcc gcc-c++ autoconf httpdphp mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysqlphp-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmathmysql-connector-odbc mysql-devel libdbi-dbd-mysql net-snmp-devel curl-develunixODBC-devel OpenIPMI-devel java-devel |
1
|
#vim /etc/php/ini |
1
2
3
4
|
# service mysqld start # chkconfig mysqld on # service httpd start # chkconfig httpd on |
1
2
|
# groupadd zabbix -g 201 # useradd -g zabbix -u 201 -m zabbix |
1
2
|
# tar xf zabbix-2.0.8.tar.gz # ./configure --prefix=/usr/local--sysconfdir=/etc/zabbix --enable-server --enable-proxy--enable-agent--with-net-snmp --with-libcurl --with-openipmi --with-unixodbc--enable-java --with-mysql=/usr/bin/mysql_config |
1
|
# make && make install |
1
|
# vim /etc/services |
1
2
|
# mysqladmin password zabbix # mysql -u root -pzabbix |
1
2
3
4
|
# cd zabbix-2.0.8/database/mysql/ # mysql -u zabbix -pzabbix zabbix <schema.sql # mysql -u zabbix -pzabbix zabbix <images.sql # mysql -u zabbix -pzabbix zabbix <data.sql |
1
2
3
4
|
# mkdir /var/log/zabbix # chown zabbix.zabbix /var/log/zabbix # cp zabbix-2.0.8/misc/init.d/fedora/core/zabbix_*/etc/init.d/ # chmod 755 /etc/init.d/zabbix_* |
1
|
# vim /etc/zabbix/zabbix_server.conf |
1
2
|
# cp -r php /var/www/html/zabbix # chown -R apache.root /var/www/html/zabbix |
1
2
|
# chkconfig --add zabbix_server # chkconfig --add zabbix_agentd |
1
2
|
# service zabbix_server start # chkconfig zabbix_server on
|