You need to install tomcat and then deploy the monitoring center.
If the monitoring center and the registry are on the same server, no configuration is required.
Step 1: install tomcat in linux first
Step 2: decompress
Step 3: import dubbo-admin-2.5.4.war registry file. If you can't find it, you can send it to me personally.
Step 4: copy dubbo-admin-2.5.4.war to tomcat's webapps folder
[root@camel ~]# cd ../ [root@camel /]# ls app boot etc lib media opt root sbin sys usr bin dev home lib64 mnt proc run srv tmp var [root@camel /]# cd app [root@camel app]# ls apache-tomcat-7.0.47 dubbo-admin-2.5.4-jdk1.8.war zookeeper-3.4.6.tar.gz apache-tomcat-7.0.47.tar.gz zookeeper-3.4.6 [root@camel app]# cp dubbo-admin-2.5.4-jdk1.8.war apache-tomcat-7.0.47/webapps [root@camel app]# ls apache-tomcat-7.0.47 dubbo-admin-2.5.4-jdk1.8.war zookeeper-3.4.6.tar.gz apache-tomcat-7.0.47.tar.gz zookeeper-3.4.6
Then open tomcat
[root@camel app]# cd apache-tomcat-7.0.47 [root@camel apache-tomcat-7.0.47]# ls bin lib logs RELEASE-NOTES temp work conf LICENSE NOTICE RUNNING.txt webapps [root@camel apache-tomcat-7.0.47]# cd bin [root@camel bin]# ls bootstrap.jar cpappend.bat startup.bat catalina.bat daemon.sh startup.sh catalina.sh digest.bat tomcat-juli.jar catalina-tasks.xml digest.sh tomcat-native.tar.gz commons-daemon.jar setclasspath.bat tool-wrapper.bat commons-daemon-native.tar.gz setclasspath.sh tool-wrapper.sh configtest.bat shutdown.bat version.bat configtest.sh shutdown.sh version.sh [root@camel bin]# ./startup.sh Using CATALINA_BASE: /app/apache-tomcat-7.0.47 Using CATALINA_HOME: /app/apache-tomcat-7.0.47 Using CATALINA_TMPDIR: /app/apache-tomcat-7.0.47/temp Using JRE_HOME: /usr Using CLASSPATH: /app/apache-tomcat-7.0.47/bin/bootstrap.jar:/app/apache-tomcat-7.0.47/bin/tomcat-juli.jar [root@camel bin]#
Check whether tomcat starts successfully accessing the console
[root@camel /]# ls app boot etc lib media opt root sbin sys usr bin dev home lib64 mnt proc run srv tmp var [root@camel /]# cd app [root@camel app]# ls apache-tomcat-7.0.47 dubbo-admin-2.5.4-jdk1.8.war zookeeper-3.4.6.tar.gz apache-tomcat-7.0.47.tar.gz zookeeper-3.4.6 [root@camel app]# cd apache-tomcat-7.0.47 [root@camel apache-tomcat-7.0.47]# -f logs/catalina.out bash: -f: Command not found... [root@camel apache-tomcat-7.0.47]# tail -f logs/catalina.out //July 23, 2019 4:16:09 PM org.apache.catalina.startup.HostConfig deployDirectory //Information: Deploying web application directory /app/apache-tomcat-7.0.47/webapps/host-manager //July 23, 2019 4:16:09 PM org.apache.catalina.startup.HostConfig deployDirectory //Information: Deploying web application directory /app/apache-tomcat-7.0.47/webapps/manager //July 23, 2019 4:16:09 PM org.apache.coyote.AbstractProtocol start //Information: Starting ProtocolHandler ["http-bio-8080"] //July 23, 2019 4:16:09 PM org.apache.coyote.AbstractProtocol start //Information: Starting ProtocolHandler ["ajp-bio-8009"] //July 23, 2019 4:16:09 PM org.apache.catalina.startup.Catalina start //Information: Server startup in 51935 ms
Test:
Input: http://172.20.10.4:8080/dubbo-admin-2.5.4-jdk1.8/
Prompt for administrator account password
You can see the published services
If you are not on the same server, you need to modify the configuration file
/root/apache-tomcat-7.0.47/webapps/dubbo-admin/WEB-INF/dubbo.properties