安裝es流程
- 打開文件,添加以下行
vim /etc/sysctl.conf
vm.max_map_count=262144 - 重啟生效
sysctl -p - 創(chuàng)建用戶
useradd es
passwd es - 修改es目錄所屬用戶
chown -R es:es /opt/elasticsearch-8.9.0 - 如果內(nèi)存不足,可以修改es的初始化內(nèi)存和Max內(nèi)存,修改文件/opt/elasticsearch-8.9.0/config/jvm.options
-Xms8g
-Xmx8g - 運行es的腳本
#!/bin/bash
currentDate= ( d a t e + n o h u p / o p t / e l a s t i c s e a r c h ? 8.9.0 / b i n / e l a s t i c s e a r c h > > " (date +%Y-%m-%d) nohup /opt/elasticsearch-8.9.0/bin/elasticsearch >> " (<
文章來源地址http://www.zghlxwxcb.cn/news/detail-669909.html
文章來源:http://www.zghlxwxcb.cn/news/detail-669909.html
到了這里,關于安裝elasticsearch8.9.0及修改配置的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!