Server端 [Unit] Description=Zabbix Server After=syslog.target After=network.target [Service] Environment="CONFFILE=/usr/local/zabbix/etc/zabbix_server.conf" EnvironmentFile=-/usr/local/zabbix Type=forking PIDFile=/var/run/zabbix/zabbix_server.pid ExecStart=/usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf ExecStop=/usr/bin/kill $MAINPID Restart=always RestartSec=5 User=zabbix Group=zabbix [Install] WantedBy=multi-user.target agentd端 [Unit] Description=Zabbix Agen....... zabbix编译安装时的systemctl启动管理 zabbix