{"id":97,"date":"2024-04-30T16:17:40","date_gmt":"2024-04-30T08:17:40","guid":{"rendered":"https:\/\/blog.superfyx.top\/?p=97"},"modified":"2024-04-30T16:17:40","modified_gmt":"2024-04-30T08:17:40","slug":"%e9%a1%b9%e7%9b%ae%e9%83%a8%e7%bd%b2%e5%b9%b6%e4%b8%94%e6%98%a0%e5%b0%84%e4%b8%8b%e8%bd%bd%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/blog.superfyx.top\/?p=97","title":{"rendered":"\u9879\u76ee\u90e8\u7f72\u5e76\u4e14\u6620\u5c04\u4e0b\u8f7d\u5730\u5740"},"content":{"rendered":"\n<p>\u524d\u9762\u6587\u7ae0\u91cc\u6709\u4e2a\u9700\u6c42\u5c31\u662f\u4e0a\u4f20KML\u822a\u70b9\u5230\u670d\u52a1\u5668\u5e76\u4e14\u4ece\u670d\u52a1\u5668\u4e0b\u8f7d\u4e0b\u6765\uff0c\u6574\u4e2a\u6d41\u7a0b\u5176\u5b9e\u5012\u4e5f\u4e0d\u590d\u6742\uff0c\u4f46\u662f\u540e\u7eed\u90e8\u7f72\u7684\u65f6\u5019\u505a\u4e2a\u7b80\u5355\u53c2\u8003\uff0c\u6548\u7387\u4f1a\u63d0\u5347\u5f88\u591a\uff1a<\/p>\n\n\n\n<p>\u9996\u5148\u662f\u4ee3\u7801\u91cc\u7684\u7684yml\u6587\u4ef6\u5b58\u50a8\u8def\u5f84\u5148\u6307\u5411nginx\u5bf9\u5e94\u7684\u5730\u5740\uff0c\u6bd4\u5982\u6211\u7684\u5c31\u662f\u57df\u540d\u4e0b\u7684\/home\/xxx\/xxx\/upload\u5730\u5740\u3002\u8fd9\u6837jar\u5305\u4e0a\u4f20\u6587\u4ef6\u7684\u4f4d\u7f6e\u53ef\u4ee5\u5728nginx\u91cc\u6620\u5c04\u51fa\u6765\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982yml\u91cc\u5bf9\u5e94\u7684\u4f4d\u7f6e\uff1aapplication.yml<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>spring:\r\n  application:\r\n    name: xxx\r\n  servlet:\r\n    multipart:\r\n      max-file-size: 50MB\r\n      max-request-size: 50MB\r\n\r\nserver:\r\n  port: 8088\r\n\r\nfile:\r\n  upload:\r\n    url: \/home\/xxx\/upload\r\n  save:\r\n    flightCourse: \/home\/xxx\/save\r\nlogging:\r\n  file:\r\n    name: logs\/xxx.log<\/code><\/pre>\n\n\n\n<p>\u90a3\u4e48nginx\u7684\u57df\u540d\u6307\u5411\u6216\u8005ip\u6307\u5411\u4e5f\u8981locate\u5230\/home\/xxx\/\u91cc\uff1anginx.conf<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>server\n    {\n        listen 80;\n        #listen &#91;::]:80;\n        server_name blog.superfyx.top ;\n        index index.html index.htm index.php default.html default.htm default.php;\n        root  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d71daf\" class=\"has-inline-color\">\/home\/xxx;<\/mark>\n\n        #include rewrite\/none.conf;\n        #error_page   404   \/404.html;\n\n        # Deny access to PHP files in specific directory\n        #location ~ \/(wp-content|uploads|wp-includes|images)\/.*\\.php$ { deny all;    }\n\n        include enable-php.conf;\n        location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf)$\n        {\n            expires      30d;\n        }\n        location ~ .*\\.(js|css)?$\n        {\n            expires      12h;\n        }\n        location ~ \/.well-known {\n            allow all;\n        }\n        location ~ \/\\.\n        {\n            deny all;\n        }\n        location \/api {\r\n            <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fb12a1\" class=\"has-inline-color\">proxy_pass http:\/\/xxx.xxx.xxx.xxx:\u7aef\u53e3;<\/mark>\r\n            proxy_set_header Host $http_host;\r\n            proxy_set_header X-Real-IP $remote_addr;\r\n        }\r\n        access_log off;\r\n    }\r<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u53ef\u4ee5\u628a\u6587\u4ef6\u5b58\u50a8\u5230\u672c\u5730\u540e\u518d\u901a\u8fc7\u62fc\u63a5\u5730\u5740\uff0c\u8fd4\u56de\u4e0b\u8f7d\u5730\u5740\uff0c\u7528\u6237\u901a\u8fc7\u57df\u540d\u62fc\u63a5\u8def\u5f84\u5c31\u53ef\u4ee5\u4e0b\u8f7d\u6587\u4ef6<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#de2182\" class=\"has-inline-color\">tips:\u6ce8\u610fIP\u7aef\u53e3\u8981\u653e\u5f00\uff0c\u91cd\u542fnginx<\/mark><\/p>\n\n\n\n<p>\u90a3\u4e48\u670d\u52a1\u7684\u6587\u4ef6\u4e0a\u4f20\u6216\u8005\u6587\u4ef6\u7684\u4e0b\u8f7d\u6574\u4e2a\u6d41\u7a0b\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u5c31\u901a\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u9762\u6587\u7ae0\u91cc\u6709\u4e2a\u9700\u6c42\u5c31\u662f\u4e0a\u4f20KML\u822a\u70b9\u5230\u670d\u52a1\u5668\u5e76\u4e14\u4ece\u670d\u52a1\u5668\u4e0b\u8f7d\u4e0b\u6765\uff0c\u6574\u4e2a\u6d41\u7a0b\u5176\u5b9e\u5012\u4e5f\u4e0d\u590d\u6742\uff0c\u4f46\u662f\u540e\u7eed\u90e8\u7f72\u7684\u65f6\u5019\u505a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/posts\/97"}],"collection":[{"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":4,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.superfyx.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}