To install dubbo-admin in centos, centosdubbo-admin
Preface:
Correct some mistakes on the Internet. dubbo-admin cannot start the Registration Center in jdk1.8. You need to go to github to download the source code provided by Alibaba, then install it into the local repository and package it into a war. Then, it can be moved to the centos system and run with tomcat.
I tried the above method for two whole nights and couldn't keep running.
Actually, it is not required here.
Steps:
Install tomcat. If you have any version, you only need to copy it (here I download apache-tomcat-7.0.77 from the official website)
Copy the file to usr/local and decompress it.Tar-zxvf apache-tomcat-7.0.77.Tar.gz
Then the focus is on enteringApache-tomcat-7.0.77/webapps, which contains a ROOT directory, enter, and delete all the files in it
Then copy (dubbo-admin-2.5.4.war) into the ROOT directory, unzip, by default there is no ROOT directory, we want the file inside, please do not include (Dubbo-admin-2.5.4) Directory. Similar:
Copy the ROOT directory again and name it ROOT_BAK, for example:
Before starting Tomcat, we need to start Zookeeper. First, go to the bin directory of the Zookeeper installation directory and start the ZooKeeper server:./zkServer. sh start. And so on. See the following figure. This shows that the Zookeeper server is up.
Let's start Zookeeper's client:./zkCli. sh. Normal start:
Next, go to the bin directory of tomcat and start tomcat. The command to start tomcat is relatively simple:./startup. sh /. After tomcat is started, we can access dubbo-admin. In the browser, enter: http: // 192.168.78.129: 8080/, OK