zoukankan      html  css  js  c++  java
  • windows10 搭建Dubbo

    1、官方文档

             http://dubbo.apache.org/zh-cn/docs/admin/ops/dubbo-ops.html

    2、下载安装包

              https://mirrors.cnnic.cn/apache/zookeeper/                   https://tomcat.apache.org/download-70.cgi

    3、需要安装一个tomcat,一个zookeeper

    4、安装,解压在同一个文件中

              

    5、修改tomcat(由于当前本机是第二个tomcat,所以配置如下)

    • 修改http的访问端口

      http的访问端口默认为8080,因为是多个,所以修改如下:

    1 <Connector port="8082" URIEncoding="utf-8" protocol="HTTP/1.1"
    2                connectionTimeout="20000"
    3                redirectPort="8443" />
    View Code
    • 修改JVM启动端口

      JVM的启动端口号默认为8009,此时端口号改为如下:

    1 <Connector port="8029" protocol="AJP/1.3" redirectPort="8443" />
    View Code
    • 修改Shutdown端口

      Shutdown是关闭Tomcat时默认启动的端口,该端口号为8005,将其修改为如下:

    1 <Server port="8025" shutdown="SHUTDOWN">
    View Code

    6、修改启动文件(startup.bat 路径:C:dubboapache-tomcat-8.5.31instartup.bat)

     1 @echo off
     2 rem Licensed to the Apache Software Foundation (ASF) under one or more
     3 rem contributor license agreements.  See the NOTICE file distributed with
     4 rem this work for additional information regarding copyright ownership.
     5 rem The ASF licenses this file to You under the Apache License, Version 2.0
     6 rem (the "License"); you may not use this file except in compliance with
     7 rem the License.  You may obtain a copy of the License at
     8 rem
     9 rem     http://www.apache.org/licenses/LICENSE-2.0
    10 rem
    11 rem Unless required by applicable law or agreed to in writing, software
    12 rem distributed under the License is distributed on an "AS IS" BASIS,
    13 rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14 rem See the License for the specific language governing permissions and
    15 rem limitations under the License.
    16 
    17 rem ---------------------------------------------------------------------------
    18 rem Start script for the CATALINA Server
    19 rem ---------------------------------------------------------------------------
    20 
    21 set JAVA_HOME=C:/Program Files/Java/jdk1.7/jdk1.7.0_17
    22 set CATALINA_HOME=C:/dubbo/apache-tomcat-8.5.31
    23 
    24 setlocal
    25 
    26 rem Guess CATALINA_HOME if not defined
    27 set "CURRENT_DIR=%cd%"
    28 if not "%CATALINA_HOME%" == "" goto gotHome
    29 set "CATALINA_HOME=%CURRENT_DIR%"
    30 if exist "%CATALINA_HOME%incatalina.bat" goto okHome
    31 cd ..
    32 set "CATALINA_HOME=%cd%"
    33 cd "%CURRENT_DIR%"
    34 :gotHome
    35 if exist "%CATALINA_HOME%incatalina.bat" goto okHome
    36 echo The CATALINA_HOME environment variable is not defined correctly
    37 echo This environment variable is needed to run this program
    38 goto end
    39 :okHome
    40 
    41 set "EXECUTABLE=%CATALINA_HOME%incatalina.bat"
    42 
    43 rem Check that target executable exists
    44 if exist "%EXECUTABLE%" goto okExec
    45 echo Cannot find "%EXECUTABLE%"
    46 echo This file is needed to run this program
    47 goto end
    48 :okExec
    49 
    50 rem Get remaining unshifted command line arguments and save them in the
    51 set CMD_LINE_ARGS=
    52 :setArgs
    53 if ""%1""=="""" goto doneSetArgs
    54 set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    55 shift
    56 goto setArgs
    57 :doneSetArgs
    58 
    59 call "%EXECUTABLE%" start %CMD_LINE_ARGS%
    60 
    61 :end
    View Code

    7、下载dubbo-admin-2.5.3,修改名称为Root

    放入webapps文件夹下,启动zkServer.cmd,启动tomcat

       

    8、访问:http://localhost:8081

           输入账户:root

               密码   :  root

    9、更多内容

          http://dubbo.apache.org/zh-cn/docs/admin/ops/dubbo-ops.html.

         https://github.com/apache/incubator-dubbo

  • 相关阅读:
    elasticsearch 安装,以及遇到的问题总结
    Linux/unix 查看端口占用
    openresty 安装
    Hadoop 系列文章(三) 配置部署启动YARN及在YARN上运行MapReduce程序
    Hadoop 系列文章(二) Hadoop配置部署启动HDFS及本地模式运行MapReduce
    Hadoop 系列文章(一) Hadoop 的安装,以及 Standalone Operation 的启动模式测试
    Linux 防火墙相关
    Linux 修改默认的 yum 源
    普通用户开放 sudo 权限
    大数据所有环境变量
  • 原文地址:https://www.cnblogs.com/liuyangfirst/p/9475191.html
Copyright © 2011-2022 走看看