{"id":43,"date":"2021-12-28T23:10:13","date_gmt":"2021-12-28T15:10:13","guid":{"rendered":"https:\/\/www.daogu.work\/?p=43"},"modified":"2021-12-28T23:20:29","modified_gmt":"2021-12-28T15:20:29","slug":"onlyoffice%e5%ae%89%e8%a3%85%e8%b8%a9%e5%9d%91","status":"publish","type":"post","link":"https:\/\/daogu.work\/?p=43","title":{"rendered":"onlyoffice\u5b89\u88c5\u8e29\u5751&#8211;\u5185\u7f51\u89e3\u6790"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4ecb\u7ecd\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u5728\u4e00\u8d77\u6709\u4ec0\u4e48\u4f5c\u7528\uff1a<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>nextcloud: \u7c7b\u4f3c\u767e\u5ea6\u7f51\u76d8\u4e4b\u7c7b\u7684\u5de5\u5177\uff0c\u80fd\u8ba9\u4f60\u5b58\u653e\u5404\u79cd\u6587\u4ef6\u3002\u5f53\u7136\u56e0\u4e3a\u4e91\u670d\u52a1\u5668\u5b58\u50a8\u6709\u9650\uff0c\u5b58\u6587\u6863\u8fd8\u662f\u76f8\u5f53\u4e0d\u9519\u7684\uff0c\u5b58\u89c6\u9891\u548c\u7167\u7247\u4ec0\u4e48\u7684\uff0c\u5bb9\u6613\u4e0d\u591f\u7528\u3002<\/li><li>onlyoffice: \u4e00\u4e2a\u5728\u7ebf\u6587\u6863\u7f16\u8f91\u670d\u52a1\u5de5\u5177\u3002\u53ef\u4ee5\u8ba9\u4f60\u5728\u4e91\u76d8\u91cc\u7f16\u8f91\u81ea\u5df1\u7684office\u6587\u6863\uff0cword,ppt\u548cexcel\u90fd\u53ef\u4ee5\u8fdb\u884c\u7684\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6848\u4e00\uff1a\u4e3b\u673anextcloud 23.0 + docker onlyoffice 6.4.2<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u9009\u62e9\u8fd9\u4e2a\u65b9\u6848\uff1a<\/h3>\n\n\n\n<p>\u5212\u91cd\u70b9\uff0c\u6015\u9ebb\u70e6\u3002\u4e4b\u524d\u5148\u5b89\u88c5\u7684nextcloud,\u56e0\u4e3a\u7528\u7684\u6570\u636e\u5e93\u662fmysql,\u800conlyoffice\u7528\u7684\u6570\u636e\u5e93\u662fpg,\u4e3a\u6b64\u8fd8\u5728\u7f51\u4e0a\u68c0\u7d22\u4e86\u4e00\u4e0bnextcloud\u6539pg\u7684\u4e00\u4e9b\u6559\u7a0b\uff0c\u540e\u6765\u89c9\u5f97\u592a\u8fc7\u9ebb\u70e6\uff0c\u5c31\u653e\u5f03\u3002\u4e0d\u60f3\u5728\u4e00\u53f0\u673a\u5668\u4e0a\u90e8\u7f72\u4e24\u5957\u6570\u636e\u5e93\u3002\u867d\u7136\u6709\u8bc4\u8bba\u8bf4nextcloud\u7528\u4e0apg\u6027\u80fd\u8981\u7529mysql\u51e0\u6761\u8857\u3002\u4f46\u76ee\u524d\u7684\u6211\u7528\u4e0d\u7740\uff0c\u4e8e\u662f\u5c31\u91c7\u7528\u7684docker\u7684\u65b9\u6848\u90e8\u7f72\u3002<\/p>\n\n\n\n<p>docker\u53c2\u8003\u7684\u6559\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/www.orgleaf.com\/2588.html\">\u4f7f\u7528Docker\u90e8\u7f72ONLYOFFICE Document Server<\/a><\/p>\n\n\n\n<p>\u4e0a\u9762\u8fd9\u4e2a\u535a\u4e3b\u91cc\u9762\u8fd8\u6709\u5176\u4ed63\u7bc7\u8bb2onlyoffice\u7684\u6587\u7ae0\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u627e\u627e\u4ed6\u7684\u5176\u4ed6\u6587\u7ae0\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5751\u5728\u54ea\u91cc\uff1aonlyoffice\u57df\u540d\u6709\u5916\u7f51\u89e3\u6790\u53ef\u4ee5\u8bbf\u95ee\uff0c\u60f3\u505a\u5185\u7f51\u89e3\u6790\u6bd4\u8f83\u9ebb\u70e6\u3002<\/h3>\n\n\n\n<p>docker\u91cc\u7684onlyoffice\u4e0e\u4e3b\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u5373\u4f7f\u6539\u4e86\u4e3b\u673ahost,\u505a\u4e86\u6620\u5c04\uff0c\u4f9d\u7136\u89e3\u51b3\u4e0d\u4e86\u901a\u4fe1\u62a5\u9519\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u4ee5\u5728nextcloud\u91cc\u9762\u5c06\u63d2\u4ef6\u914d\u7f6e\u6210\u529f\uff0c\u4f46\u662f\u5728nextcloud\u76ee\u5f55\u4e0b\u6267\u884c\u68c0\u67e5\uff0c\u4f9d\u7136\u4f1a\u62a5\u9519\u3002<\/p>\n\n\n\n<p><code>sudo -u www-data php occ onlyoffice:documentserver --check<\/code><\/p>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u4f53\u73b0\u5c31\u662f\u5728\u65b0\u5efa\u6587\u6863\u7684\u65f6\u5019\uff0c\u4f1a\u5f39\u51fa<\/p>\n\n\n\n<p><span class=\"has-inline-color has-pale-cyan-blue-color\">ONLYOFFICE\u670d\u52a1\u5668\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u3002<\/span><\/p>\n\n\n\n<p id=\"block-4fba2204-87f5-4a7c-8465-103bdb6c0e4e\">\u5361\u4f4f\u7684\u5730\u65b9\uff1a\u603b\u662f\u4f1a\u62a5<\/p>\n\n\n\n<p id=\"block-4fba2204-87f5-4a7c-8465-103bdb6c0e4e\"><code>Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname\/IP does not match certificate's altnames:<\/code><\/p>\n\n\n\n<p>\u4e0a\u8ff0\u62a5\u9519\u53c2\u8003\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/14262986\/node-js-hostname-ip-doesnt-match-certificates-altnames\">Node.js Hostname\/IP doesn&#8217;t match certificate&#8217;s altnames<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6848\u4e8c\uff1a\u4e3b\u673anextcloud + \u4e3b\u673aonlyoffice +\u4e3b\u673apg<\/h2>\n\n\n\n<p>\u9009\u7528\u8fd9\u79cd\u65b9\u6848\uff0c\u53ef\u4ee5\u8282\u7701\u5185\u5b58\u7ea6400M\uff0c\u56e0\u4e3a\u5728docker\u91cc\u9762\u4e5f\u8981\u8fd0\u884c\u4e00\u5957\u7a0b\u5e8f\uff0c\u5360\u7528\u7684\u5185\u5b58\u76f8\u5bf9\u591a\u4e00\u4e9b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u7684\u6559\u7a0b\uff0c\u4e3b\u8981\u662f\u5b98\u7f51\u7684\u4e24\u7bc7\uff0c\u4e00\u7bc7\u662f\u5b89\u88c5onlyoffice,\u4e00\u7bc7\u662f\u8fdb\u884chttps\u901a\u4fe1\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/helpcenter.onlyoffice.com\/installation\/docs-community-install-centos.aspx\">https:\/\/helpcenter.onlyoffice.com\/installation\/docs-community-install-centos.aspx<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/helpcenter.onlyoffice.com\/installation\/docs-community-install-centos.aspx\">https:\/\/helpcenter.onlyoffice.com\/installation\/docs-community-install-centos.aspx<\/a><\/p>\n\n\n\n<p>\u6309\u7167\u6559\u7a0b\u8fdb\u884c\uff0c\u5f53\u7136\u5982\u679c\u4f60\u6709\u8bc1\u4e66\uff0c\u53ef\u4ee5\u4e0d\u7528\u81ea\u7b7e\u53d1\u7684\u8bc1\u4e66\uff0c\u76f4\u63a5\u4f7f\u7528\u4e5f\u53ef\u4ee5\u7684\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5728nextcloud\u76ee\u5f55\u4e0b\uff0c\u6267\u884c\u547d\u4e2d\u5373\u53ef\u3002\u6211\u8fd9\u91cc\u662f\u4ee5www-data\u8fd9\u4e2a\u7528\u6237\u6765\u6267\u884c\u7684\u3002<\/p>\n\n\n\n<p><code>root@VM-12-3-centos nextcloud]# sudo -u www-data php occ onlyoffice:documentserver --check<\/code><\/p>\n\n\n\n<p>Document server <a href=\"https:\/\/office.daogu.work\/\">https:\/\/<\/a><span class=\"has-inline-color has-vivid-red-color\">xxxx.work version 6.4.2.6 is successfully connected<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6280\u672f\u603b\u7ed3\uff1a<\/h2>\n\n\n\n<p>\u5728\u7f51\u4e0a\u770b\u5230\u7684\u57fa\u672c\u90fd\u662f\u8981\u4e48docker\u4e0enextcloud\u90fd\u662fdocker\u5bb9\u5668\u90e8\u7f72\u7684\uff0c\u8981\u4e48\u90fd\u5728\u4e3b\u673a\u4e0a\u90e8\u7f72\uff0c\u5927\u90e8\u5206\u662fonlyoffice\u670d\u52a1\u5668\u4e0enextcloud\u4e0d\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\uff0c\u800c\u6211\u4eec\u8fd9\u79cd\u60c5\u51b5\u6bd4\u8f83\u7279\u6b8a\uff0c\u9700\u8981\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u3002<\/p>\n\n\n\n<p>\u8fd8\u6ca1\u6709\u641e\u61c2\u4e3a\u4ec0\u4e48\u628aonlyoffice\u90e8\u7f72\u5728docker\u4e0e\u4e3b\u673a\u8fdb\u884c\u901a\u4fe1\u7684\u65f6\u5019\uff0c\u4f1a\u51fa\u73b0\u8bc1\u4e66\u6821\u9a8c\u9519\u8bef\uff0c\u5927\u6982\u662f\u56e0\u4e3anextcloud\u7684\u5916\u7f51\u57df\u540d\u6709\u8bc1\u4e66\uff0c\u5185\u7f51\u6ca1\u6709\u7533\u8bf7\u8bc1\u4e66\uff0c\u8bf7\u6c42\u5168\u5728nginx\u90a3\u8fb9\u8f6c\u53d1\u4e86\u3002<\/p>\n\n\n\n<p>\u603b\u800c\u8a00\u4e4b\uff0c\u628aonlyoffice\u653e\u5728\u4e3b\u673a\u4e0a\uff0c\u95ee\u9898\u89e3\u51b3\u3002\u6709\u65f6\u5019\uff0c\u80fd\u505a\u5bf9\u6bd4\u778e\u6363\u9f13\u66f4\u6709\u7528\u3002\u5148\u4e86\u89e3\u6b63\u786e\u7684\u4e1c\u897f\u662f\u4ec0\u4e48\uff0c\u624d\u80fd\u66f4\u597d\u5730\u63a2\u7a76\u9519\u8bef\u6240\u5728\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u540e\u7eed<\/h2>\n\n\n\n<p>\u5173\u6389onlyoffice\u4e3b\u673a\u7684dns\u89e3\u6790\u4e4b\u540e\uff0c\u518d\u6253\u5f00\u62a5\u9519\u4e86\uff0c\u867d\u7136\u6267\u884cocc\u547d\u4ee4\u4ecd\u7136\u662f\u6210\u529f\u3002\u8fd9\u610f\u5473\u7740\u8bf7\u6c42\u8fd8\u662f\u5230\u5916\u7f51\u8d70\u4e86\u4e00\u5708\u3002<\/p>\n\n\n\n<p>\u770b\u6765\u6211\u8fd8\u6ca1\u6709\u505a\u5230\u5185\u7f51\u89e3\u6790\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u7ae0\uff1a<\/p>\n\n\n\n<p><a href=\"http:\/\/www.ddbq.net\/2021\/01\/dzzoffice%E9%85%8D%E7%BD%AEonlyoffice%E4%B8%8Essl%E5%AE%9E%E7%8E%B0https%E8%AE%BF%E9%97%AE\/\">DZZOFFICE\u914d\u7f6eONLYOFFICE\u4e0eSSL\u5b89\u5168\u8bc1\u4e66\u4f7f\u7528\u7b14\u8bb0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u5728\u4e00\u8d77\u6709\u4ec0\u4e48\u4f5c\u7528\uff1a nextcloud: \u7c7b\u4f3c\u767e\u5ea6\u7f51\u76d8\u4e4b\u7c7b\u7684\u5de5\u5177\uff0c\u80fd\u8ba9\u4f60\u5b58\u653e\u5404\u79cd\u6587\u4ef6\u3002\u5f53\u7136\u56e0\u4e3a\u4e91 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9,10],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-softinstall","tag-nextcloud","tag-onlyoffice"],"_links":{"self":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":6,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}