标签:
dubbo管理界面
一,安装zookeeper
2,解压
tar zxvf zookeeper-3.3.3.tar.gz
cd zookeeper-3.3.3
cp conf/zoo_sample.cfg conf/zoo.cfg
如果不需要集群,zoo.cfg的内容如下:(其中data目录需改成你真实输出目录)
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/home/dubbo/zookeeper-3.3.3/data
clientPort=2181
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/home/dubbo/zookeeper-3.3.3/data
clientPort=2181
server.1=10.20.153.10:2555:3555
server.2=10.20.153.11:2555:3555
并在data目录下放置myid文件:(上面zoo.cfg中的dataDir)
mkdir data
vi myid
myid指明自己的id,对应上面zoo.cfg中server.后的数字,第一台的内容为1,第二台的内容为2,内容如下:
启动:
./bin/zkServer.sh start
停止:
./bin/zkServer.sh stop
<
dubbo:registry
protocol
=
"zookeeper"
address
=
"10.20.153.10:2181,10.20.153.11:2181"
/>
1,安装tomcat
cd apache-tomcat-6.0.35
rm -rf webapps/ROOT
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
启动:
./bin/startup.sh
停止:
./bin/shutdown.sh
访问: (用户:root,密码:root 或 用户:guest,密码:guest)
标签:
原文地址:http://www.cnblogs.com/septemberlxc/p/5033719.html