需要安装tomcat,然后部署监控中心即可。
如果监控中心和注册中心在同一台服务器上,可以不需要任何配置。
第一步: 先在linux 安装tomcat
第二步:解压
第三步:导入dubbo-admin-2.5.4.war 注册中心文件,如果找不到,可以私信我
第四步:将dubbo-admin-2.5.4.war 复制到tomcat 的 webapps文件夹中
image.png
[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
然后开启tomcat
image.png
[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]#
查看tomcat 是否启动成功 访问控制台
image.png
[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: 未找到命令...
[root@camel apache-tomcat-7.0.47]# tail -f logs/catalina.out
七月 23, 2019 4:16:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /app/apache-tomcat-7.0.47/webapps/host-manager
七月 23, 2019 4:16:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /app/apache-tomcat-7.0.47/webapps/manager
七月 23, 2019 4:16:09 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
七月 23, 2019 4:16:09 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
七月 23, 2019 4:16:09 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 51935 ms
测试:
输入:http://172.20.10.4:8080/dubbo-admin-2.5.4-jdk1.8/
提示输入 管理员 账号密码
image.png image.png可以看到发布的服务
image.png image.png image.png如果不在同一台服务器,需要修改配置文件
/root/apache-tomcat-7.0.47/webapps/dubbo-admin/WEB-INF/dubbo.properties
image.png
网友评论