{"id":499,"date":"2024-05-19T01:44:17","date_gmt":"2024-05-18T17:44:17","guid":{"rendered":"https:\/\/blog.mada.press\/?p=499"},"modified":"2024-05-19T16:11:46","modified_gmt":"2024-05-19T08:11:46","slug":"centos-codeserver%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\/19\/centos-codeserver%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95\/","title":{"rendered":"CentOS CodeServer\u5b89\u88c5\u8bb0\u5f55"},"content":{"rendered":"\n<p>\u7528\u5b9d\u5854\u4e0b\u7684docker\u955c\u50cf\u65e0\u6cd5\u50cf\u539f\u6765\u4e00\u6837\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u627e\u5230\u7684CentOS\u4e0b\u7528\u4e0a\u9762\u7684\u955c\u50cf\u3010codercom\/code-server:latest\u3011\u65e0\u6cd5\u914d\u7f6eSSL\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u5b98\u65b9\u7684\u72ec\u7acb\u7248\u672c\u5b89\u88c5\u65b9\u6cd5\uff0c\u5728python\u5b89\u88c5\u4e0a\u9047\u5230\u4e86\u95ee\u9898\u3002\u3002\u3002<br>\u8bbf\u95ee\u5730\u5740<a href=\"https:\/\/coder.com\/docs\/code-server\/latest\/install#fedora-centos-rhel-suse\">https:\/\/coder.com\/docs\/code-server\/latest\/install#fedora-centos-rhel-suse<\/a><\/p>\n\n\n\n<p>\u56de\u5f52\u5b9d\u5854\u7684docker\u5b89\u88c5\u65b9\u6cd5\u907f\u514d\u73af\u5883\u51b2\u7a81\uff0c\u5b89\u88c5\u540e\u9700\u89e3\u51b3\u4ee3\u7406\u914d\u7f6e\u95ee\u9898\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bbe\u7f6e\u597d\u57df\u540d\u5e76\u53d6\u5f97SSL\u8bc1\u4e66\u540e\uff0c\u914d\u7f6e\u53cd\u5411\u4ee3\u7406\uff0c\u6307\u5411IP+\u7aef\u53e3<br>\u53cd\u5411\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:#e2e2e2\" class=\"has-inline-color\">#PROXY-START\/\n\nlocation ^~ \/\n{\n    proxy_pass http:\/\/45.130.23.206:8444;\n    #proxy_set_header Host 45.130.23.206;\n    proxy_set_header Host $host;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    #proxy_set_header REMOTE-HOST $remote_addr;\n    proxy_set_header X-Forwarded-Proto $scheme;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection $connection_upgrade;\n    proxy_http_version 1.1;\n    # proxy_hide_header Upgrade;\n\n    add_header X-Cache $upstream_cache_status;\n    #Set Nginx Cache\n\n    #set $static_fileLigRmAjU 0;\n    # Set cache header for static files\n    \n    if ( $uri ~* \"\\.(gif|png|jpg|css|js|woff|woff2)$\" )\n    {\n        set $static_fileLigRmAjU 1;\n        expires 1m;\n    }\n    if ( $static_fileLigRmAjU = 0 )\n\n    {\n        add_header Cache-Control no-cache;\n    }\n}\n#PROXY-END\/<\/mark><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fdb\u5165VS Code \u754c\u9762\u540e\uff0c\u5728\u5b89\u88c5python\u65f6\uff0c\u9700\u8981\u8fd4\u56dedocker\u7ec8\u7aef\uff0c\u91cd\u65b0\u914d\u7f6e\u5bb9\u5668\u4e2d\u76f8\u5e94\u8d26\u6237\u7684\u5bc6\u7801\uff08\u5b9d\u5854\u8fd9\u4e2a\u662fabc\uff09<\/li>\n<\/ul>\n\n\n\n<p>PS\uff1a\u5728\u641c\u7d22\u65f6\u5019\u53c8\u627e\u5230\u4e86\u514d\u8d39\u53ef\u7528\u7684\u5728\u7ebfIDE\u5e73\u53f0\uff0c\u63d0\u4f9b\u514d\u8d39\u7684GPU\u7b97\u529b\uff0c\u5fae\u4fe1\u626b\u7801\u767b\u5f55\u5373\u53ef\u3002\u8bbf\u95ee\u5730\u5740&gt;&gt;<a href=\"https:\/\/ide.cloud.tencent.com\/\">Cloud Studio (tencent.com)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u5b9d\u5854\u4e0b\u7684docker\u955c\u50cf\u65e0\u6cd5\u50cf\u539f\u6765\u4e00\u6837\u6b63\u5e38\u542f\u52a8\u3002 \u6700\u540e\u627e\u5230\u7684CentOS\u4e0b\u7528\u4e0a &hellip; <a href=\"https:\/\/blog.mada.press\/index.php\/2024\/05\/19\/centos-codeserver%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-499","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/499","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=499"}],"version-history":[{"count":11,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":514,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/posts\/499\/revisions\/514"}],"wp:attachment":[{"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/media?parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/categories?post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mada.press\/index.php\/wp-json\/wp\/v2\/tags?post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}