groupadd zabbix
useradd -r -s /sbin/nologin -g zabbix zabbix
wget wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.4.3/zabbix-2.4.3.tar.gz
tar zxvf zabbix-2.4.3.tar.gz
mkdir /home/wwwroot/default/zabbix
mv -f /root/zabbix-2.4.3/frontends/php/* /home/wwwroot/default/zabbix
cd zabbix-2.4.3
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --enable-proxy --with-mysql --with-net-snmp --with-libcurl --with-mysql=/usr/local/mysql/bin/mysql_config
ln -s /usr/local/mysql/include/mysql_com.h /usr/local/mysql/include/mysql/mysql_com.h
ln -s /usr/local/mysql/include/mysql_time.h /usr/local/mysql/include/mysql/mysql_time.h
ln -s /usr/local/mysql/include/my_list.h /usr/local/mysql/include/mysql/my_list.h
ln -s /usr/local/mysql/include/typelib.h /usr/local/mysql/include/mysql/typelib.h
ln -s /usr/local/mysql/include/my_alloc.h /usr/local/mysql/include/mysql/my_alloc.h
ln -s /usr/local/mysql/include/mysqld_error.h /usr/local/mysql/include/mysql/mysqld_error.h
make
make install
mysql -uroot -ppass
create database zabbix character set utf8;
CREATE USER 'zabbix'@'localhost';
SET PASSWORD FOR 'zabbix'@'localhost' = PASSWORD('pass');
grant all on zabbix.* to zabbix@localhost identified by 'pass';
flush privileges
use zabbix;
source /root/zabbix-2.4.3/database/mysql/schema.sql
source /root/zabbix-2.4.3/database/mysql/images.sql
source /root/zabbix-2.4.3/database/mysql/data.sql
show tables;
quit
cp /root/zabbix-2.4.3/misc/init.d/debian/* /etc/init.d/
nano /usr/local/zabbix/etc/zabbix_server.conf
nano /etc/init.d/zabbix-agent
/usr/local/zabbix/sbin
nano /etc/init.d/zabbix-server
/etc/init.d/zabbix-server restart
/etc/init.d/zabbix-agent restart
netstat -anpt | grep zabbix
dpkg-reconfigure locales
nano zabbix/include/locales.inc.php
'zh_CN' => array('name' => _('Chinese (zh_CN)'), 'display' => true),
安装zabbix笔记
暂无回复