Dubbo-admin管理平台的安装及设置开机启动tomcat

1.下载dubbo-admin-2.6.0.war安装包

地址:http://www.java1234.com/a/javabook/javaweb/2018/0224/10496.html

2.然后把dubbo-admin-2.6.0.war拷贝到tomcat的webapps目录下

cp dubbo-admin-2.6.0.war /opt/tomcat/apache-tomcat-8.5.24/webapps/dubbo.war

Dubbo-admin管理平台的安装及设置开机启动tomcat_第1张图片

3.设置开机启动tomcat

vim /etc/init.d/dubbo-admin

4.复制如下脚本

#!/bin/bash
#chkconfig:2345 20 90
#description:dubbo-admin
#processname:dubbo-admin
CATALANA_HOME=/opt/tomcat/apache-tomcat-8.5.50/ #根据自己的路径设置
export JAVA_HOME=/opt/java/jdk1.8.0_221/        #根据自己的路径设置
case $1 in
start)  
    echo "Starting Tomcat..."  
    $CATALANA_HOME/bin/startup.sh  
    ;;  
  
stop)  
    echo "Stopping Tomcat..."  
    $CATALANA_HOME/bin/shutdown.sh  
    ;;  
  
restart)  
    echo "Stopping Tomcat..."  
    $CATALANA_HOME/bin/shutdown.sh  
    sleep 2  
    echo  
    echo "Starting Tomcat..."  
    $CATALANA_HOME/bin/startup.sh  
    ;;  
*)  
    echo "Usage: tomcat {start|stop|restart}"  
    ;; esac

5.注册进入到服务中

chkconfig --add dubbo-admin

6.加入权限

 chmod +x dubbo-admin

7.启动服务

service dubbo-admin start

8.启动后用浏览器访问http://IP:8080/dubbo/,第一次登陆需要密码,默认是root/root

Dubbo-admin管理平台的安装及设置开机启动tomcat_第2张图片

你可能感兴趣的:(Dubbo-admin管理平台的安装及设置开机启动tomcat)