Commit 6dc995dd authored by alexstocks's avatar alexstocks

modify readme

parent c668b44c
......@@ -10,21 +10,21 @@ Apache License 2.0
---
*getty examples是基于getty的实现的代码示例*
> dubbogo-examples借鉴java的编译思路,提供了区别于一般的go程序的而类似于java的独特的编译脚本系统。
> getty-examples借鉴java的编译思路,提供了区别于一般的go程序的而类似于java的独特的编译脚本系统。
### dubogo example1: echo ###
### getty example1: tcp-echo ###
---
*这个程序是为了给出代码示例以及执行压力测试*
> 1 部署zookeeper服务;
>
> 2 请部署 https://github.com/QianmiOpen/dubbo-rpc-jsonrpc 服务端,如果你不想编译,可以使用我编译好的 dubbogo-examples/user-info/java-server/dubbo_jsonrpc_example.bz2,注意修改zk地址;
>
> 3 修改dubbogo-examples/user-info/client/profiles/test/client.toml:line 33,写入正确的zk地址;
>
> 4 dubbogo-examples/user-info/client/下执行 sh assembly/windows/test.sh命令(linux下请执行sh assembly/linux/test.sh),然后target/windows下即放置好了编译好的程序以及打包结果,在dubbogo-examples\user-info\client\target\windows\user_info_client-0.1.0-20160818-1346-test下执行sh bin/load.sh start命令即可客户端程序;
>
> 5 修改dubbogo-examples/user-info/server/profiles/test/server.toml:line 21,写入正确的zk地址;
>
> 6 dubbogo-examples/user-info/server/下执行 sh assembly/windows/test.sh命令(linux下请执行sh assembly/linux/test.sh),然后target/windows下即放置好了编译好的程序以及打包结果,在dubbogo-examples\user-info\server\target\windows\user_info_server-0.1.0-xxxx下执行sh bin/load.sh start命令即可服务端程序;
>
This example shows a simple tcp client and server.
The server echoes messages sent to it. The client sends messages to the echo server
and prints all messages received.
To run the example, start the server:
$ cd tcp-echo/server/ && sh assembly/linux/test.sh && cd target/linux/echo_server-0.3.07-20161009-1632-test/ && sh bin/load.sh start
Next, start the client:
$ cd tcp-echo/client/ && sh assembly/linux/test.sh && cd target/linux/echo_client-0.3.07-20161009-1634-test/ && sh bin/load.sh start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment