2、修改服务文件中配置vi /usr/lib/systemd/system/zabbix-agent.servicegroup=rootuser=root
3、重启加载systemctl daemon-reload
4、重启zabbix agentsystemctl restart zabbix-agent.service
Centos7修改zabbix agent为root用户启动
原文:https://blog.51cto.com/paitoubing/2620407