ES安装

//--java安装
sudo yum install java -y
java -version 【需要1.8以上版本】
//--下载安装包
 
sudo rpm -ivh elasticsearch-6.3.2.rpm
sudo /sbin/iptables -I INPUT -p tcp --dport 9200 -j ACCEPT
 
//--配置文件存放位置
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /app/es/data
#
# Path to log files:
#
path.logs: /app/es/logs
 
sudo service elasticsearch start [restart|stop]
posted @ 2021-12-02 18:46  哦~杰克  阅读(24)  评论(0编辑  收藏  举报