码迷,mamicode.com
首页 > 系统相关 > 详细

zookeeper部署到linux操作步骤

时间:2018-01-06 23:26:52      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:编辑   修改   using   sample   gpo   where   start   cal   中心   

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

3. 解压
[root@itcast-01 local]# tar -zxvf zookeeper-3.4.6.tar.gz

4. 配置文件
[root@itcast-01 local]# cd zookeeper-3.4.6
[root@itcast-01 zookeeper-3.4.6]# mkdir data
[root@itcast-01 zookeeper-3.4.6]# cd conf
[root@itcast-01 conf]# cp zoo_sample.cfg zoo.cfg
[root@itcast-01 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. 启动
[root@itcast-01 conf]# cd ..
[root@itcast-01 zookeeper-3.4.6]# cd bin/
[root@itcast-01 bin]# ./zkServer.sh start
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@itcast-01 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操作步骤

标签:编辑   修改   using   sample   gpo   where   start   cal   中心   

原文地址:https://www.cnblogs.com/guanzhuang/p/8215467.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!