安装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