docs: update elk/elasticsearch

This commit is contained in:
Administrator 2021-10-24 07:26:58 +00:00 committed by John Smith
parent 3f850f80d9
commit f017bed2e0

View File

@ -2,7 +2,7 @@
title: ElasticSearch title: ElasticSearch
description: 安装以及使用文档 description: 安装以及使用文档
published: true published: true
date: 2021-10-24T07:16:30.039Z date: 2021-10-24T07:26:57.495Z
tags: elk tags: elk
editor: markdown editor: markdown
dateCreated: 2021-10-23T09:14:15.263Z dateCreated: 2021-10-23T09:14:15.263Z
@ -82,14 +82,15 @@ curl http://192.168.0.156:9200
* soft nofile 65536 * soft nofile 65536
* hard nofile 65536 * hard nofile 65536
* soft nproc 65536 * soft nproc 4096
* hard nproc 65536 * hard nproc 4096
``` ```
> 1. nofile: 是每个进程可以打开的文件数的限制 > 1. nofile: 是每个进程可以打开的文件数的限制
> 2. soft nofile表示软限制hard nofile表示硬限制软限制要小于等于硬限制。上面两行语句表示root用户的软限制为1000硬限制为1200即表示root用户能打开的最大文件数量为1000不管它开启多少个shell。 > 2. nproc是操作系统级别对每个用户创建的进程数的限制
> 3. nproc是操作系统级别对每个用户创建的进程数的限制 > 3. soft表示软限制hard表示硬限制软限制要小于等于硬限制。
> 4. > 4. \* 表示所有用户如果要指定用户就替换为用户名root nofile 65536...
> 5. 如果limits.conf没有做设定则默认值是1024
此文件修改后需要重新登录用户,才会生效 此文件修改后需要重新登录用户,才会生效