Skip to content

Commit

Permalink
增加README说明
Browse files Browse the repository at this point in the history
git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@708 1a56cb94-b969-4eaa-88fa-be21384802f2
  • Loading branch information
william.liangf committed Dec 22, 2011
1 parent a782499 commit 72021c6
Showing 1 changed file with 72 additions and 65 deletions.
137 changes: 72 additions & 65 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,99 +3,106 @@
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
export PATH=$PATH:apache-maven-2.2.1/bin
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
cd 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 -> Import -> Exsiting Projects to Workspace -> Browse -> Finish
Eclipse -> Menu -> File -> Import -> Exsiting Projects to Workspace -> Browse -> Finish

4. Install the demo provider:

cd dubbo-demo-provider/target
tar zxvf dubbo-demo-provider-2.0.10-assembly.tar.gz
cd dubbo-demo-provider-2.0.10/bin
./start.sh
cd ~/dubbo/dubbo-demo-provider/target
tar zxvf dubbo-demo-provider-2.0.10-assembly.tar.gz
cd dubbo-demo-provider-2.0.10/bin
./start.sh

5. Install the demo consumer:

cd dubbo-demo-consumer/target
tar zxvf dubbo-demo-consumer-2.0.10-assembly.tar.gz
cd dubbo-demo-consumer-2.0.10/bin
./start.sh
tail -f ../logs/stdout.log
cd ~/dubbo/dubbo-demo-consumer/target
tar zxvf dubbo-demo-consumer-2.0.10-assembly.tar.gz
cd dubbo-demo-consumer-2.0.10/bin
./start.sh
cd ../logs
tail -f stdout.log

6. Install the simple monitor:

cd dubbo-simple-monitor/target
tar zxvf dubbo-simple-monitor-2.0.10-assembly.tar.gz
cd dubbo-simple-monitor-2.0.10/bin
./start.sh
http://127.0.0.1:8080
cd ~/dubbo/dubbo-simple-monitor/target
tar zxvf dubbo-simple-monitor-2.0.10-assembly.tar.gz
cd dubbo-simple-monitor-2.0.10/bin
./start.sh
http://127.0.0.1:8080

7. Install the simple registry:

cd dubbo-simple-registry/target
tar zxvf dubbo-simple-registry-2.0.10-assembly.tar.gz
cd dubbo-simple-registry-2.0.10/bin
./start.sh

cd dubbo-demo-provider/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh

cd dubbo-demo-consumer/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh

cd dubbo-simple-monitor/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=dubbo://127.0.0.1:9090
cd ../bin
./restart.sh
cd ~/dubbo/dubbo-simple-registry/target
tar zxvf dubbo-simple-registry-2.0.10-assembly.tar.gz
cd dubbo-simple-registry-2.0.10/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:

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-demo-provider/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh

cd dubbo-demo-consumer/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh

cd dubbo-simple-monitor/conf
vi dubbo.properties
- edit: dubbo.registry.adddress=zookeeper://127.0.0.1:2181
cd ../bin
./restart.sh
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

0 comments on commit 72021c6

Please sign in to comment.