From f017bed2e0a15af2f356b096faff14f3d5bc73e3 Mon Sep 17 00:00:00 2001 From: Administrator <450292408@qq.com> Date: Sun, 24 Oct 2021 07:26:58 +0000 Subject: [PATCH] docs: update elk/elasticsearch --- elk/elasticsearch.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/elk/elasticsearch.md b/elk/elasticsearch.md index 1a5198c..7ac7eef 100644 --- a/elk/elasticsearch.md +++ b/elk/elasticsearch.md @@ -2,7 +2,7 @@ title: ElasticSearch description: 安装以及使用文档 published: true -date: 2021-10-24T07:16:30.039Z +date: 2021-10-24T07:26:57.495Z tags: elk editor: markdown dateCreated: 2021-10-23T09:14:15.263Z @@ -82,14 +82,15 @@ curl http://192.168.0.156:9200 * soft nofile 65536 * hard nofile 65536 -* soft nproc 65536 -* hard nproc 65536 +* soft nproc 4096 +* hard nproc 4096 ``` > 1. nofile: 是每个进程可以打开的文件数的限制 -> 2. soft nofile表示软限制,hard nofile表示硬限制,软限制要小于等于硬限制。上面两行语句表示,root用户的软限制为1000,硬限制为1200,即表示root用户能打开的最大文件数量为1000,不管它开启多少个shell。 -> 3. nproc:是操作系统级别对每个用户创建的进程数的限制 -> 4. +> 2. nproc:是操作系统级别对每个用户创建的进程数的限制 +> 3. soft表示软限制,hard表示硬限制,软限制要小于等于硬限制。 +> 4. \* 表示所有用户,如果要指定用户就替换为用户名,如:root nofile 65536... +> 5. 如果limits.conf没有做设定,则默认值是1024 此文件修改后需要重新登录用户,才会生效