Skip to content
Snippets Groups Projects
Commit 22b31aee authored by fangyincheng's avatar fangyincheng
Browse files

Mod:modify examples/README.md, fix issue #79

parent 84e5f225
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ func init() {
logConfFile := os.Getenv(constant.APP_LOG_CONF_FILE)
err := InitLog(logConfFile)
if err != nil {
log.Printf("[InitLog] error: %v", err)
log.Printf("[InitLog] warn: %v", err)
}
}
......
......@@ -19,19 +19,19 @@ sh build.sh
```
go server
* sh ./assembly/\[os]/\[environment].sh
```bash
cd dubbo/go-server
#linux, mac windows represent the os
#release, dev and test represent the environment
sh ./assembly/linux/release.sh
# $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
sh ./assembly/$ARCH/$ENV.sh
```
go client
```bash
cd dubbo/go-client
#linux, mac windows represent the os
#release, dev and test represent the environment
sh ./assembly/linux/release.sh
# $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
sh ./assembly/$ARCH/$ENV.sh
```
#### Run by these command:
......@@ -53,8 +53,6 @@ sh ./bin/server.sh start
```
go server
> It must not listen on IP 127.0.0.1 when called by java-client.
> You should change IP in dubbo/go-server/target/linux/user_info_server-0.3.1-20190517-0930-release/conf/server.yml
```bash
cd dubbo/go-server/target/linux/user_info_server-0.3.1-20190517-0930-release
#conf suffix appoint config file,
......@@ -66,10 +64,10 @@ sh ./bin/load.sh start [conf suffix]
go client
```bash
cd dubbo/go-client/target/linux/user_info_client-0.3.1-20190517-0921-release
#conf suffix appoint config file,
#such as client_zookeeper.yml when "sh ./bin/load.sh start is zookeeper",
#default client.yml
sh ./bin/load_user_info_client.sh start [conf suffix]
# $SUFFIX is a suffix of config file,
# such as client_zookeeper.yml when $SUFFIX = zookeeper",
# if $SUFFIX = "", config file is client.yml
sh ./bin/load_user_info_client.sh start $SUFFIX
```
## jsonrpc
......
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