{"id":201180,"date":"2020-11-24T17:43:22","date_gmt":"2020-11-24T09:43:22","guid":{"rendered":"http:\/\/4563.org\/?p=201180"},"modified":"2020-11-24T17:43:22","modified_gmt":"2020-11-24T09:43:22","slug":"oracle-%e9%82%a3%e9%87%8c%e8%96%85%e7%9a%84%e7%be%8a%e6%af%9b%e7%94%a8%e4%b8%8d%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=201180","title":{"rendered":"Oracle \u90a3\u91cc\u8585\u7684\u7f8a\u6bdb\u7528\u4e0d\u4e86"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Oracle \u90a3\u91cc\u8585\u7684\u7f8a\u6bdb\u7528\u4e0d\u4e86               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : q9OxQg <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u662f\u9ad8\u9f84\u6587\u79d1\u751f\u3002 \u6211\u5728 Oralce \u90a3\u91cc\u8585\u4e86\u4e2a\u7f8a\u6bdb\u3002\u5b89\u88c5\u4e86 Ubuntu 20.04 \uff0c\u539f\u56e0\u662f Ubuntu \u5b89\u88c5 Rocket Chat \u548c NextCloud \u6700\u5bb9\u6613\u3002 \u7ed3\u679c\u5b89\u88c5\u597d\u4e86 Rocket Chat\uff0c\u5728\u4e92\u8054\u7f51\u4e0a\u7528\u6d4f\u89c8\u5668\u4e0d\u80fd access \u3002 \u5220\u6389\u673a\u5668\u91cd\u65b0\u6765\u3002\u8fd9\u6b21\u7528\u811a\u672c\u5b89\u88c5\u4e86 NextCloud\uff0c\u65e0\u89c6\u811a\u672c\u8bf4\u5185\u5b58\u53ea\u6709 1G \u7684\u63d0\u9192\uff0c\u5b89\u88c5\u6210\u529f\uff0c\u7528 SSH Key \u767b\u5f55\u53ef\u4ee5\u770b\u89c1\u7528\u7b26\u53f7\u62fc\u6210\u7684 Next Cloud \u7684\u6807\uff0cWAN IP \u548c LAN IP \u548c Hostname \u90fd\u5217\u51fa\u6765\u4e86\uff0cping WAN IP \u53ef\u4ee5 ping \u5230\uff0c\u5e9f\u8bdd\uff0c\u5728 VM \u91cc\u9762 ping \u81ea\u5df1\u7684 IP\uff0c\u81ea\u7136\u662f\u53ef\u4ee5\u3002 \u4f46\u662f\u5728 Internet \u4e0a\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee https:\/\/IP\/nextcloud \u60f3\u8bbe\u7f6e Nextcloud\uff0c\u8bbf\u95ee\u4e0d\u5230\uff0c\u4e8e\u662f\u5728 Internet \u4e0a\u9762 ping \u8fd9\u4e2a VM \u7684 IP\uff0cping \u4e0d\u5230\u3002 \u731c\u60f3\u975e\u5e38\u53ef\u80fd\u662f Oracle VM \u7684\u9632\u706b\u5899\u6ca1\u6709\u5f04\u597d\uff1f\u5230\u5904\u641c\u7d22\uff0c\u5404\u4e2a tab \u53bb\u5c1d\u8bd5\uff0c\u5728 Oracle VM \u7684 VCN (Virtual Clould Network)\u7ba1\u7406\u91cc\u9762\u7684 Internet Gateway\uff0cRoute Rules \u770b\u4e86\u4e0b\uff0c\u6ca1\u6709\u770b\u5230\u4ec0\u4e48\u5f02\u5e38\u3002Default Security List \u4e0b\u9762 Ingress Rules \u91cc\u9762\u4e5f\u52a0\u4e86\u4e24\u6761\uff0c\u5141\u8bb8 80 \u548c 443 \u7aef\u53e3\u3002 \u4f46\u662f\u8fd8\u662f\u4e0d\u80fd\u8bbf\u95ee https:\/\/IP\/nextcloud\uff0c\u8fd8\u662f\u8fde IP \u4e5f ping \u4e0d\u5230\u3002 \u6211\u5c31\u662f\u60f3\u8bd5\u8bd5\u81ea\u5df1\u642d\u4e2a Nextcloud\uff0c\u5728\u4e24\u4e2a VPS \u4e0a\u8bd5\u8fc7\uff0c\u5728\u81ea\u5df1\u5bb6\u91cc\u7684 TureNas \u91cc\u9762\u4e5f\u5b89\u88c5\u8fc7\u63d2\u4ef6\uff0c\u4e5f\u662f\u4e0d\u6210\u529f\u3002\u8fd9\u4e2a Oracle \u7684\u4e0d\u6210\u529f\u6700\u5f7b\u5e95\uff0c\u4e0d\u8981\u8bf4 Nextcloud\uff0c\u8fde IP \u90fd ping \u4e0d\u5230\u3002 \u5404\u4f4d\u5927\u4f6c\uff0cany thought \uff1f\u5148\u8c22\u8c22\u5566\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4104817\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BigOldBrother <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u80fd\u662f`icmp(Internet Control Message Protocol)`\u88ab\u7981\u7528\u4e86\u5bfc\u81f4\u7684\u95ee\u9898\u3002\u4f7f\u7528 iptables -L INPUT &#8211;line-numbers \u67e5\u770b\u4e00\u4e0b iptable\uff0c\u5982\u679c\u6709\u4e00\u6761\u00b76 REJECT all &#8212; anywhere anywhere reject-with icmp-host-prohibited\u00b7\u5c31\u8bf4\u660e\u662f iptable \u7684\u95ee\u9898\uff0c\u7528`iptables -D INPUT 6 \uff08\u4f60\u7684\u884c\u53f7\uff09`\u5220\u6389\u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104818\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : q9OxQg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @BigOldBrother \u5148\u8c22\u8c22\u3002\u6211\u5c3d\u5feb\u5c1d\u8bd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104819\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : q9OxQg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @BigOldBrother worked like charm! \u8c22\u8c22\uff0c\u548c\u4f60\u8bf4\u7684\u4e00\u6a21\u4e00\u6837\uff0c\u8fde\u884c\u53f7\u90fd\u662f\u5bf9\u7684\uff0c\u6700\u540e\u4e00\u884c\uff0c\u4e5f\u662f\u7b2c\u516d\u884c\u7684\u786e\u662f REJECT all\uff0c\u6309\u4f60\u7684\u6307\u5bfc\u5220\u53bb\uff0c\u5c31\u53ef\u4ee5\u8bbf\u95ee nextcloud \u4e86\u3002\u4e0d\u8fc7\u91cd\u542f\u4e86 VM \u540e\uff0c\u53c8\u4e0d\u80fd\u8bbf\u95ee\u4e86\uff0cssh \u8fdb\u53bb\u4e00\u770b\uff0c\u53d1\u73b0\u8fd9\u6761\u53c8\u56de\u6765\u4e86\uff0c\u53c8\u5220\u9664\u4e86\u5b83\uff0c\u53c8\u53ef\u4ee5\u4e86\u3002\u518d\u6b21\u611f\u8c22\u5927\u4f6c\u7684\u7ec6\u5fc3\u56de\u7b54\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Oracle \u90a3\u91cc\u8585\u7684\u7f8a\u6bdb\u7528\u4e0d\u4e86 &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\/201180"}],"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=201180"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/201180\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201180"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}