Installation Zookeeper + Dubbo-admin

introduction

  The article is used to record himself on centos7 install Zookeeper + Dubbo-admin. The main contents include:

  1.jdk installation

  2.zookeeper installation

  3.tomcat installation

  Installation 4.Dubbo-admin

text

 1.jdk installation

  There centos default installation openjdk, it is recommended to uninstall.

  Use the command rpm -qa | grep java view the default installation of jdk

  

  Uninstall the installed jdk  

  

  Which has been downloaded jdk uploaded to the centos

  

  Upload the file decompression

  

 

  Create a program folder

  

 

 

   Unzip the jdk folder to create the program folder

  

 

 

   Configuration environment variable

  Edit the configuration file: vim / etc / profile

  shift + g is positioned to the last row

  At the end add the following content

  

 

 

   Press the ESC key, enter: wq to save and exit

  Let configuration to take effect

       

 

 

   View success   if you just installed appear jdk version number, the installation and configuration environment variable success

  

 

 

  2.zookeeper Installation and Configuration

   Upload the downloaded archive zookeeper

  

 

 

   Extracting archive upload

  

 

 

   Enter the unpacked directory, create a data folder

  

 

 

   Enter the conf directory, zoo_sample.cfg renamed zoo.cfg

  

 

 

   Open zoo.cfg, dataDir modify attributes: dataDir = / root / zookeeper-3.4.6 / data

  Go to the bin directory, you can see the service startup files, enter the command to start the service ./zkServer.sh start

   

 

 

   Out of service

  

 

 

   Check the service status

  

 

 

  3.tomcat installation

  Upload archive to centos tomcat

  

 

 

   Decompression

  

 

 

   After extracting the file folder to / usr / program

  

 

 

   For ease of operation can change the name of the folder tomcat

  

 

 

   Tomcat is installed into the bin directory and start

  

 

 

    After a successful start, you can access through a browser: cenetos of IP: 8080

    # If you start later success, but not to visit tomcat in windows browser, the issue may be the Linux firewall

  # Stop firewall services, and does not allow Xu Ziqi when the boot:

  #systemctl stop firewalld.service && systemctl disable firewalld.service

  Yun Xu Ziqi # stops when the firewall service, and Power:

  #systemctl start firewalld.service && systemctl enable firewalld.service

  # View firewall service status: systemctl status firewalld

  # View the status of firewall: firewall-cmd - -state

  # Enable service firewalld start

  # Restart service firewalld restart

  # Close the service firewalld stop

  # Query port is open firewall-cmd --query-port = 8080 / tcp

  # 80 open port firewall-cmd --permanent --add-port = 80 / tcp

  # Removal port firewall-cmd --permanent --remove-port = 8080 / tcp

  4.dubbo-admin

  Download: https: //github.com/apache/dubbo

  Enter dubbo-admin directory, enter the command maven package:

  mvn package -Dmaven.skip.test=true

  Into the target folder, you'll see a dubbo-admin.war, war package to upload centos

  

 

   The war package into the next webapps tomcat. Automatic decompression after starting tomcat

  

 

  If you deploy zookeeper same host and port is the default 2181, you do not need to modify any configuration. If it is not in a

  Host or port has been modified, to modify dubbo.properties under WEB-INF, modified as follows

  dubbo.registry.address=zookeeper://127.0.0.1:2181

   

 

   Tomcat restart after modification

  Open your browser and enter the IP: 8080 / dubbo-admin /, login user name and password are root access to the home (the premise to ensure that the service is started zookeeper state)

  

 

 

 

 

 

  

Guess you like

Origin www.cnblogs.com/guyunfei/p/11831092.html