CentOS7 部署单机版 elasticsearch

一、环境准备

1、准备一台系统为CentOS7的服务器
[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
2、创建新用户,用于elasticsearch服务
# elastic不允许使用root账号启动服务
[root@localhost ~]# useradd elastic
[root@localhost ~]# passwd elastic 
Changing password for user elastic.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
3、设置ulimit
[root@localhost ~]# vi /etc/security/limits.conf
# 在文本最后添加如下几行
## 可以打开的最大文件数(软限制)
elastic soft nofile 65536
## 可以打开的最大文件数(硬限制)
elastic hard nofile 65536
## 可以创建的最大进程数(软限制)
elastic soft nproc 65535
## 可以创建的最大进程数(硬限制)
elastic hard nproc 65535

[root@localhost ~]# vi /etc/sysctl.conf
# 在文本最后添加下面行
## 设置单个进程可以拥有的最大内存映射区域数量
v
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值