zookeeper部署到linux操作步骤

Posted 无限的知识,无限的海洋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zookeeper部署到linux操作步骤相关的知识,希望对你有一定的参考价值。

安装zookeeper
1. 上传
上传zookeeper,在\01课前资料\02技术资料
2. 移动
[[email protected] ~]# mv zookeeper-3.4.6.tar.gz /usr/local/
[[email protected] ~]# cd /usr/local/

3. 解压
[[email protected] local]# tar -zxvf zookeeper-3.4.6.tar.gz

4. 配置文件
[[email protected] local]# cd zookeeper-3.4.6
[[email protected] zookeeper-3.4.6]# mkdir data
[[email protected] zookeeper-3.4.6]# cd conf
[[email protected] conf]# cp zoo_sample.cfg zoo.cfg
[[email protected] conf]# vim zoo.cfg
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/usr/local/zookeeper-3.4.6/data

5. 启动
[[email protected] conf]# cd ..
[[email protected] zookeeper-3.4.6]# cd bin/
[[email protected] bin]# ./zkServer.sh start
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[[email protected] bin]# ./zkServer.sh status


Monitor监控中心
1.将tomcat移动并解压到/usr/local/目录下
mv apache-tomcat-7.0.57.tar.gz /usr/local/
cd /usr/local/
mv dubbo-admin-2.5.4.war /usr/local/apache-tomcat-7.0.57/webapps
cd /usr/local/apache-tomcat-7.0.57/webapps

2.将dubbo-admin-2.5.4.war改名并进入tomcat目录修改端口号
mv dubbo-admin-2.5.4.war dubbo.war
vim conf/server.xml
ESC退出编辑 :wq 保存写入

3.进入tomcat的bin目录启动tomcat
./startup.sh
tail -100f ../logs/catalina.out

4.删除dubbo.war
cd /usr/local/apache-tomcat-7.0.57/webapps
rm -rf dubbo.war






































以上是关于zookeeper部署到linux操作步骤的主要内容,如果未能解决你的问题,请参考以下文章

Zookeeper3.5.7版本——单机部署(linux环境-centos7)

ant在linux下的安装部署

Zookeeper集群安装部署(超详细操作演示)—— Linux

在Linux下集群化部署zookeeper(3.7.0版本)

Linux来历

Kafka集群部署