标签:div pre 新建用户 x64 data jdk sea port 配置
1.安装elasticsearch
tar -zxvf jdk-8u144-linux-x64.tar.gz mv jdk1.8.0_144 java mv java /usr/local/ #添加JDK变量环境 echo ‘#JAVA#‘>> /etc/profile echo ‘JAVA_HOME=/usr/local/java‘>> /etc/profile echo ‘CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib‘>> /etc/profile echo ‘PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin‘>> /etc/profile echo ‘export PATH CLASSPATH JAVA_HOME‘>> /etc/profile echo ‘export export ES_HEAP_SIZE=4g‘ >>/etc/profile source /etc/profile
2.
mkdir /data/ tar -zxvf elasticsearch-5.5.0.tar.gz -C /data/ ln -s /data/elasticsearch-5.5.0/ /data/elasticsearch #新建用户 useradd elasticsearch echo "123456"|passwd --stdin elasticsearch chown -R elasticsearch.elasticsearch /data/elasticsearch*
标签:div pre 新建用户 x64 data jdk sea port 配置
原文地址:http://www.cnblogs.com/creazylinux/p/7367324.html