Install the docker

1. Install docker on centos7

Docker requires a CentOS kernel version later than 3.10. Check the prerequisites on this page to verify whether your CentOS version supports Docker.

Check your current kernel version with the uname -r command

 $ uname -rCopy the code

2. Log in to Centos as user root. Make sure the YUM package is up to date.

$ sudo yum updateCopy the code

3. Uninstall the old version (if any)

$ sudo yum remove docker  docker-common docker-selinux docker-engineCopy the code

Yum-util provides yum-config-manager functionality. The other two are dependent on devicemapper drivers

$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2Copy the code

5. Configure the yum source

$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoCopy the code

6. You can view all docker versions in all warehouses and select a specific version to install

$ yum list docker-ce --showduplicates | sort -rCopy the code

7. Install Docker

$ sudo yum install docker-ce  Since stable repository is only enabled in the repo by default, this is the latest stable version 17.12.0
$ sudo yum install <FQPN>  Sudo yum install docker-ce-17.12.0.ceCopy the code

8. Start and join boot

$ sudo systemctl start docker
$ sudo systemctl enable dockerCopy the code

9, verify whether the installation is successful (there are two parts of client and service, indicating that docker installation and startup are successful)

$ docker versionCopy the code

Integration of dubbo

1. Install the zookeeper

Creating a ZooKeeper container is also easy. You can use the ZooKeeper image I created to download the image:

Docker pull chaimm/zookeeper - dubbo: 1.0Copy the code

Not only is a ZooKeeper running in this image, but tomcat is also running with a Dubo-Admin project. Dubbo-admin is a visual management tool for Dubbo that allows you to view the publishing and referencing of services.

Start the container with the following command:

Docker run --name zookeeper-debug -p 2182:2181 -p 1000:8080 Chaimm /zookeeper-dubbo:1.0Copy the code
  • -p 2182:2181: maps port 2181 of the container to port 2182 of the host, which is the ZooKeeper port number.
  • -p 1000:8080: maps port 8080 of the container to port 10000 of the host. This port is the Tomcat port number of dubo-admin.

2. Install the dubbo – admin

According to common sense, go directly to https://github.com/alibaba/dubbo (https://github.com/apache/incubator-dubbo) to download, and then enter the following dubbo – admin directory, in MVN packaging, But for some reason, the dubo-admin directory cannot be found.

Then go directly to download them packaged good source: https://github.com/alibaba/dubbo/releases (https://github.com/apache/incubator-dubbo/releases)

MVN package-dmaven.test. skip=true; / / dubbo-admin-2.6.0; / / dubbo-admin-2.6.0 Copy this directory to ROOT (tomcat webapps directory ROOT)

MVN install-dmaven.test. skip=true install -dmaven.test. skip=true install -dmaven.test. Jar XVF dubbo-admin-2.6.6. war: jar XVF dubbo-admin-2.6.6. war: jar XVF dubbo-admin-2.6.6. war: jar XVF dubbo-admin-2.6.6. war: jar XVF dubbo-admin-2.6.6. war: jar XVF dubbo-admin-2.6.6. war Put all decompressed content in the ROOT directory

After tomcat is started, the dubo-admin page is displayed. The default password is root/root

Configure dubo. properties in /home/admin/apache-tomcat-8.5.24/webapps/ROOT/ web-INF and change the password and registration information of the account

I started using Dubo2.6.0 and Tomcat8.5.24.

But with dubo2.5.4 and Tomcat8.4.24, dubo-admin won’t get up