Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
b804c710
Commit
b804c710
authored
5 years ago
by
fangyincheng
Browse files
Options
Downloads
Patches
Plain Diff
Add:add examples/README.md
parent
71767f3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/README.md
+70
-0
70 additions, 0 deletions
examples/README.md
with
70 additions
and
0 deletions
examples/README.md
0 → 100644
+
70
−
0
View file @
b804c710
# examples
Examples of go-for-apache-dubbo
## dubbo
#### Build by these command
java server
```
bash
cd
dubbo/java-server
sh build.sh
```
java client
```
bash
cd
dubbo/java-client
sh build.sh
```
go server
```
bash
cd
dubbo/go-server
#linux, mac windows represent the os
#release, dev and test represent the environment
sh ./assembly/linux/release.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
```
#### Run by these command:
java server
```
bash
cd
dubbo/java-server/target
tar
-zxvf
user-info-server-0.2.0-assembly.tar.gz
cd
./user-info-server-0.2.0
sh ./bin/server.sh start
```
java client
```
bash
cd
dubbo/java-client/target
tar
-zxvf
user-info-client-0.2.0-assembly.tar.gz
cd
./user-info-client-0.2.0
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
sh ./bin/load.sh start
```
go client
```
bash
cd
dubbo/go-client/target/linux/user_info_client-0.3.1-20190517-0921-release
sh ./bin/load_user_info_client.sh start
```
## jsonrpc
Similar to dubbo
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment