{"id":489,"date":"2024-05-12T19:06:03","date_gmt":"2024-05-12T11:06:03","guid":{"rendered":"https:\/\/blog.mada.press\/?p=489"},"modified":"2024-05-12T20:33:27","modified_gmt":"2024-05-12T12:33:27","slug":"%e5%8f%af%e9%81%93%e4%ba%91%e6%8f%92%e4%bb%b6onlyoffice%e9%85%8d%e7%bd%ae%e5%8f%8a%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/blog.mada.press\/index.php\/2024\/05\/12\/%e5%8f%af%e9%81%93%e4%ba%91%e6%8f%92%e4%bb%b6onlyoffice%e9%85%8d%e7%bd%ae%e5%8f%8a%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95\/","title":{"rendered":"\u53ef\u9053\u4e91\u63d2\u4ef6onlyoffice\u914d\u7f6e\u53ca\u5b89\u88c5\u8bb0\u5f55"},"content":{"rendered":"\n<p>\u91cd\u65b0\u5b89\u88c5\u5404\u7c7b\u5e94\u7528\u9879\u76ee\u65f6\uff0c\u5728onlyoffice\u4e0a\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\u3002\u5c1d\u8bd5\u591a\u79cd\u65b9\u6cd5\u4e4b\u540e\uff0c\u53d1\u73b0\u5b98\u65b9\u63d0\u4f9b\u7684\u8fd9\u4e2a\u6700\u597d\u3002\u539f\u6587\u5730\u5740\uff1a<a href=\"https:\/\/docs.kodcloud.com\/setup\/office\/\">OnlyOffice\u7ec4\u4ef6\u7684\u5b89\u88c5\u793a\u4f8b | Kodcloud Documentation<\/a><\/p>\n\n\n\n<p>\u7cfb\u7edf\uff1aCentOS 7.9.2009 x86_64(Py3.7.9)\uff1b\u5b9d\u5854Linux\u9762\u677f8.1.0\uff1b\u53ef\u9053\u4e911.5<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5b89\u88c5\u597d\u53ef\u9053\u4e91\u540e\uff0c\u5229\u7528\u5b9d\u5854\u9762\u677f\u8bbe\u7f6e\u65b0\u3010\u57df\u540d\u3011\uff0c\u5e76\u7533\u8bf7Let&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u3002<\/li>\n\n\n\n<li>\u9009\u62e9\u3010\u4e0b\u8f7d\u8bc1\u4e66\u3011\uff0c\u5c06\u4e0b\u8f7d\u538b\u7f29\u5305-Apache\u6587\u4ef6\u5939\u4e0b\u7684\u3010domain.crt\u3011\u4e0e\u3010privkey.key\u3011\u4e24\u4e2a\u6587\u4ef6\u62f7\u8d1d\u51fa\u6765\uff0c\u91cd\u547d\u540d\u4e3a\u3010onlyoffice.crt\u3011\u4e0e\u3010onlyoffice.key\u3011\u3002<\/li>\n\n\n\n<li>\u5c06\u4e24\u4e2a\u6587\u4ef6\u4e0a\u4f20\u5230CentOS\u7cfb\u7edf\u6839\u76ee\u5f55\u8def\u5f84\u4e2d\u3010\/data\/certs\u3011<\/li>\n\n\n\n<li>\u7ec8\u7aef\u8f93\u5165\u5982\u4e0b\u547d\u4ee4<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -itd --name kodoffice -p 8443:443 \\\n-v \/data\/certs:\/var\/www\/onlyoffice\/Data\/certs \\\nkodcloud\/kodoffice:7.4.1.1\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b8c\u6210\u540e\u5b89\u88c5\u7a0d\u7b49\u7247\u523b\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165 <strong>https:\/\/[\u57df\u540d]:8443\/web\/<\/strong><br>\u5982\u51fa\u73b0\u4ee5\u4e0b\u63d0\u793a\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"766\" height=\"235\" src=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-184716.png\" alt=\"\" class=\"wp-image-490\" srcset=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-184716.png 766w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-184716-300x92.png 300w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-184716-500x153.png 500w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fdb\u5165\u53ef\u9053\u4e91\u684c\u9762-\u63d2\u4ef6\uff0c\u627e\u5230onlyoffice\u63d2\u4ef6\u8fdb\u884c\u914d\u7f6e<br>\u586b\u5165\u521a\u521a\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u7684\u5730\u5740 <strong>https:\/\/[\u57df\u540d]:8443\/web\/<\/strong><br>\u6253\u5f00Word\u6587\u4ef6\u5c1d\u8bd5\u4e0b\u3002\u6211\u7684\u68c0\u6d4b\u867d\u7136\u6ca1\u6709\u6210\u529f\uff0c\u4f46\u4ecd\u7136\u53ef\u4ee5\u6b63\u5e38\u7f16\u8f91Word\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"984\" height=\"749\" src=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-185104.png\" alt=\"\" class=\"wp-image-491\" srcset=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-185104.png 984w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-185104-300x228.png 300w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-185104-768x585.png 768w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-185104-394x300.png 394w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u5728\u672c\u5730\u7535\u8111\uff08\u5c40\u57df\u7f51\u5185\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u7684\u53e6\u5916\u4e00\u4e2a\u65b9\u6cd5\u6765\u914d\u7f6e\u3002<br>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/doc.kodcloud.com\/vip\/#\/onlyoffice\/linux\">Linux\u73af\u5883 &#8211; \u9ad8\u7ea7\u6559\u7a0b (kodcloud.com)<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007-1024x435.png\" alt=\"\" class=\"wp-image-492\" srcset=\"https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007-1024x435.png 1024w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007-300x127.png 300w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007-768x326.png 768w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007-500x212.png 500w, https:\/\/blog.mada.press\/wp-content\/uploads\/2024\/05\/\u5c4f\u5e55\u622a\u56fe-2024-05-12-190007.png 1086w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u914d\u7f6e\u73af\u5883\uff1aWindows11\uff1bxmapp\uff1bWSL2\uff1bDocker<\/p>\n\n\n\n<p>\u542f\u52a8windows\u4e0b\u7684Linux\u5b50\u7cfb\u7edf\uff0c\u7ec8\u7aef\u4e2d\u4f9d\u6b21\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 1.\u4e0b\u8f7d\u76f8\u5173\u8d44\u6e90 (\u590d\u5236\u4e0b\u9762\u6307\u4ee4\u7c98\u8d34\u5230\u7ec8\u7aef\u8fd0\u884c) \ncd ~ &amp; wget https:\/\/static.kodcloud.com\/kod\/source\/onlyoffice\/7.4.1\/officeData.zip &amp; wget https:\/\/static.kodcloud.com\/kod\/source\/onlyoffice\/7.4.1\/kodoffice.tar\n# 2.\u5b89\u88c5 (\u590d\u5236\u4e0b\u9762\u6307\u4ee4\u7c98\u8d34\u5230\u7ec8\u7aef\u8fd0\u884c) \ncurl https:\/\/doc.kodcloud.com\/tools\/office\/linux\/install.sh | sh\n# 3.\u91cd\u542f\u670d\u52a1\nsh ~\/run_office.sh<\/code><\/pre>\n\n\n\n<p>\u7a0d\u7b49\u4e00\u4f1a\u513f\u540e\uff0c\u65e0\u9700\u914d\u7f6e\u5373\u53ef\u76f4\u63a5\u6253\u5f00\u53ef\u9053\u4e91\u4e2d\u7684office\u6587\u4ef6\u5e76\u8fdb\u884c\u7f16\u8f91\u3002<br>\uff08\u8bbf\u95ee\u53ef\u9053\u4e91\u65f6\u5fc5\u987b\u7528IP\uff0c\u4e0d\u80fd\u4f7f\u7528\u81ea\u5b9a\u4e49\u57df\u540d\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cd\u65b0\u5b89\u88c5\u5404\u7c7b\u5e94\u7528\u9879\u76ee\u65f6\uff0c\u5728onlyoffice\u4e0a\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\u3002\u5c1d\u8bd5\u591a\u79cd\u65b9\u6cd5\u4e4b\u540e &hellip; <a href=\"https:\/\/blog.mada.press\/index.php\/2024\/05\/12\/%e5%8f%af%e9%81%93%e4%ba%91%e6%8f%92%e4%bb%b6onlyoffice%e9%85%8d%e7%bd%ae%e5%8f%8a%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":3,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/489\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}