Distributed architecture in large sites indispensable, dubbo + zookeeper is one of the technologies to achieve distributed. Dubbo is the core framework Alibaba SOA service governance program, zookeeper is dubbo recommended registry. To use dubbo, you must first use the zookeeper. This article describes the installation and testing zookeeper.
1, environmental constraints
- [vmware can also have a real centos server, so if you do not need a virtualization software]
- centos7 64
- putty
- zookeeper-3.4.11
- jdk1.8.162
- apache-tomcat-8.5.38
2, software download
Links: https://pan.baidu.com/s/1BLNu2aTsfyv0nNF5RRlyzQ
extraction code: 4p6a
3, the premise of restraint
- Zookeeper has been installed and started https://www.jianshu.com/p/45e84fc9d02f
- Tomcat is installed and complete the configuration https://www.jianshu.com/p/22af2f4d6d4a
4, operation
- Uploading, using the upload command rz dubbo.war
specific operation as shown below: - Dubbo.war copied to the apache-tomcat-8.5.38 webapps
specific operation as shown below: - Start tomcat, turn off the firewall
#进入tomcat启动目录bin
cd /root/apache-tomcat-8.5.38/bin
#设置启动文件为可执行,以下命令只是在测试阶段,实际使用中不能如此粗暴
chmod 777 *
#启动tomcat
./startup.sh
#查看防火墙状态
systemctl status firewalld
#关闭防火墙
systemctl stop firewalld
Specific operation as shown below:
5, test
Open your browser and enter http://192.168.100.192:8080/dubbo, Enter, wait, enter the account root password root. Specific operation is as follows:
6, summed up
So far, we have completed the installation and testing dubbo, distributed development next step for us to do to prepare premise.