①导入源:
~~~
### Ubuntu 18.04
# wget https://repo.zabbix.com/zabbix/4.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.2-1+bionic_all.deb
# dpkg -i zabbix-release_4.2-1+bionic_all.deb
# apt update
---
### Ubuntu 16.04
# wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
# dpkg -i zabbix-release_3.4-1+xenial_all.deb
# apt update
---
### Ubuntu 14.04
# wget https://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 update
~~~
②安装:
`apt-get install -y zabbix-agent`
③配置:
`vim /etc/zabbix/zabbix_agentd.conf`
④启动:
`/etc/init.d/zabbix-agent start 或者 service zabbix-agent start`
\-完-