标签:plugins linux 项目 term 账号 k8s path amp sample
wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.4.2/elasticsearch-analysis-ik-
[root@k8s-master ~]# mkdir /opt/elasticsearch/elasticsearch-6.4.2/plugins/elasticsearch-analysis-ik-6.4.2
[root@k8s-node-1 ~]# cd /opt/elasticsearch/elasticsearch-6.4.2/plugins/elasticsearch-analysis-ik-6.4.2
[root@k8s-node-1 elasticsearch-analysis-ik-6.4.2]# unzip elasticsearch-analysis-ik-6.4.2.tar.gz
apache-zookeeper-3.6.1-bin.tar.gz
,并将其放在/root
目录下。[root@k8s-master ~]# cd /usr/local
[root@k8s-master local]# mkdir zookeeper
[root@k8s-master local]# cd zookeeper/
[root@k8s-master zookeeper]# tar -zxvf /root/apache-zookeeper-3.6.1-bin.tar.gz -C ./
[root@k8s-master zookeeper]# cd apache-zookeeper-3.6.1-bin/
[root@k8s-master apache-zookeeper-3.6.1-bin]# mkdir data
[root@k8s-master apache-zookeeper-3.6.1-bin]# cd conf
[root@k8s-master conf]# cp zoo_sample.cfg zoo.cfg
[root@k8s-master conf]# vim zoo.cfg
datadir
修改为data
目录[root@k8s-master apache-zookeeper-3.6.1-bin]# ./bin/zkServer.sh start
[root@k8s-master apache-zookeeper-3.6.1-bin]# ./bin/zkServer.sh status
[root@k8s-master ~]# vim /etc/profile
## 下面是在配置文中末尾加上这两行
export ZOOKEEPER_HOME=/usr/local/zookeeper/apache-zookeeper-3.6.1-bin
export PATH=$PATH:$ZOOKEEPER_HOME/bin
###
[root@k8s-master ~]# source /etc/profile
[root@k8s-master ~]# cd /etc/rc.d/init.d
[root@k8s-master init.d]# touch zookeeper
[root@k8s-master init.d]# chmod +x zookeeper
[root@k8s-master init.d]# vim zookeeper
###添加下面的内容
#!/bin/bash
#chkconfig:- 20 90
#description:zookeeper
#processname:zookeeper
ZOOKEEPER_HOME=/usr/local/zookeeper/apache-zookeeper-3.6.1-bin
export JAVA_HOME=/usr/local/java/jdk1.8.0_161
case $1 in
start) su root $ZOOKEEPER_HOME/bin/zkServer.sh start;;
stop) su root $ZOOKEEPER_HOME/bin/zkServer.sh stop;;
status) su root $ZOOKEEPER_HOME/bin/zkServer.sh status;;
restart) su root $ZOOKEEPER_HOME/bin/zkServer.sh restart;;
*) echo "require start|stop|status|restart";;
esac
###
[root@k8s-master init.d]# chkconfig --add zookeeper
[root@k8s-master init.d]# chkconfig zookeeper on
标签:plugins linux 项目 term 账号 k8s path amp sample
原文地址:https://www.cnblogs.com/ruigege0000/p/13574953.html