從myBatis Plugin看責任鏈模式
阿新 • • 發佈:2020-11-01
- 問題描述: 沒有使用非root使用者的其他使用者啟動
解決方案
切換到其他使用者啟動即可,記得修改elasticsearch目錄許可權以及日誌目錄和資料目錄許可權
- 問題描述: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER
- [4]ERROR: bootstrap checks failed
- 銀河麒麟下可能會報錯: system call filters failed to install; check the logs and fix your configuration or disable system c
解決方案
修改elasticsearch.yml中配置在Memory下面新增下面兩個屬性:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
- 問題描述: [1]max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
解決方案
切換到root使用者,編輯limits.conf配置檔案, vim /etc/security/limits.conf新增以下內容:
* soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096
- 問題描述: [2]max number of threads [1024] for user [bigdata] likely too low, increase to at least [2048]
解決方案
切換到root使用者,進入limits.d目錄下,修改90-nproc.conf 配置檔案,vi /etc/security/limits.d/90-nproc.conf,找到如下內容:
* soft nproc 1024 修改為 * soft nproc 2048
- 問題描述: [3]max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解決方案
切換到root使用者下,修改配置檔案sysctl.conf,vi /etc/sysctl.conf新增下面配置
vm.max_map_count=655360
儲存退出並執行命令
sysctl -p
- 問題描述: unable to load JNA native support library, native methods will be disabled
解決方案
備份之前的lib庫,然後在GitHub下載jna-5.0.0.zip檔案,然後將裡面的dist目錄下的jna.jar替換掉之前lib庫中jna-4.4.0.jar
- 問題描述: max size virtual memory [4930928640] for user [es-xue] is too low, increase to [unlimited]
解決方案
切換到root使用者,編輯limits.conf配置檔案, vim /etc/security/limits.conf新增以下內容:
* hard memlock unlimited
* soft memlock unlimited
* - as unlimited
- 問題描述:memory locking requested for elasticsearch process but memory is not locked
解決方案
切換到root使用者,編輯limits.conf配置檔案, vim /etc/security/limits.conf新增以下內容:
# 這裡的使用者名稱改為你為es分配的使用者名稱
使用者名稱 hard memlock unlimited
使用者名稱 soft memlock unlimited