以root身份启动zabbix服务
Zabbix agent
To override the default user and group for Zabbix agent, run:
systemctl edit zabbix-agent
Then, add the following content:
[Service] User=root Group=root
Reload daemons and restart the zabbix-agent service:
systemctl daemon-reload
systemctl restart zabbix-agent
For Zabbix agent this re-enables the functionality of configuring user in the zabbix_agentd.conf file. Now you need to set User=root and AllowRoot=1 configuration parameters in the agent configuration file.
征途漫漫,惟有奋斗!
浙公网安备 33010602011771号