1 Star 0 Fork 0

walter / learn-Motan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

learn-Motan

介绍

新浪微博开源框架Motan源码学习笔记---macOS

软件架构

软件架构说明

安装教程

1.  ~/Downloads/GitHub/quickstart/server/src/main/java/quickstart/Server.java
public static void main(String[] args) throws InterruptedException {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:motan_server.xml");
        System.out.println("server start...");
    }

~/Downloads/GitHub/quickstart/client/src/main/java/quickstart/Client.java
public static void main(String[] args) throws InterruptedException {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:motan_client.xml");
        quickstart.FooService service = (quickstart.FooService) ctx.getBean("remoteService");
        System.out.println(service.hello("motan"));
    }

管理后台安装
/Users/wolingzong/soft/zookeeper/apache-zookeeper-3.5.6-bin/bin/zkServer.sh start

在 motan/motan-manager/ 下执行 mvn package, 然后 java -jar target/motan-manager.jar
http://localhost:8080/
管理员:用户名admin 密码admin


wget http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
tar zxvf zookeeper-3.4.8.tar.gz

cd zookeeper-3.4.8/conf/
cp zoo_sample.cfg zoo.cfg

cd ../
sh bin/zkServer.sh start


# 这里以linux为例
wget https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip
unzip consul_0.6.4_linux_amd64.zip
sudo mv consul /bin

启动(官方文档)
测试环境启动:
consul agent -dev
ui后台 http://localhost:8500/ui

空文件

简介

新浪微博开源框架Motan源码学习笔记---macOS 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/walter80/learn-Motan.git
git@gitee.com:walter80/learn-Motan.git
walter80
learn-Motan
learn-Motan
master

搜索帮助