Elasticsearch启动脚本

DevOps ELK评论971字数 372阅读1分14秒阅读模式

配置启动脚本

[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

DevOps
  • 本文由 发表于 2022年7月12日 15:12:20
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
EFK集群[案例] ELK

EFK集群[案例]

Elasticsearch集群配置信息 硬件配置信息 机器名/节点名 IP 内存 cpu 磁盘 us...
python定时清理ES 索引 ELK

python定时清理ES 索引

只保留三天 #!/usr/bin/env python3 # -*- coding:utf-8 -*- import os import datetime # 时间转化为字符串 n...
评论  0  访客  0

发表评论