解压缩软件
shell> tar -zxf zabbix-1.8.tar.gz
配置MySQL数据库
shell> mysql -u<username> -p<password>
mysql> create database zabbix character set utf8;
mysql> quit;
shell> cd create/schema
shell> cat mysql.sql | mysql -u<username> -p<password> zabbix
shell> cd ../data
shell> cat data.sql | mysql -u<username> -p<password> zabbix
shell> cat p_w_picpaths_mysql.sql | mysql -u<username> -p<password>
安装zabbix
shell> ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
shell> make install
配置服务端口
在/etc/services后面加上以下内容
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
创建配置文件,并更改里面的基本参数,主要是连接MySQL数据库
mkdir /etc/zabbix
cp misc/conf/zabbix_server.conf /etc/zabbix/
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
启动zabbix服务
useradd zabbix
/usr/local/sbin/zabbix_server
/usr/local/sbin/zabbix_agentd
配置WEB管理界面
cd /opt/wwwroot/
mkdir zabbix
cd zabbix-1.8.8/frontends/php/
cp -a . /opt/wwwroot/zabbix/
然后安装提示安装即可。
转载于:https://blog.51cto.com/dbachina/772567