Pre-Installation Preparation
Zookeepper-3.4.8.tar.gz
Http://www.apache.org/dist//zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
Tomcat 7
http://tomcat.apache.org/download-70.cgi
Dubbo
http://dubbo.io/
1. Install ZK
tar zxvf zookeeper-3.4.8.tar.gz
cd zookeeper-3.4.8
cp conf/zoo_sample.cfg conf/zoo.cfg
Vim Conf/zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/home/dubbo/zookeeper-3.4.8/data
clientPort=2181
mkdir data
vi myid
myID indicates its own ID, corresponding to the server in the zoo.cfg above. Number after
2. Install Tomcat
tar zxvf apache-tomcat-7.0.47.tar.gz
cd apache-tomcat-7.0.47
3. Deploy Dubbovim Dubbo.properties
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
Start the project in the Tomcat directory./bin/startup.sh User: Root, Password: root or User: Guest, Password: Guest Http://localhost:8080/dubbo can be accessed to show that the building was successful.
Centos-dubbo, ZK Installation Deployment