{"id":376,"date":"2023-09-16T10:57:13","date_gmt":"2023-09-16T02:57:13","guid":{"rendered":""},"modified":"2023-09-16T10:57:13","modified_gmt":"2023-09-16T02:57:13","slug":"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72","status":"publish","type":"post","link":"https:\/\/mushiming.com\/376.html","title":{"rendered":"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

1\u3001\u5206\u5e03\u5f0f\u90e8\u7f72\u9700\u8981\u4e8b\u5148\u786e\u5b9a\u90e8\u7f72\u7684\u73af\u5883\u4ee5\u53ca\u90e8\u7f72\u65b9\u5f0f\uff0cApollo\u76ee\u524d\u652f\u6301\u4ee5\u4e0b\u73af\u5883<\/font>
\uff081\uff09\u81ea\u5b9a\u4e49\u73af\u5883<\/font>
          \u53ef\u4ee5\u7406\u89e3\u4e3a\u81ea\u5df1\u672c\u5730\u7684\u6d4b\u8bd5\u73af\u5883<\/p>\n

\uff082\uff09DEV<\/font>
          \u53ef\u4ee5\u7406\u89e3\u4e3a\u5f00\u53d1\u73af\u5883<\/p>\n

\uff083\uff09FAT<\/font>
          \u53ef\u4ee5\u7406\u89e3\u4e3a\u6d4b\u8bd5\u73af\u5883\uff0c\u76f8\u5f53\u4e8ealpha\u73af\u5883\uff08\u529f\u80fd\u6d4b\u8bd5\uff09<\/p>\n

\uff084\uff09UAT<\/font>
          \u53ef\u4ee5\u7406\u89e3\u4e3a\u96c6\u6210\u73af\u5883\uff0c\u76f8\u5f53\u4e8ebeta\u73af\u5883\uff08\u56de\u5f52\u6d4b\u8bd5\uff09<\/p>\n

\uff085\uff09PRO<\/font>
          \u53ef\u4ee5\u7406\u89e3\u4e3a\u751f\u4ea7\u73af\u5883<\/p>\n

2\u3001\u56fe\u89e3\u5206\u5e03\u5f0f\u90e8\u7f72<\/font>
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72<\/p>\n

3\u3001\u65b9\u6848<\/font>
          \u5177\u4f53\u90e8\u7f72\u65b9\u6848\uff0c\u9700\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8c03\u6574
\uff081\uff09Portal\u90e8\u7f72\u5728\u751f\u4ea7\u73af\u5883\uff0c\u76f8\u5f53\u4e8eweb\u7aef\uff0c\u901a\u8fc7\u5b83\u6765\u76f4\u63a5\u7ba1\u7406\u591a\u4e2a\u73af\u5883<\/font>
          apollo-portal\u662f\u914d\u7f6e\u7684\u7ba1\u7406\u7aef\uff0c\u53ef\u4ee5\u7edf\u4e00\u7ba1\u7406\u591a\u5957\u73af\u5883\u7684\u914d\u7f6e\uff08apollo\u8282\u70b9\uff09\u3002\u4e5f\u53ef\u4ee5\u6bcf\u5957\u73af\u5883\u72ec\u7acb\u90e8\u7f72\u4e00\u4e2aapollo-portal\uff0c\u53ea\u7ba1\u7406\u8be5\u73af\u5883\u7684\u914d\u7f6e\uff08apollo\u8282\u70b9\uff09\u3002
          apollo-portal\u9700\u8981\u8bbf\u95eeApolloPortalDB\u6570\u636e\u5e93\u3002<\/p>\n

\uff082\uff09Config Service\u548cAdmin Service\u5728\u6bcf\u4e2a\u73af\u5883\u90fd\u5355\u72ec\u90e8\u7f72\uff0c\u4f7f\u7528\u72ec\u7acb\u7684\u6570\u636e\u5e93<\/font>
          \u6bcf\u4e2a\u8282\u70b9\u90e8\u7f72\u4e00\u4e2aapollo-configservice\u548capollo-adminservice
          \u6bcf\u5957\u73af\u5883\u53ef\u4ee5\u90e8\u7f72\u591a\u4e2a\u8282\u70b9\uff0c\u5efa\u8bae\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u4e24\u4e2a\u4ee5\u4e0a\u7684\u8282\u70b9\u3002\u5f00\u53d1\u73af\u5883\u7684\u8282\u70b9\u4e2a\u6570\u53ef\u81ea\u884c\u51b3\u5b9a\uff0c\u53ef\u4ee5\u53ea\u90e8\u7f72\u4e00\u4e2a\u8282\u70b9\u3002
          \u6bcf\u5957\u73af\u5883\u9700\u8981\u6709\u4e00\u4e2a\u72ec\u7acb\u7684ApolloConfigDB\u6570\u636e\u5e93\uff0c\u540c\u4e00\u5957\u73af\u5883\u7684apollo-configservice\u548capollo-configservice\u8bbf\u95ee\u540c\u4e00\u4e2aApolloConfigDB\u6570\u636e\u5e93\u3002<\/p>\n

4\u3001\u670d\u52a1\u5668\u51c6\u5907<\/font>
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72<\/p>\n

5\u3001apollo\u4f9d\u8d56\u5b89\u88c5<\/font>
\uff081\uff09\u6839\u636e\u6211\u4eec\u89c4\u5212\u7684\u73af\u5883\u53bb\u9010\u4e00\u5b89\u88c5jdk\u73af\u5883<\/font>
# jdk\u7248\u672c\uff1a1.8.0_211<\/font>
# \u5b89\u88c5\u7565\u3002\u82e5\u9700\u5b89\u88c5\u8bf7\u770bjdk\u5b89\u88c5\u6587\u6863<\/font>
# \u5206\u5e03\u5f0f\u4e2d\u6bcf\u53f0\u670d\u52a1\u5668\u90fd\u8981\u6709JDK\u73af\u5883<\/font><\/p>\n

\uff082\uff09\u6839\u636e\u6211\u4eec\u89c4\u5212\u7684\u73af\u5883\u53bb\u9010\u4e00\u5b89\u88c5mysql\u73af\u5883<\/font>
# mysql\u7248\u672c\uff1a5.7.30<\/font>
# \u5b89\u88c5\u7565\u3002\u82e5\u9700\u5b89\u88c5\u8bf7\u770bmysql\u5b89\u88c5\u6587\u6863<\/font>
# \u6ce8\u610f\uff1a\u751f\u4ea7\u73af\u5883\u4e0b\u6570\u636e\u5bc6\u7801\u5f04\u4e2a\u590d\u6742\u70b9\uff0c\u6211\u8fd9\u53ea\u662f\u5728\u672c\u5730\u6d4b\u8bd5\u7528<\/font><\/p>\n

# \u90e8\u7f72mysql\u7684\u670d\u52a1\u5668\uff08\u603b\u51715\u53f0\uff09<\/font>
          192.168.35.102
          192.168.35.108
          192.168.35.118
          192.168.35.128
          192.168.35.138<\/p>\n

# \u6bcf\u53f0\u6570\u636e\u5e93\u90fd\u65b0\u589emysql\u7528\u6237\uff0c\u7528\u4e8eapollo\u8fde\u63a5\u4f7f\u7528<\/font>
          mysql -uroot -p\u2019root\u7528\u6237\u5bc6\u7801\u2019
          create user \u2018apollo\u2019@\u2019%\u2019 identified by \u2018apollo123\u2019;
          grant all privileges on .<\/em> to \u2018apollo\u2019@\u2019%\u2019 identified by \u2018apollo123\u2019;
          flush privileges;<\/p>\n

6\u3001\u521b\u5efa\u6570\u636e\u5e93\u5e76\u5bfc\u5165\u6570\u636e<\/font>
\uff081\uff09\u521b\u5efa \u201cApolloConfigDB\u201d\uff0c\u7528\u4e8eapollo-configserver\u670d\u52a1\u4f7f\u7528\u5e93<\/font>
# \u521b\u5efa\u6570\u636e\u5e93\u5e76\u5bfc\u5165ApolloConfigDB.sql\u6587\u4ef6\uff0c\u670d\u52a1\u5668\u73af\u5883\u90fd\u6709\u5982\u4e0b\uff0c\u8fd9\u4e9b\u670d\u52a1\u5668\u90fd\u9700\u8981\u6267\u884c\u5982\u4e0b\u64cd\u4f5c<\/font>
          192.168.35.108
          192.168.35.118
          192.168.35.128
          192.168.35.138<\/p>\n

\uff082\uff09\u5728\u6bcf\u5957\u73af\u5883\u4e2d\u90fd\u521b\u5efa\u4e00\u4e2aApolloConfigDB\u6570\u636e\u5e93<\/font>
          mysql -uapollo -p\u2019root123\u2019
          CREATE DATABASE ApolloConfigDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<\/p>\n

\uff083\uff09\u5bfc\u5165ApolloConfigDB.sql\u6587\u4ef6<\/font>
# \u4e0a\u4f20sql\u6587\u4ef6\u5230\/data\/opt\/scripts\/<\/font>
# \u8981\u8fdb\u5165ApolloConfigDB\u5e93\u6267\u884csql\u6587\u4ef6<\/font>
          mysql -uapollo -p\u2019root123\u2019
          use ApolloConfigDB;
          source \/data\/opt\/scripts\/apolloconfigdb.sql<\/p>\n

\uff084\uff09\u8c03\u6574ApolloConfigDB.ServerConfig\u8868\u7684\u6570\u636e<\/font>
# configservice\u548cadminservice\u90e8\u7f72\u5728\u540c\u4e00\u53f0\u673a\u5668\uff0c\u5e76\u5f53\u524d\u73af\u5883\u53ea\u6709\u4e00\u4e2a\u8282\u70b9\u65f6\uff0c\u5219\u53ef\u4ee5\u8df3\u8fc7\u6b64\u6b65\u9aa4<\/font>
# configservice\u548cadminservice\u90e8\u7f72\u4e0d\u5728\u540c\u4e00\u53f0\u673a\u5668\uff0c\u5e76\u5f53\u524d\u73af\u5883\u53ea\u6709\u4e00\u4e2a\u8282\u70b9\u65f6\uff0c\u9700\u8981\u4fee\u6539eureka.service.url\u503c\u4e3a\u5f53\u524d\u73af\u5883\u7684apollo-configservice\u7684\u5730\u5740\u4e0e\u7aef\u53e3\uff0c\u6ce8\u610f\u591a\u4e2a\u5730\u5740\u4e4b\u95f4\u7528\u82f1\u6587\u9017\u53f7\u9694\u5f00<\/font>
# configservice\u548cadminservice\u90e8\u7f72\u4e0d\u5728\u540c\u4e00\u53f0\u673a\u5668\uff0c\u5e76\u5f53\u524d\u73af\u5883\u6709\u591a\u4e2a\u8282\u70b9\u65f6\uff0c\u9700\u8981\u4fee\u6539eureka.service.url\u503c\u4e3a\u5f53\u524d\u73af\u5883\u7684apollo-configservice\u7684\u5730\u5740\u4e0e\u7aef\u53e3\uff0c\u6ce8\u610f\u591a\u4e2a\u5730\u5740\u4e4b\u95f4\u7528\u82f1\u6587\u9017\u53f7\u9694\u5f00<\/font><\/p>\n

# \u5728DEV\u73af\u5883\u4e2dApolloConfigDB.Serverconfig\u8868\u4e2d\u8bbe\u7f6eeureka.service.url\u4e3a<\/font>
          http:\/\/192.168.35.105:8080\/eureka\/,http:\/\/192.168.35.106:8080\/eureka\/<\/p>\n

# \u5728FAT\u73af\u5883\u4e2dApolloConfigDB.ServerConfig\u8868\u4e2d\u8bbe\u7f6eeureka.service.url\u4e3a<\/font>
          http:\/\/192.168.35.115:8080\/eureka\/,http:\/\/192.168.35.116:8080\/eureka\/<\/p>\n

# \u5728UAT\u73af\u5883\u4e2dApolloConfigDB.ServerConfig\u8868\u4e2d\u8bbe\u7f6eeureka.service.url\u4e3a<\/font>
          http:\/\/192.168.35.125:8080\/eureka\/,http:\/\/192.168.35.126:8080\/eureka\/<\/p>\n

# \u5728PRO\u73af\u5883\u4e2dApolloConfigDB.ServerConfig\u8868\u4e2d\u8bbe\u7f6eeureka.service.url\u4e3a<\/font>
          http:\/\/192.168.35.135:8080\/eureka\/,http:\/\/192.168.35.136:8080\/eureka\/<\/p>\n

\uff085\uff09\u521b\u5efa \u201cApolloPortalDB\u201d\uff0c\u7528\u4e8eapollo-portal\u670d\u52a1\u4f7f\u7528\u5e93<\/font>
# MySQL\u521b\u5efa\u6570\u636e\u5e93\u5e76\u8bbe\u7f6e\u5b57\u7b26\u96c6<\/font>
          mysql -uapollo -p\u2019root123\u2019
          CREATE DATABASE ApolloPortalDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<\/p>\n

\uff086\uff09\u521b\u5efa \u201cApolloPortalDB\u201d\uff0c\u7528\u4e8eapollo-portal\u670d\u52a1\u4f7f\u7528\u5e93<\/font>
# \u4e0a\u4f20sql\u6587\u4ef6\u5230\/data\/opt\/scripts\/<\/font>
# \u8981\u8fdb\u5165ApolloPortalDB \u5e93\u6267\u884csql\u6587\u4ef6<\/font>
          mysql -uapollo -p\u2019root123\u2019
          use ApolloPortalDB;
          source \/data\/opt\/scripts\/\/apolloportaldb.sql<\/p>\n

\uff087\uff09\u8c03\u6574ApolloPortalDB.ServerConfig\u8868\u7684\u6570\u636e<\/font>
# portal\u9ed8\u8ba4\u652f\u6301\u7684\u73af\u5883\u662fDEV\uff0c\u82e5\u9700\u8981\u5176\u5b83\u73af\u5883\uff0c\u9700\u8981\u4fee\u6539apollo.portal.envs\u7684\u503c\uff0c\u9ed8\u8ba4\u503c\u662fDEV\uff0c\u4fee\u6539\u4e3a\u4ee5\u4e0b\u503c\uff0c\u8868\u793a\u652f\u6301DEV\\FAT\\UAT\\PRO\u56db\u4e2a\u73af\u5883\uff0c\u6ce8\u610f\u6bcf\u4e2a\u73af\u5883\u503c\u4e4b\u95f4\u7528\u82f1\u6587\u9017\u53f7\u9694\u5f00<\/font>
# \u6ce8\u610f\uff1a\u53ea\u5728\u6570\u636e\u5e93\u6dfb\u52a0\u73af\u5883\u662f\u4e0d\u8d77\u4f5c\u7528\u7684\uff0c\u8fd8\u9700\u8981\u4e3aapollo-portal\u6dfb\u52a0\u65b0\u589e\u73af\u5883\u5bf9\u5e94\u7684meta server\u5730\u5740\uff0c\u5177\u4f53\u4f1a\u5728\u90e8\u7f72apollo-portal\u4e2d\u914d\u7f6e
DEV,FAT,UAT,PRO<\/font><\/p>\n

7\u3001\u90e8\u7f72apollo<\/font>
# \u6bcf\u5957\u73af\u5883\u90fd\u5b89\u88c5\u4e24\u4e2aapollo\u8282\u70b9\uff0c\u6bcf\u4e2aapollo\u8282\u70b9\u5305\u542b\u4e00\u4e2aapollo-configservice\u548capollo-adminservice<\/font>
# \u5b9e\u9645\u90e8\u7f72\u4e2d\uff0c\u53ef\u81ea\u884c\u51b3\u5b9aapollo\u8282\u70b9\u7684\u4e2a\u6570<\/font>
\uff081\uff09\u6839\u636e\u81ea\u5df1\u7684\u73af\u5883\u89e3\u538b\u5305<\/font>
# \u4e0b\u8f7d\u5b98\u65b9\u7f16\u8bd1\u597d\u7684\u4e0b\u8f7d\u5982\u4e0b\u4e09\u4e2a\u5305\uff0c\u7248\u672c\u770b\u6240\u9700\u7684\u73af\u5883<\/font>
# \u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/github.com\/ctripcorp\/apollo\/releases<\/font>
# \u4e0a\u4f20\u5230\/data\/opt\/apollo\/\u76ee\u5f55\u4e0b<\/font>
          apollo-build-scripts-master.zip
          apollo-configservice-1.1.1-github.zip
          apollo-portal-1.1.1-github.zip<\/p>\n

\uff082\uff09\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55<\/font>
          mkdir \/data\/opt\/apollo\/ -p ; cd \/data\/opt\/apollo\/
          mkdir apollo-adminservice ; unzip -d \/data\/opt\/apollo\/apollo-adminservice apollo-build-scripts-master.zip
          mkdir apollo-configservice ; unzip -d \/data\/opt\/apollo\/apollo-configservice apollo-configservice-1.1.1-github.zip
          mkdir apollo-portal ; unzip -d \/data\/opt\/apollo\/apollo-portal apollo-portal-1.1.1-github.zip<\/p>\n

\uff083\uff09\u521b\u5efaapollo\u7528\u6237\u5e76\u8d4b\u4e88\u76ee\u5f55\u7528\u6237\u6743\u9650<\/font>
# \u4e0a\u4f20sql\u6587\u4ef6\u5230\/data\/opt\/scripts\/<\/font>
# \u8981\u8fdb\u5165ApolloConfigDB\u5e93\u6267\u884csql\u6587\u4ef6<\/font>
          useradd apollo
          chown -R apollo:root \/data\/opt\/apollo\/<\/p>\n

\uff084\uff09\u914d\u7f6eapollo-configservice<\/font>
# \u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u586b\u5199\u5f53\u524d\u73af\u5883\u7684ApolloConfigDB\u6570\u636e\u5e93\u8fde\u63a5\u4e32\u4fe1\u606f<\/font>
          # \u6ce8\u610f127.0.0.1\u4fee\u6539\u6210\u5b9e\u9645\u73af\u5883\u6570\u636e\u5e93IP<\/font>
          # \u6ce8\u610fapolloconfigdb\u6570\u636e\u5e93\uff08\u5e94\u8be5\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff09<\/font>
          # \u6ce8\u610f\u7528\u6237\u540d\u548c\u5bc6\u7801\u540e\u9762\u4e0d\u8981\u6709\u7a7a\u683c<\/font>
          vim \/data\/opt\/apollo\/apollo-configservice\/config\/application-github.properties
          spring.datasource.url = jdbc:mysql:\/\/127.0.0.1:3306\/ApolloPortalDB?characterEncoding=utf8
          spring.datasource.username = apollo
          spring.datasource.password = root123<\/p>\n

\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72<\/p>\n

# \u542f\u52a8\u7aef\u53e3<\/font>
          \u9ed8\u8ba4\u7684\u542f\u52a8\u7aef\u53e3\u662f8080\uff0c\u82e5\u8981\u4fee\u6539\uff0c\u5219\u5c06scripts\/startup.sh\u4e2d\u7684SERVER_PORT=SERVER_PORT:=8080\u76848080\u6539\u6210\u6307\u5b9a\u7684\u7aef\u53e3\u5373\u53ef<\/p>\n

\uff085\uff09\u914d\u7f6eapollo-adminservice<\/font>
# \u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u586b\u5199\u5f53\u524d\u73af\u5883\u7684ApolloConfigDB\u6570\u636e\u5e93\u8fde\u63a5\u4e32\u4fe1\u606f<\/font>
          # \u6ce8\u610f127.0.0.1\u4fee\u6539\u6210\u5b9e\u9645\u73af\u5883\u6570\u636e\u5e93IP<\/font>
          # \u6ce8\u610fapolloconfigdb\u6570\u636e\u5e93\uff08\u5e94\u8be5\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff09<\/font>
          # \u6ce8\u610f\u7528\u6237\u540d\u548c\u5bc6\u7801\u540e\u9762\u4e0d\u8981\u6709\u7a7a\u683c<\/font>
          vim \/data\/opt\/apollo\/apollo-adminservice\/config\/application-github.properties
          spring.datasource.url = jdbc:mysql:\/\/127.0.0.1:3306\/ApolloPortalDB?characterEncoding=utf8
          spring.datasource.username = apollo
          spring.datasource.password = root123
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72
# \u542f\u52a8\u7aef\u53e3<\/font>
          \u4e5f\u53ef\u4ee5\u90e8\u7f72\u4e24\u5957apollo-portal\uff0c\u7ba1\u7406\u5404\u81ea\u73af\u5883\u7684apollo-portal<\/p>\n

\uff086\uff09\u914d\u7f6eapollo-portal<\/font>
# \u672c\u6b21\u90e8\u7f72\u4e2d\uff0c\u53ea\u90e8\u7f72\u4e00\u4e2aapollo-portal\uff0c\u7528\u6765\u7ba1\u7406\u6240\u6709\u73af\u5883\u7684apollo\u8282\u70b9<\/font>
          \u9ed8\u8ba4\u7684\u542f\u52a8\u7aef\u53e3\u662f8090\uff0c\u82e5\u8981\u4fee\u6539\uff0c\u5219\u5c06scripts\/startup.sh\u4e2d\u7684SERVER_PORT=SERVER_PORT:=8090\u76848090\u6539\u6210\u6307\u5b9a\u7684\u7aef\u53e3\u5373\u53ef<\/p>\n

# \u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u586b\u5199\u5f53\u524d\u73af\u5883\u7684ApolloConfigDB\u6570\u636e\u5e93\u8fde\u63a5\u4e32\u4fe1\u606f<\/font>
          # \u6ce8\u610f127.0.0.1\u4fee\u6539\u6210\u5b9e\u9645\u73af\u5883\u6570\u636e\u5e93IP<\/font>
          # \u6ce8\u610fapolloconfigdb\u6570\u636e\u5e93\uff08\u5e94\u8be5\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff09<\/font>
          # \u6ce8\u610f\u7528\u6237\u540d\u548c\u5bc6\u7801\u540e\u9762\u4e0d\u8981\u6709\u7a7a\u683c<\/font>
          vim \/data\/opt\/apollo\/apollo-portal\/config\/application-github.properties
          spring.datasource.url = jdbc:mysql:\/\/127.0.0.1:3306\/ApolloPortalDB?characterEncoding=utf8
          spring.datasource.username = apollo
          spring.datasource.password = root123
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72
# \u542f\u52a8\u7aef\u53e3<\/font>
          \u9ed8\u8ba4\u7684\u542f\u52a8\u7aef\u53e3\u662f8070\uff0c\u82e5\u8981\u4fee\u6539\uff0c\u5219\u5c06scripts\/startup.sh\u4e2d\u7684SERVER_PORT=SERVER_PORT:=8070\u76848070\u6539\u6210\u6307\u5b9a\u7684\u7aef\u53e3\u5373\u53ef<\/p>\n

# \u914d\u7f6emeta service\u4fe1\u606f<\/font>
          # \u6ce8\u610fmeta service\u7684\u5730\u5740\u548c\u7aef\u53e3\uff0c\u9ed8\u8ba4\u5c31\u662fapollo-configservice\u7684\u5730\u5740\u548c\u7aef\u53e3<\/font>
          # \u6ce8\u610f\uff1a\u591a\u4e2a\u5730\u5740\u7528\u82f1\u6587\u9017\u53f7\u9694\u5f00<\/font>
          # \u6ce8\u610f\uff1a\u4e0b\u9762\u7684\u914d\u7f6e\u8868\u793a\u5f53\u524d\u7684apollo-portal\u8981\u7ba1\u7406dev\u3001fat\u3001uat\u3001pro\u56db\u5957\u73af\u5883\u7684apollo\u8282\u70b9\uff0c\u6bcf\u4e2a\u73af\u5883\u7684\u8282\u70b9\u6570\u662f\u4e24\u4e2a<\/font>
          # \u6ce8\u610f\uff1a\u82e5\u53ea\u9700\u8981dev\u73af\u5883\uff0c\u53ea\u9700\u8981\u914d\u7f6edev.<\/font>
          vim \/data\/opt\/apollo\/apollo-portal\/config\/apollo-env.properties
          dev.meta=http:\/\/192.168.35.105:8080,http:\/\/192.168.35.106:8080
          fat.meta=http:\/\/192.168.35.115:8080,http:\/\/192.168.35.116:8080
          uat.meta=http:\/\/192.168.35.125:8080,http:\/\/192.168.35.126:8080
          pro.meta=http:\/\/192.168.35.135:8080,http:\/\/192.168.35.136:8080<\/p>\n

\uff087\uff09\u65b0\u5efa\u542f\u52a8\u548c\u5173\u95ed\u4e09\u4e2a\u670d\u52a1\u7684shell\u811a\u672c<\/font>
# \u6ce8\u610f\u670d\u52a1\u7684\u542f\u52a8\u987a\u5e8f\uff1aapollo-configservice -> apollo-adminservice -> apollo-portal<\/font><\/p>\n

# \u7f16\u5199\u542f\u52a8\u811a\u672c<\/font>
          vim \/data\/apollo\/startup.sh
          #!\/bin\/bash
          .\/apollo-configservice\/scripts\/startup.sh
          .\/apollo-build-scripts\/scripts\/startup.sh
          .\/apollo-portal\/scripts\/startup.sh<\/p>\n

# \u7f16\u5199\u5173\u95ed\u811a\u672c<\/font>
          vim \/data\/apollo\/shutdown.sh
          #!\/bin\/bash
          .\/apollo-configservice\/scripts\/shutdown.sh
          .\/apollo-build-scripts\/scripts\/shutdown.sh
          .\/apollo-portal\/scripts\/shutdown.sh<\/p>\n

# \u8d4b\u4e88\u811a\u672c\u6267\u884c\u6743\u9650<\/font>
          chmod +x \/data\/apollo\/startup.sh
          chmod +x \/data\/apollo\/shutdown.sh
          mkdir \/opt\/logs\/ -p
          chown -R apollo:apollo \/opt\/logs\/<\/p>\n

\uff088\uff09\u542f\u52a8\u6240\u6709\u73af\u5883\u7684apollo\u670d\u52a1\u8bbf\u95eeapollo\uff0c\u6ce8\u610f\u5f00\u653e\u5b89\u5168\u7ec4\u7aef\u53e3<\/font>
# \u542f\u52a8\u6240\u6709\u73af\u5883\u7684apollo\u670d\u52a1<\/font>
          cd \/data\/opt\/apollo
          .\/start.sh<\/p>\n

# \u5728\u6e38\u89c8\u5668\u4e0a\u767b\u5f55\u5f53\u524d\u73af\u5883\u7684\u5176\u4e2d\u4e00\u4e2aapollo-configservice\uff0c\u67e5\u770b\u73af\u5883\u4e0b\u7684apollo-configservvice\u548capollo-adminservice\u7684\u8282\u70b9\u6570\u662f\u5426\u6b63\u5e38<\/font><\/p>\n

# apollo-portal\u68c0\u67e5<\/font>
          \u6e38\u89c8\u5668\u767b\u5f55apollo-portal
          \u9ed8\u8ba4\u7684\u7528\u6237\u540d apollo \u5bc6\u7801 :admin
          http:\/\/IP:PORT
          \u70b9\u51fb\u9ed8\u8ba4\u7684\u9879\u76eeSampleApp
          \u67e5\u770bSampleApp\u7684\u73af\u5883\u5217\u8868\u662f\u5426\u7b26\u5408ApolloPortalDB.ServerConfig\u4e2dapollo.portal.envs\u7684\u914d\u7f6e
\"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f72<\/p>\n

\uff089\uff09\u66f4\u66f4\u66f4\u66f4\u66f4\u66f4\u8be6\u7ec6\u7684\u914d\u7f6e\u53ef\u4ee5\u53c2\u8003apollo\u5b98\u65b9<\/font>
# https:\/\/github.com\/ctripcorp\/apollo\/wiki<\/font><\/p>\n

\uff0810\uff09\u5230\u6b64\u5b8c\u6210\u90e8\u7f72<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"3\u3001\u5206\u5e03\u5f0f\u90e8\u7f721\u3001\u5206\u5e03\u5f0f\u90e8\u7f72\u9700\u8981\u4e8b\u5148\u786e\u5b9a\u90e8\u7f72\u7684\u73af\u5883\u4ee5\u53ca\u90e8\u7f72\u65b9\u5f0f\uff0cApollo\u76ee\u524d\u652f\u6301\u4ee5\u4e0b\u73af\u5883\uff081\uff09\u81ea\u5b9a\u4e49\u73af\u5883\u53ef\u4ee5\u7406\u89e3\u4e3a\u81ea\u5df1\u672c\u5730...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/376"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}