-
Notifications
You must be signed in to change notification settings - Fork 26.5k
/
Copy pathREADME
108 lines (84 loc) · 2.85 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
0. Install the subversion and maven command line:
yum install subversion
or: apt-get install subversion
cd ~
wget http://www.apache.org/dist//maven/binaries/apache-maven-2.2.1-bin.tar.gz
tar zxvf apache-maven-2.2.1-bin.tar.gz
vi .bash_profile
- edit: export PATH=$PATH:~/apache-maven-2.2.1/bin
source .bash_profile
1. Checkout the dubbo source code:
cd ~
svn co http://code.alibabatech.com/svn/dubbo/trunk dubbo
2. Build the dubbo binary package:
cd ~/dubbo
mvn clean install -Dmaven.test.skip
cd dubbo/target
ls
3. Import the dubbo source code to eclipse project:
cd ~/dubbo
mvn eclipse:eclipse
Eclipse -> Menu -> File -> Import -> Exsiting Projects to Workspace -> Browse -> Finish
4. Install the demo provider:
cd ~/dubbo/dubbo-demo-provider/target
tar zxvf dubbo-demo-provider-2.1.0-SNAPSHOT-assembly.tar.gz
cd dubbo-demo-provider-2.1.0-SNAPSHOT/bin
./start.sh
5. Install the demo consumer:
cd ~/dubbo/dubbo-demo-consumer/target
tar zxvf dubbo-demo-consumer-2.1.0-SNAPSHOT-assembly.tar.gz
cd dubbo-demo-consumer-2.1.0-SNAPSHOT/bin
./start.sh
cd ../logs
tail -f stdout.log
6. Install the simple monitor:
cd ~/dubbo/dubbo-simple-monitor/target
tar zxvf dubbo-simple-monitor-2.1.0-SNAPSHOT-assembly.tar.gz
cd dubbo-simple-monitor-2.1.0-SNAPSHOT/bin
./start.sh
http://127.0.0.1:8080
7. Install the simple registry:
cd ~/dubbo/dubbo-simple-registry/target
tar zxvf dubbo-simple-registry-2.1.0-SNAPSHOT-assembly.tar.gz
cd dubbo-simple-registry-2.1.0-SNAPSHOT/bin
./start.sh
cd ~/dubbo/dubbo-demo-provider/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh
cd ~/dubbo/dubbo-demo-consumer/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh
cd ~/dubbo/dubbo-simple-monitor/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh
8. Install the zookeeper registry:
cd ~
wget http://www.apache.org/dist//zookeeper/zookeeper-3.3.3/zookeeper-3.3.3.tar.gz
tar zxvf zookeeper-3.3.3.tar.gz
cd zookeeper-3.3.3/conf
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
- edit: dataDir=/home/xxx/data
cd ../bin
./zkServer.sh start
cd ~/dubbo/dubbo-demo-provider/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh
cd ~/dubbo/dubbo-demo-consumer/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh
cd ~/dubbo/dubbo-simple-monitor/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh