启动脚本
cd /lib/systemd/system vim filebeat.service [Unit] Description=filebeat server daemon Documentation=/data/app/filebeat-7.13.2-linux-x86_64/filebeat -help Wants=network-online.target After=network-online.target [Service] User=centos Group=centos Environment="BEAT_CONFIG_OPTS=-c /data/app/filebeat-7.13.2-linux-x86_64/config/filebeat.yml" ExecStart=/data/app/filebeat-7.13.2-linux-x86_64/filebeat $BEAT_CONFIG_OPTS Restart=always [Install] WantedBy=multi-user.target chmod 755 filebeat.service systemctl enable filebeat.service systemctl start filebeat.service
评论