Easysearch、Elasticsearch 还是 Opensearch,是个问题

filebeat后台启动问题

Beats | 作者 myto2006 | 发布于2017年05月17日 | 阅读数:22491

filebeat在centos上怎么后台启动呢?我用下面的命令启动后,关掉SecureCRT后进程就不在了,这是怎么回事?
sudo nohup ./filebeat -e -c filebeat.yml >/dev/null 2>&1 &
已邀请:

leighton_buaa

赞同来自: Rei

apt-get install screen
screen
sudo nohup ./filebeat -e -c filebeat.yml >/dev/null 2>&1 &
 

zaqweb

赞同来自:

推荐RPM包安装,只要执行
centOS7
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable filebeat.service
 
centOS6
sudo chkconfig --add filebeat
sudo -i service filebeat start

myto2006

赞同来自:

我试试先

要回复问题请先登录注册