# agent端
代码语言:javascript复制1. sgent状态
systemctl status zabbix-agent
2. 启动
systemctl start zabbix-agent
3. 停止
systemctl stop zabbix-agent
4. 查看防火墙
systemctl status firewalld
5. 开启10050端口
firewall-cmd --zone=public --add-port=10050/tcp --permanent
/sbin/iptables -I INPUT -p tcp --dport 10050 -j ACCEPT
systemctl stop firewalld.service
6. 查看端口通不通
telnet 192.168.0.20 10050
# server端
代码语言:javascript复制1. 重启
systemctl restart zabbix-server