Skip to content

Commit

Permalink
Merge pull request shuzheng#54 from ssuupper/master
Browse files Browse the repository at this point in the history
各个服务器从127.0.0.1改为dbserver,rdserver,zkserver,mqserver
  • Loading branch information
shuzheng authored Jul 4, 2017
2 parents 0d29e63 + c62fbb8 commit c28bb34
Show file tree
Hide file tree
Showing 55 changed files with 88 additions and 84 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ Spring+SpringMVC+Mybatis框架集成公共模块,包括公共配置、MybatisG
- 127.0.0.1 api.zhangshuzheng.cn
- 127.0.0.1 oss.zhangshuzheng.cn

- 127.0.0.1   zkserver
- 127.0.0.1   rdserver
- 127.0.0.1   dbserver
- 127.0.0.1   mqserver
### 编译流程

maven编译安装zheng/pom.xml文件即可
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">

<dubbo:registry file="./zheng-api-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-api-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-api-rpc-service"/>

<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry address="zookeeper://zkserver:2181"/>

<dubbo:protocol name="dubbo" port="20880"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-api-server"/>

<dubbo:registry file="./zheng-api-server-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-api-server-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-api-server
profile.env=dev

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-api-server
profile.env=prod

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-api-server
profile.env=test

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-cms-admin"/>

<dubbo:registry file="./zheng-cms-admin-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-cms-admin-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-cms-admin
profile.env=dev

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -11,7 +11,7 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-cms-admin
profile.env=prod

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -11,7 +11,7 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ app.name=zheng-cms-admin
profile.env=test

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -11,7 +11,7 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)

##### zheng-admin #####
zheng.admin.version=1.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
generator.jdbc.driver=com.mysql.jdbc.Driver
generator.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
generator.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
generator.jdbc.username=root
generator.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-cms-job"/>

<dubbo:registry file="./zheng-cms-job-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-cms-job-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ app.name=zheng-cms-job
profile.env=dev

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ app.name=zheng-cms-job
profile.env=prod

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ app.name=zheng-cms-job
profile.env=test

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#dubbo.application.name=zheng-cms-rpc-service
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=zookeeper://zkserver:2181
#dubbo.protocol.port=20882
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-cms-rpc-service"/>

<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry address="zookeeper://zkserver:2181"/>

<dubbo:protocol name="dubbo" port="20882"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ profile.env=dev

##### jdbc #####
datasource.master.jdbc.driver=com.mysql.jdbc.Driver
datasource.master.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.username=root
datasource.master.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
datasource.slave.jdbc.driver=com.mysql.jdbc.Driver
datasource.slave.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.username=root
datasource.slave.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ profile.env=prod

##### jdbc #####
datasource.master.jdbc.driver=com.mysql.jdbc.Driver
datasource.master.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.username=root
datasource.master.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
datasource.slave.jdbc.driver=com.mysql.jdbc.Driver
datasource.slave.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.username=root
datasource.slave.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ profile.env=test

##### jdbc #####
datasource.master.jdbc.driver=com.mysql.jdbc.Driver
datasource.master.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.username=root
datasource.master.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
datasource.slave.jdbc.driver=com.mysql.jdbc.Driver
datasource.slave.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.username=root
datasource.slave.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-cms-search"/>

<dubbo:registry file="./zheng-cms-search-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-cms-search-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-cms-web"/>

<dubbo:registry file="./zheng-cms-web-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-cms-web-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=dev
zheng.ui.path=http://ui.zhangshuzheng.cn:1000/

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -12,4 +12,4 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=prod
zheng.ui.path=http://ui.zhangshuzheng.cn:1000/

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -12,4 +12,4 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=test
zheng.ui.path=http://ui.zhangshuzheng.cn:1000/

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand All @@ -12,4 +12,4 @@ master.redis.max_wait=10000
master.redis.timeout=10000

##### activeMq #####
AvtiveMQ.brokerURL=failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0)
AvtiveMQ.brokerURL=failover:(tcp://mqserver:61616?wireFormat.maxInactivityDuration=0)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#dubbo.application.name=zheng-pay-rpc-service
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=zookeeper://zkserver:2181
#dubbo.protocol.port=20883
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-demo-web"/>

<dubbo:registry file="./zheng-demo-web-dubbo.cache" address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry file="./zheng-demo-web-dubbo.cache" address="zookeeper://zkserver:2181"/>

<!-- 订阅服务 -->
<dubbo:consumer check="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=dev
zheng.admin.version=1.0.0

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=prod
zheng.admin.version=1.0.0

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ profile.env=test
zheng.admin.version=1.0.0

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
generator.jdbc.driver=com.mysql.jdbc.Driver
generator.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
generator.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
generator.jdbc.username=root
generator.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#dubbo.application.name=zheng-pay-rpc-service
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=zookeeper://zkserver:2181
#dubbo.protocol.port=20883
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<dubbo:application name="zheng-pay-rpc-service"/>

<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<dubbo:registry address="zookeeper://zkserver:2181"/>

<dubbo:protocol name="dubbo" port="20883"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ profile.env=dev

##### jdbc #####
datasource.master.jdbc.driver=com.mysql.jdbc.Driver
datasource.master.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.master.jdbc.username=root
datasource.master.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==
datasource.slave.jdbc.driver=com.mysql.jdbc.Driver
datasource.slave.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.url=jdbc\:mysql\://dbserver\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
datasource.slave.jdbc.username=root
datasource.slave.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g==

##### redis #####
master.redis.ip=127.0.0.1
master.redis.ip=rdserver
master.redis.port=6379
master.redis.password=FNFl9F2O2Skb8yoKM0jhHA==
master.redis.max_active=500
Expand Down
Loading

0 comments on commit c28bb34

Please sign in to comment.