安装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
原文地址:https://www.cnblogs.com/guanzhuang/p/8215467.html