groupadd zabbix useradd zabbix -g zabbix wget http://192.168.23.21/zabbix.tar.gz tar zxvf zabbix.tar.gz cd zabbix-1.8.5/ ./configure --prefix=/usr/local/zabbix --enable-agent make install mkdir /etc/zabbix cp misc/conf/zabbix_agent* /etc/zabbix/ -rf cp misc/init.d/redhat/zabbix_agentd_ctl /usr/local/zabbix/sbin/ cd /etc/zabbix/ 修改serverip和hostname vim zabbix_agentd.conf vim zabbix_agent.conf cd /usr/local/zabbix/sbin/ vim zabbix_agentd_ctl 修改bin路径为/usr/local/zabbix /usr/local/zabbix/sbin/zabbix_agentd_ctl start ps -ef|grep zabbix_agentd vim /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 vim /etc/rc.local /usr/local/zabbix/sbin/zabbix_agentd_ctl start 你也可以作为服务