KVM虚拟机客户端便捷安装

适用与Ubuntu系统:

wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+trusty_all.deb && dpkg -i zabbix-release_3.4-1+trusty_all.deb && apt-get update && chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow && apt-get install zabbix-agent && chattr +i /etc/passwd /etc/shadow /etc/group /etc/gshadow && chown zabbix.zabbix /etc/zabbix/ -R && /etc/init.d/zabbix-agent stop && sed -i 's/Server=127.0.0.1/Server="服务端IP"/g' /etc/zabbix/zabbix_agentd.conf  && sed -i 's/ServerActive=127.0.0.1/ServerActive="服务端IP"/g' /etc/zabbix/zabbix_agentd.conf && sed -i 's/Hostname=Zabbix server/Hostname="客户端名称"/g' /etc/zabbix/zabbix_agentd.conf && /etc/init.d/zabbix-agent start 

猜你喜欢

转载自www.cnblogs.com/fkdxpp/p/9204002.html
今日推荐