{"id":309453,"date":"2021-01-14T12:11:06","date_gmt":"2021-01-14T04:11:06","guid":{"rendered":"http:\/\/4563.org\/?p=309453"},"modified":"2021-01-14T12:11:06","modified_gmt":"2021-01-14T04:11:06","slug":"3-%e6%ad%a5%e6%8a%8a%e5%ae%b9%e5%99%a8%e5%ba%94%e7%94%a8%e5%8f%98%e4%b8%ba%e4%ba%91%e7%ab%af%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9a%84%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=309453","title":{"rendered":"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binggg <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u5982\u4f55\u5c06\u5bb9\u5668\u5e94\u7528\u5feb\u901f\u6253\u9020\u4e3a\u4e91\u5f00\u53d1\u5e94\u7528<\/h1>\n<p> <\/p>\n<h2>\u4e86\u89e3\u4e91\u5f00\u53d1\u5e94\u7528<\/h2>\n<p>\u4e91\u5f00\u53d1\u5e94\u7528\u53ef\u4ee5\u7406\u89e3\u4e3a\u8fd0\u884c\u5728\u4e91\u5f00\u53d1\u73af\u5883\u7684\u5e94\u7528\uff0c\u4f8b\u5982\u4e00\u4e2a\u5305\u542b\u524d\u540e\u7aef\u3001\u6570\u636e\u5e93\u7b49\u80fd\u529b\u7b49\u670d\u52a1\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u952e\u90e8\u7f72\uff0c\u76f4\u63a5\u90e8\u7f72\u5728\u4e91\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u4f7f\u7528\u4e91\u5f00\u53d1\u5e95\u5c42\u7684\u5404\u9879 Serverless \u8d44\u6e90\uff0c\u4eab\u53d7\u5f39\u6027\u514d\u8fd0\u7ef4\u7684\u4f18\u52bf\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b10633727b.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u4e00\u4e2a\u4e91\u5f00\u53d1\u5e94\u7528\u53ef\u4ee5\u62c6\u89e3\u4e3a\u4e09\u4e2a\u90e8\u5206\uff0c\u5305\u62ec\u4ee3\u7801\u3001\u58f0\u660e\u5f0f\u914d\u7f6e\u548c\u73af\u5883\u53d8\u91cf\u4fe1\u606f\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b1068ab5e8.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u4f1a\u6f14\u793a\u5982\u4f55\u5c06\u4e00\u4e2a\u5f00\u6e90\u7684\u5bb9\u5668\u5316\u7684\u9879\u76ee\u5feb\u901f\u6253\u9020\u4e3a\u53ef\u4ee5\u4e00\u952e\u90e8\u7f72\u7684\u4e91\u5f00\u53d1\u5e94\u7528\u3002<\/p>\n<p><strong>Nextcloud<\/strong> \u662f\u4e00\u5957\u4e2a\u4eba\u4e91\u5b58\u50a8\u89e3\u51b3\u65b9\u6848\uff0c\u5185\u7f6e\u4e86\u56fe\u7247\u76f8\u518c\u3001\u65e5\u5386\u8054\u7cfb\u4eba\u3001\u6587\u4ef6\u7ba1\u7406\u3001RSS \u9605\u8bfb\u7b49\u4e30\u5bcc\u7684\u5e94\u7528\uff0c\u8fd9\u4e2a\u5e94\u7528\u672c\u8eab\u662f\u5f00\u6e90\u7684\uff0c\u540c\u65f6\u63d0\u4f9b\u4e86\u90e8\u7f72\u7684 Docker \u955c\u50cf\uff0c\u9700\u8981\u642d\u914d MySQL \u6570\u636e\u5e93\uff0c\u4e0b\u9762\u4f1a\u6f14\u793a\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e2a\u5e94\u7528\u7684\u4e00\u952e\u90e8\u7f72\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b106f8004e.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u901a\u8fc7\u4e91\u5f00\u53d1<strong>\u4e00\u952e\u90e8\u7f72<\/strong>\uff0c\u53ef\u4ee5\u90e8\u7f72\u5728\u7528\u6237\u7684\u4e91\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u65e0\u9700\u5173\u5fc3\u670d\u52a1\u5668\u7ba1\u7406\u548c\u8fd0\u7ef4\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b1073808dc.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<h3>\u9879\u76ee\u6f14\u793a\u5730\u5740\uff1a<\/h3>\n<p>https:\/\/fx-1259727701.ap-shanghai.service.tcloudbase.com\/<\/p>\n<h2>\u4f53\u9a8c\u4e00\u952e\u90e8\u7f72<\/h2>\n<p>\u70b9\u51fb\u4e0b\u65b9\u7684\u90e8\u7f72\u6309\u94ae\u6765\u4e00\u952e\u90e8\u7f72 NextCloud \u5e94\u7528<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b107a9c409.svg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u70b9\u51fb\u4e0a\u65b9\u6309\u94ae\u4e4b\u540e\u4f1a\u8df3\u8f6c\u817e\u8baf\u4e91\u5f00\u53d1\u63a7\u5236\u53f0\u8fdb\u5165\u5feb\u901f\u5b89\u88c5\u90e8\u7f72\u6d41\u7a0b\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u4e91\u5f00\u53d1\u73af\u5883\uff08\u6ce8\u610f\uff1a\u8fd9\u4e2a\u5e94\u7528\u6211\u4eec\u9700\u8981\u9009\u62e9\u4e00\u4e2a HTTP \u8bbf\u95ee\u8def\u5f84\u7684\u6839\u8def\u5f84\u672a\u88ab\u5360\u7528\u7684\u73af\u5883\uff09\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b107f8f332.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u53ef\u4ee5\u8fdb\u884c\u7f51\u7edc\u914d\u7f6e\u3001\u6807\u7b7e\u914d\u7f6e\uff0c\u4ee5\u53ca\u5173\u8054\u6216\u8005\u521b\u5efa\u4e91\u4e0a\u7684\u8d44\u6e90\uff0c\u6bd4\u5982\u8fd9\u4e2a\u5e94\u7528\u4f9d\u8d56\u4e86 CFS \u6765\u5b9e\u73b0\u5bb9\u5668\u7684\u6587\u4ef6\u5b58\u50a8\uff0c\u4f7f\u7528\u4e86 CynosDB for MySQL \uff08 Serverless \u7248\u672c\uff09\u6765\u4f5c\u4e3a\u6570\u636e\u5e93\u4f9d\u8d56\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b1083a2fd7.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u70b9\u51fb <strong>\u5b8c\u6210<\/strong> \uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u5373\u53ef\u5728\u63a7\u5236\u53f0\u6253\u5f00\u5e94\u7528\u7684\u8bbf\u95ee\u5730\u5740\u6765\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b10890d5ae.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<h2>\u5982\u4f55\u5f00\u53d1\u4e00\u4e2a\u4e91\u5f00\u53d1\u5e94\u7528<\/h2>\n<p>\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u6253\u9020\u8fd9\u6837\u4e00\u4e2a\u53ef\u4ee5<strong>\u4e00\u952e\u90e8\u7f72<\/strong>\u7684\u4e91\u5f00\u53d1\u5e94\u7528\u5462\uff1f<\/p>\n<p>\u6574\u4f53\u7684\u6b65\u9aa4\u5206\u4e3a 3 \u6b65\uff0c\u4e3b\u8981\u5206\u4e3a<strong>\u5f00\u53d1\u3001\u914d\u7f6e\u548c\u90e8\u7f72\u9a8c\u8bc1<\/strong>\u4e09\u4e2a\u73af\u8282\u3002\u8fd9\u7bc7\u6587\u6863\u4f1a\u4e3b\u8981\u4ecb\u7ecd\u914d\u7f6e\u548c\u90e8\u7f72\u9a8c\u8bc1\u4e24\u4e2a\u73af\u8282\u3002<\/p>\n<h3>\u5f00\u53d1<\/h3>\n<p>\u5f00\u53d1\u73af\u8282\u7684\u90e8\u5206\u4e0d\u91cd\u70b9\u4ecb\u7ecd\uff0c\u53ef\u4ee5\u901a\u8fc7\u83b7\u53d6\u6e90\u7801\u6765\u4e86\u89e3\u5177\u4f53\u7684\u5b9e\u73b0\u3002<\/p>\n<h4>\u9879\u76ee\u6e90\u7801<\/h4>\n<p>\u672c\u9879\u76ee\u9879\u76ee\u7684\u6e90\u7801\u53ef\u4ee5\u5728 Github \u4e2d\u67e5\u770b\u548c\u83b7\u53d6\uff1a<\/p>\n<p>https:\/\/github.com\/TencentCloudBase-Marketplace\/nextcloud<\/p>\n<p>Nextcloud \u5b98\u65b9\u5f00\u6e90\u4ed3\u5e93<\/p>\n<p>https:\/\/github.com\/nextcloud\/server<\/p>\n<h4>\u4f7f\u7528\u7684\u4e91\u5f00\u53d1\u548c\u4e91\u4e0a\u5176\u4ed6\u8d44\u6e90<\/h4>\n<ul>\n<li>\n<p>\u4e91\u5f00\u53d1\u7684\u4e91\u6258\u7ba1\u670d\u52a1\uff1a\u4f7f\u7528\u4e91\u6258\u7ba1\u6765\u90e8\u7f72\u5e94\u7528\u7684\u540e\u7aef\u670d\u52a1<\/p>\n<\/li>\n<li>\n<p>CynosDB\uff1a\u4f7f\u7528 CynosDB \u6570\u636e\u5e93\u5b58\u50a8\u6570\u636e<\/p>\n<\/li>\n<li>\n<p>CFS\uff1a\u4f7f\u7528 CFS \u6301\u4e45\u5316\u5b58\u50a8\u6570\u636e<\/p>\n<\/li>\n<\/ul>\n<h3>\u914d\u7f6e<\/h3>\n<p>\u6709\u4e86\u9879\u76ee\u7684\u4ee3\u7801\u4e4b\u540e\uff0c\u5982\u4f55\u628a\u8fd9\u4e2a\u5e94\u7528\u6253\u9020\u6210\u4e3a\u53ef\u4ee5<strong>\u4e00\u952e\u90e8\u7f72<\/strong>\u7684\u4e91\u5f00\u53d1\u5e94\u7528\u5462\uff1f<\/p>\n<p>\u4e0b\u9762\u4f1a\u5206\u6b65\u9aa4\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u914d\u7f6e\u6765\u6253\u9020\u4e91\u5f00\u53d1\u5e94\u7528\u3002<\/p>\n<h4>\u914d\u7f6e\u5e94\u7528\u57fa\u7840\u4fe1\u606f<\/h4>\n<p>\u9996\u5148\u521b\u5efa\u4e00\u4e2a <code>cloudbaserc.json<\/code> \u914d\u7f6e\u6587\u4ef6\uff0c\u6587\u4ef6\u7684\u5185\u5bb9\u5982\u4e0b\u3002<\/p>\n<pre><code>{   \"envId\": \"{{env.ENV_ID}}\",   \"version\": \"2.0\",   \"$schema\": \"https:\/\/framework-1258016615.tcloudbaseapp.com\/schema\/latest.json\",   \"framework\": {     \"name\": \"nextcloud\",     \"plugins\": {}   } } <\/code><\/pre>\n<h5>\u8981\u70b9<\/h5>\n<ol>\n<li><code>envId<\/code> \u6307\u5b9a\u5e94\u7528\u90e8\u7f72\u5728\u54ea\u4e2a\u73af\u5883\u4e0b\uff0c\u8fd9\u91cc\u6211\u4eec\u7528\u6a21\u677f\u53d8\u91cf<code>env.ENV_ID<\/code>\u8868\u793a\u8bfb\u53d6 <code>ENV_ID<\/code> \u73af\u5883\u53d8\u91cf<\/li>\n<li><code>framework.name<\/code> \u662f\u5e94\u7528\u7684\u82f1\u6587\u540d\uff0c\u53ea\u652f\u6301 A-Z a-z 0-9 &#8211; \u548c _\uff0c\u957f\u5ea6 1-32 \u4f4d<\/li>\n<li><code>framework.plugins<\/code> \u662f\u5e94\u7528\u7528\u5230\u7684\u63d2\u4ef6\u4fe1\u606f\uff0c\u8fd9\u91cc\u5148\u7559\u7a7a\uff0c\u4e0b\u9762\u6211\u4eec\u6839\u636e\u8d44\u6e90\u548c\u5e94\u7528\u7c7b\u578b\u6765\u586b\u5199<\/li>\n<li>\u5982\u679c\u9700\u8981\u4e86\u89e3\u66f4\u591a\u9879\u76ee\u4fe1\u606f\u7684\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003\u5e94\u7528\u9879\u76ee\u4fe1\u606f\u8bf4\u660e\u6587\u6863<\/li>\n<\/ol>\n<h4>\u4f7f\u7528\u4e91\u6258\u7ba1\u63d2\u4ef6<\/h4>\n<p>\u8fd9\u4e00\u6b65\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4e91\u6258\u7ba1\u63d2\u4ef6\uff0c\u6765\u81ea\u52a8\u5316\u5730\u90e8\u7f72\u5bb9\u5668\u670d\u52a1\u5230\u4e91\u5f00\u53d1\u7684\u4e91\u6258\u7ba1\u4e0a\u3002<\/p>\n<p>\u5728 <code>framework.plugins<\/code> \u4e0b\u589e\u52a0\u4e00\u4e2a\u5b57\u6bb5 <code>server<\/code>\uff0c\u5b57\u6bb5\u7684\u503c\u662f\u4e00\u4e2a JSON \u5bf9\u8c61\u3002<\/p>\n<pre><code>{   \"server\": {     \"use\": \"@cloudbase\/framework-plugin-container\",     \"inputs\": {       \"cpu\": 0.5,       \"mem\": 1,       \"serviceName\": \"nextcloud\",       \"servicePath\": \"\/\",       \"uploadType\": \"image\",       \"containerPort\": 80,       \"imageInfo\": {         \"imageUrl\": \"nextcloud:20\"       },       \"envVariables\": {         \"MYSQL_HOST\": \"{{env.DB_IP}}:{{env.DB_PORT}}\",         \"MYSQL_DATABASE\": \"nextcloud\"       },       \"volumeMounts\": {         \"\/var\/www\/html\": \"nextcloud-cfs\"       }     }   } } <\/code><\/pre>\n<h5>\u8981\u70b9<\/h5>\n<ol>\n<li>\u5b57\u6bb5 <code>server<\/code>\u7684\u540d\u5b57\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u53ea\u8d77\u5230\u522b\u540d\u7684\u4f5c\u7528\uff0c\u4e0b\u540c<\/li>\n<li><code>\"use\": \"@cloudbase\/framework-plugin-container\u201d<\/code> \u8868\u793a\u8fd9\u91cc\u4f7f\u7528\u4e86 <code>@cloudbase\/framework-plugin-contaienr<\/code> \u8fd9\u4e2a\u4e91\u6258\u7ba1\u63d2\u4ef6\uff0c\u7528\u6765\u90e8\u7f72\u955c\u50cf\u548c\u670d\u52a1\u5230\u4e91\u6258\u7ba1\u4e0a\u3002<\/li>\n<li> <code>inputs<\/code> \u7528\u6765\u8bbe\u7f6e\u63d2\u4ef6\u63a5\u6536\u7684\u53c2\u6570\uff0c\u4e0a\u9762\u7684\u914d\u7f6e\u90e8\u5206\u505a\u4e86\u5982\u4e0b\u7684\u4e8b\u60c5\uff1a\n<ol>\n<li>\u6307\u5b9a\u4e86\u4e91\u6258\u7ba1\u670d\u52a1\u7684 CPU \u548c\u5185\u5b58\u7684\u89c4\u683c\uff0c<\/li>\n<li>\u6307\u5b9a\u4e86\u670d\u52a1\u540d &#8220;serviceName&#8221;: &#8220;nextcloud&#8221;<\/li>\n<li>\u6307\u5b9a\u4e86\u670d\u52a1\u90e8\u7f72\u7684 HTTP \u8bbf\u95ee\u8def\u5f84 &#8220;servicePath&#8221;: \u201c\/\u201c\uff0c\u76f8\u5f53\u4e8e\u6839\u76ee\u5f55<\/li>\n<li>\u6307\u5b9a\u4e86\u4f7f\u7528\u955c\u50cf\u6765\u90e8\u7f72\uff0c\u7aef\u53e3\u4e3a 80 \u7aef\u53e3\uff0c\u955c\u50cf\u7684\u5730\u5740\u548c\u7248\u672c\u4e3a <code>nextcloud:20<\/code><\/li>\n<li>\u73af\u5883\u53d8\u91cf<code>envVariables<\/code> \u90e8\u5206\uff0c\u6211\u4eec\u6307\u5b9a\u4e86\u8981\u4e3a\u5bb9\u5668\u8fd0\u884c\u65f6\u6ce8\u5165\u7684\u73af\u5883\u53d8\u91cf\uff0c<code>MYSQL_HOST<\/code> \u662f NextCloud \u8fd9\u4e2a\u7a0b\u5e8f\u652f\u6301\u7684\u4e00\u4e2a\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u7528\u6765\u914d\u7f6e\u5e94\u7528\u7684\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\uff0c\u6211\u4eec\u4f7f\u7528<code>{{env.DB_IP}}:{{env.DB_PORT}}<\/code>\u4f5c\u4e3a\u6a21\u677f\u53d8\u91cf\u6765\u751f\u6210\u8fde\u63a5\u5730\u5740\uff0c\u5177\u4f53\u7684 IP \u548c\u7aef\u53e3\u4f1a\u5728\u6784\u5efa\u65f6\u6839\u636e\u5173\u8054\u7684\u6570\u636e\u5e93\u771f\u5b9e\u7684 IP \u548c\u7aef\u53e3\u6765\u586b\u5145\u3002<\/li>\n<li>\u6302\u8f7d\u76ee\u5f55\u8bbe\u7f6e <code>volumeMounts<\/code> \u90e8\u5206\uff0c\u6211\u4eec\u58f0\u660e\u4e86\u5c06\u5728\u5bb9\u5668\u5185\u7684 &#8220;\/var\/www\/html\u201d \u8def\u5f84\u4e0a\u6302\u8f7d\u4e00\u4e2a\u540d\u79f0\u4e3a &#8220;nextcloud-cfs\u201d \u7684 CFS \u6301\u4e45\u5316\u5b58\u50a8\u7684\u5b9e\u4f8b\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\u4e91\u6258\u7ba1\u63d2\u4ef6\u8fd8\u53ef\u4ee5\u914d\u7f6e\u4ee3\u7801\u6765\u6e90\u3001\u81ea\u52a8\u6269\u7f29\u5bb9\u914d\u7f6e\u7b49\uff0c\u8be6\u7ec6\u914d\u7f6e\u8bf4\u660e\u53ef\u4ee5\u53c2\u8003 \u4e91\u6258\u7ba1\u5bb9\u5668\u914d\u7f6e\u6587\u6863<\/li>\n<\/ol>\n<h4>\u914d\u7f6e\u5e94\u7528\u53c2\u6570\u548c\u4f9d\u8d56<\/h4>\n<p>\u5728\u90e8\u7f72\u5e94\u7528\u65f6\uff0c\u8fd8\u53ef\u80fd\u9700\u8981\u7528\u6237\u6765\u8f93\u5165\u4e00\u4e9b\u81ea\u5b9a\u4e49\u7684\u53c2\u6570\uff0c\u6216\u8005\u914d\u7f6e\u50cf\u4e0a\u6587\u63d0\u5230\u7684\u4e91\u4e0a\u5916\u90e8\u8d44\u6e90\u3002<\/p>\n<p>\u8fd9\u4e9b\u90fd\u53ef\u4ee5\u5728<code>framework.requirement<\/code> \u4e2d\u8fdb\u884c\u914d\u7f6e<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5b57\u6bb5<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>\u7c7b\u578b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>addons<\/code><\/td>\n<td>\u5e94\u7528\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u7528\u5230\u7684\u5916\u90e8\u4e91\u4e0a\u8d44\u6e90\uff0c\u5305\u62ec cfs \u3001cynosdb \u3001redis \u7b49<\/td>\n<td><code>AddonsConfig<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>environment<\/code><\/td>\n<td>\u5e94\u7528\u5728\u6784\u5efa\u65f6\u548c\u8fd0\u884c\u65f6\u7684\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u58f0\u660e\uff0c\u9ed8\u8ba4\u6ce8\u5165\u8ba1\u7b97\u73af\u5883\u4e2d(\u4e91\u51fd\u6570\u3001\u4e91\u5e94\u7528)\uff0c\u4e5f\u4f1a\u5728\u4e91\u7aef\u6784\u5efa\u65f6\u4f5c\u4e3a\u6784\u5efa\u90e8\u7f72\u7684\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728 <code>cloudbaserc.json<\/code> \u4e2d\u901a\u8fc7 <code>env.ENV_NAME<\/code> \u5f15\u7528<\/td>\n<td><code>EnvironmentConfig<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u5728 <code>framework.requirement<\/code> \u4e2d\u6dfb\u52a0\u5982\u4e0b JSON \u914d\u7f6e\u3002<\/p>\n<pre><code>{   \"requirement\": {     \"addons\": [       {         \"type\": \"CFS\",         \"name\": \"nextcloud-cfs\"       },       {         \"type\": \"CynosDB\",         \"name\": \"nextcloud\",         \"envMap\": {           \"IP\": \"DB_IP\",           \"PORT\": \"DB_PORT\",           \"USERNAME\": \"MYSQL_USER\",           \"PASSWORD\": \"MYSQL_PASSWORD\"         }       }     ]   } } <\/code><\/pre>\n<h5>\u8981\u70b9<\/h5>\n<ol>\n<li>\u5728 <code>addons<\/code>\u91cc\u9762\u6211\u4eec\u53ef\u4ee5\u58f0\u660e\u4f9d\u8d56\u7684\u4e91\u4e0a\u8d44\u6e90\u3002<\/li>\n<li>\u9996\u5148\u6211\u4eec\u6307\u5b9a\u4e86\u4f9d\u8d56 <code>CFS<\/code> \uff0c\u540d\u79f0\u4e3a <code>nextcloud-cfs<\/code>\uff0c\u8fd9\u4e2a\u540d\u79f0\u548c\u4e0a\u9762\u4e91\u6258\u7ba1\u63d2\u4ef6\u91cc\u9762\u6302\u8f7d\u7684\u9700\u8981\u5bf9\u5e94\u8d77\u6765\u3002<\/li>\n<li>\u63a5\u7740\u6211\u4eec\u6307\u5b9a\u4e86\u4f9d\u8d56 <code>CynosDB<\/code>\uff0c\u8fd9\u91cc\u53ea\u9700\u8981\u5173\u6ce8 <code>envMap<\/code> \u7684\u914d\u7f6e\uff0c\u5728\u6570\u636e\u5e93\u5b9e\u4f8b\u521b\u5efa\u6210\u529f\u4e4b\u540e\uff0c\u4f1a\u628a\u6570\u636e\u5e93\u7684 IP \u3001PORT \u3001USERNAME \u548c PASSWORD \u5199\u5165\u5e94\u7528\u7684\u5168\u5c40\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u628a\u8fd9\u4e9b\u8fde\u63a5\u4fe1\u606f\u6620\u5c04\u4e3a\u6211\u4eec\u9700\u8981\u7684\u73af\u5883\u53d8\u91cf\u540d\uff0c\u6bd4\u5982\u5bc6\u7801\u4fe1\u606f\u6211\u4eec\u5c31\u914d\u7f6e\u4e86\u53ef\u4ee5\u6620\u5c04\u4e3a <code>MYSQL_PASSWORD<\/code>\uff0c \u5728\u5bb9\u5668\u4e2d\u53ef\u4ee5\u76f4\u63a5\u83b7\u53d6\u5230\u8fd9\u4e2a\u73af\u5883\u53d8\u91cf\u3002<\/li>\n<li>\u5176\u4ed6\u9ad8\u7ea7\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u53ef\u4ee5\u53c2\u8003 \u5e94\u7528\u4f9d\u8d56\u914d\u7f6e\u8bf4\u660e<\/li>\n<\/ol>\n<h3>\u751f\u6210\u90e8\u7f72\u6309\u94ae<\/h3>\n<p>\u63a5\u4e0b\u91cc\u6211\u4eec\u5c31\u53ef\u4ee5\u4e0a\u4f20\u4ee3\u7801\u5230 Git\uff0c\u6765\u751f\u6210\u4e00\u4e2a\u4e00\u952e\u90e8\u7f72\u6309\u94ae\u4e86\u3002\u9996\u5148\u6253\u5f00\u4e00\u952e\u90e8\u7f72\u6309\u94ae\u751f\u6210\u5730\u5740\uff1a<\/p>\n<p>https:\/\/docs.cloudbase.net\/framework\/deploy-button.html<\/p>\n<p>\u5728\u9875\u9762\u5f53\u4e2d\u8f93\u5165\u9879\u76ee\u7684 Git \u5730\u5740\uff0c\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u4ee5\u53ca\u5206\u652f\u4fe1\u606f\uff0c\u5c31\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u4e0b\u9762\u7684\u90e8\u7f72\u6309\u94ae\u4ee3\u7801\u7247\u6bb5\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b108e35b53.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<p>\u8fd9\u91cc\u4f1a\u751f\u6210\u90e8\u7f72\u6309\u94ae\u7684\u51e0\u79cd\u683c\u5f0f\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e0b\u5d4c\u5165\u90e8\u7f72\u6309\u94ae\u6765\u8ba9\u7528\u6237\u90e8\u7f72\u4f60\u7684\u5e94\u7528<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210203_601b1091ca9cc.jpg\" alt=\"3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684\u5e94\u7528\" \/><\/p>\n<ul>\n<li>Markdown \u4ee3\u7801\u9002\u5408\u7528\u5728 README \u3001Mardkown \u7f16\u5199\u7684\u535a\u5ba2\u6587\u7ae0\u7b49\u573a\u666f<\/li>\n<li>HTML \u4ee3\u7801\u9002\u5408\u7528\u5728\u516c\u4f17\u53f7\u3001HTML \u7f16\u5199\u7684\u7f51\u7ad9 \/\u535a\u5ba2\u6587\u7ae0\u7b49\u573a\u666f<\/li>\n<li>URL \u94fe\u63a5\u53ef\u4ee5\u5728\u4efb\u4f55\u652f\u6301\u8d85\u94fe\u63a5\u7684\u9875\u9762\u4f7f\u7528\uff0c\u60a8\u53ef\u4ee5\u590d\u5236\u4e0b\u65b9\u94fe\u63a5\uff0c\u7c98\u8d34\u5230\u5bf9\u5e94\u7684\u9875\u9762\u4e2d<\/li>\n<\/ul>\n<p>\u751f\u6210\u5b8c\u90e8\u7f72\u6309\u94ae\u4e4b\u540e\uff0c\u53ef\u4ee5\u6309\u7167\u4e91\u5f00\u53d1\u5e94\u7528\u6a21\u677f\u6765\u7f16\u5199 README \u6587\u6863\uff0c\u63d0\u4ea4\u5e94\u7528\u5230\u4e91\u5f00\u53d1\u5e94\u7528\u4e2d\u5fc3\u3002<\/p>\n<p><strong>\u5e94\u7528\u6a21\u677f\u5730\u5740<\/strong><\/p>\n<p>https:\/\/github.com\/TencentCloudBase-Marketplace\/app-template<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u4ec0\u4e48\u662f\u4e91\u5f00\u53d1\u5e94\u7528\uff0c\u4ee5\u5f00\u6e90\u9879\u76ee Nextcloud \u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u4e86\u5982\u4f55\u5c06\u5f00\u6e90\u7684\u5bb9\u5668\u5316\u7684\u9879\u76ee\uff0c\u5feb\u901f\u6253\u9020\u4e3a\u53ef\u4ee5\u4e00\u952e\u90e8\u7f72\u7684\u4e91\u5f00\u53d1\u5e94\u7528\u3002<\/p>\n<p>\u901a\u8fc7\u5b9e\u6218\uff0c\u6211\u4eec\u4e5f\u4e86\u89e3\u4e86\u4e91\u5f00\u53d1\u4ee5\u53ca CloudBase Framework \u7684\u4f7f\u7528\u3002\u53ea\u9700\u8981\u5b8c\u6210\u5f00\u53d1\u3001\u914d\u7f6e\u4ee5\u53ca\u90e8\u7f72\u9a8c\u8bc1\uff0c\u5c31\u53ef\u4ee5\u5feb\u901f\u5c06\u5e94\u7528\u53d8\u4e3a\u53ef\u4ee5\u5feb\u901f\u5206\u53d1\u7684\u7a0b\u5e8f\uff0c\u7528\u6237\u65e0\u9700\u624b\u52a8\u642d\u5efa\u73af\u5883\u548c\u914d\u7f6e\uff0c\u5373\u53ef\u81ea\u52a8\u5316\u90e8\u7f72\u5e94\u7528\u3002<\/p>\n<h2>\u53c2\u8003\u6587\u6863<\/h2>\n<ul>\n<li>\u4e91\u5f00\u53d1\u5b98\u7f51\uff1ahttps:\/\/www.cloudbase.net\/<\/li>\n<li>\u4e91\u5f00\u53d1\u5e94\u7528\u4e2d\u5fc3\uff1ahttps:\/\/www.cloudbase.net\/marketplace.html<\/li>\n<li>CloudBase Framework\uff1ahttps:\/\/github.com\/Tencent\/cloudbase-framework<\/li>\n<li>CloudBase Framework \u6587\u6863\uff1ahttps:\/\/docs.cloudbase.net\/framework\/<\/li>\n<li>\u4e00\u952e\u90e8\u7f72\u6309\u94ae\u751f\u6210\u5668\uff1ahttps:\/\/docs.cloudbase.net\/framework\/deploy-button.html<\/li>\n<li>\u4e91\u5f00\u53d1\u5e94\u7528\u6a21\u677f\uff1ahttps:\/\/github.com\/TencentCloudBase-Marketplace\/app-template<\/li>\n<li>\u4e91\u5f00\u53d1\u5e94\u7528\u6e90\u7801\u5217\u8868\uff1ahttps:\/\/github.com\/TencentCloudBase-Marketplace<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5010094\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dorothyREN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             0 \u56de\u590d\u60e8\u6848                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5010095\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 676529483 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u652f\u6301 Nextcloud \u5417\uff1f\u662f\u5426\u6709\u90e8\u7f72\u5230\u5176\u4ed6\u4e91\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5010096\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : binggg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dorothyREN \u611f\u8c22\u6d88\u706d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5010097\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : binggg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @676529483 Nextcloud \u53ea\u662f\u4e3e\u4e86\u4e2a\u4e00\u4e2a\u4f8b\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5010098\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wq2016 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f4e\u4ee3\u7801\u7684\uff0c\u597d\u50cf\u590d\u6742\u4e00\u70b9\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5010099\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huyujievip <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\uff0c\u5b66\u4e60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>3 \u6b65\u628a\u5bb9\u5668\u5e94\u7528\u53d8\u4e3a\u4e91\u7aef\u4e00\u952e\u5b89\u88c5\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/309453"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309453"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/309453\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309453"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}