配置启动脚本
[root@prod-es-3 ~]# vim /usr/lib/systemd/system/elasticsearch.service [Unit] Description=elasticsearch [Service] User=centos Group=centos LimitNOFILE=900000 LimitNPROC=900000 ExecStart=/data/elasticsearch-7.17.5/bin/elasticsearch KillMode=process [Install] WantedBy=multi-user.target
启动服务
[root@prod-es-3 ~]# systemctl daemon-reload [root@prod-es-3 ~]# systemctl start elasticsearch.service


![EFK集群[案例]](https://devops.ubuntu.ltd/wp-content/uploads/2022/09/2022092017505680.png?x-oss-process=image/resize,m_fill,w_280 ,h_210, limit_0)









评论