dubbo-admin InstallationEnvironment Vmware®workstation Pro CentOS7
Download Dubbo and pack me here with git download, git clone https://github.com/alibaba/dubbo.git. Up to today, the latest version of Dubbo is 2.5.4-snapshot. After the Dubbo code has been downloaded, to compile the Dubbo code, and Dubbo the required package download to the local Maven bin (Maven installation and configuration of another Baidu). 1. Open cmd 2.cd to Dubbo root directory, my Dubbo root directory in D:\JAVA\workspace\dubbo. MVN install-dmaven.test.skip=true 3. Execute maven compile command, MVN install-dmaven.test.skip=true. -dmaven.test.skip=true is to skip the test, faster, pom.xml configuration dependencies, Bulid will automatically load the jar to the local warehouse. See build success, indicating successful compilation.
4. After the successful compilation, in the Dubbo-admin project, the target directory will appear Dubbo-admin-2.5.4-snapshot.war files, this is the Dubbo console war package.
The system installs the CENTOS7 system under the VM, the procedure omits ...
JDK installation and configuration my installation here is jdk1.8, the process is omitted ...
Zookeeper download/install/configure 1.zookeeper download page: http://apache.fayea.com/zookeeper/, I downloaded is zookeeper-3.5.2-alpha.tar.gz. After uploading to CentOS, execute: TAR-XVF zookeeper-3.5.2-alpha.tar.gz, unpack, then go to zookeeper-3.5.2-alpha/conf, copy a Zoo_ Sample.cfg, named Zoo.cfg. 2.VI zoo.cfg, if you want to modify the data save address and port number, modify the 3. Start Zookeeper. CD to the zookeeper root directory, execute:./bin/zkserver.sh start. You can use PS to see if it started successfully.
Tomcat download/install/configure 1. Tomcat download page: http://tomcat.apache.org/download-90.cgi, I am here to download the tomcat9. 2. After extracting Tomcat, go to the WebApps directory and empty the files inside. 3. Modify the Server.xml inside the 8080 port, be sure to modify, because zookeeper will take up this port, this version of zookeeper integrated Jetty,jetty following zookeeper boot will occupy 8080 ports. I'm changing it to 8081. 4. Configure the catalina.sh file. I installed the tomcat9, do not know why the start of the error, said that the JVM and so on, online check said that need to configure catalina.sh. Open VI catalina.sh file:
In # OS specific support. Before you add the following code:
java_home=/usr/local/jdk/jdk1.8.0_111
Jre_home= $JAVA _home/jre
Type ESC and enter ": wq!" Maintain and exit;
Deploy Dubbo-admin
1. Upload Dubbo-admin-2.5.4-snapshot.war to Tomcat's WebApps directory and extract Dubbo-admin-2.5.4-snapshot.war (unzip Dubbo-admin-2.4.1.war dubbo-admin-2.5.4-snapshot). 2. Modify the Dubbo.properties configuration of the dubbo-admin-2.5.4-snapshot. Go to Dubbo-admin-2.5.4-snapshot/web-inf,vi dubbo.properties, and then modify the zookeeper configuration. 3. Start Tomcat. To Tomcat's Bin directory, execute:./startup.sh. Review processes and logs to ensure successful startup. 4. Visit the Dubbo console. http://192.168.1.103:8081/dubbo-admin-2.5.4-SNAPSHOT/. Here you should pay attention to firewall limit port access, a bit more rough can shut down the firewall. The access username and password are root. Success...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.