zabbix安装

Centos 7安装zabbix

rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm
yum clean all
yum makecache
yum install zabbix-agent -y

cat > /etc/zabbix/zabbix_agentd.conf <<EOF
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=10
Server=52.43.49.232
#ServerActive=63.35.161.207
Hostname=hostanme-xxxxxxxx
Include=/etc/zabbix/zabbix_agentd.d/*.conf
EnableRemoteCommands=1
EOF

#进程启动关闭:
systemctl  enable zabbix-agent.service
systemctl  start  zabbix-agent.service
systemctl  restart  zabbix-agent.service
systemctl  status  zabbix-agent.service

ubuntu 18.04安装zabbix

wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+bionic_all.deb
dpkg -i zabbix-release_4.0-3+bionic_all.deb
apt update

apt install zabbix-agent

本文链接:目录"--EOF--