{"id":404,"date":"2024-08-15T23:54:16","date_gmt":"2024-08-15T15:54:16","guid":{"rendered":"https:\/\/blog.jason-lam.com\/?p=404"},"modified":"2024-08-15T23:54:49","modified_gmt":"2024-08-15T15:54:49","slug":"%e6%90%ad%e5%bb%bavps%e7%9a%84%e6%87%b6%e4%ba%ba%e5%ae%89%e8%a3%9d%e5%8c%85","status":"publish","type":"post","link":"https:\/\/blog.jason-lam.com\/?p=404","title":{"rendered":"\u642d\u5efaVPS\u7684\u61f6\u4eba\u5b89\u88dd\u5305"},"content":{"rendered":"\n<p>Linux\u4e00\u76f4\u4ee5\u4f86\u5c31\u4fc2\u300c\u73a9\u6b7b\u4eba\u300d\u7684\u64cd\u4f5c\u7cfb\u7d71\u3002\u5c24\u5176\u662f\u90a3\u500bDependence\uff0c\u4f60\u8981\u5b89\u88dd\u5957\u4ef6A\u55ce\uff0c\u8acb\u5148\u5b89\u88ddB\uff0c\u8f9b\u8f9b\u82e6\u82e6\u627e\u5230B\u4e86\uff0c\u53c8\u518d\u544a\u8a34\u4f60\u5b89\u88ddB\u5c31\u5fc5\u9808\u5148\u5b89\u88ddC\uff0c\u4f60\u80fd\u4e0d\u80fd\u4e00\u6b21\u8b1b\u6e05\u695a\u5440\uff01<\/p>\n\n\n\n<p>\u5c31\u4ee5\u67b6\u8a2d\u9019\u500bBlog\u70ba\u4f8b\uff0c\u81f3\u5c11\u8981\u5b89\u88dd\u4ee5\u4e0b\u5e7e\u5957\u4ef6\uff1a<br>-\u3009Nginx, PHP, MySQL, FTPD, WordPress<br>\u6211\u7576\u7136\u6709\u8a66\u904e\u628a\u4ed6\u5011\u4e00\u4e00\u7684\u627e\u9f4a\u4e86\uff0c\u518d\u82b1\u5e7e\u5929\u6642\u9593\u628a\u4ed6\u5011\u5b89\u88dd\u597d\u3002\u7136\u5f8c\u5462\uff0c\u5c31\u50cf\u4f60\u6253\u958b\u4e00\u672c\u82f1\u6587\u66f8\u4e00\u6a23\uff1a\u88e1\u9762\u6bcf\u4e00\u500b\u5b57\u90fd\u4f60\u90fd\u53ef\u80fd\u8a8d\u8b58\uff0c\u4f46\u52a0\u8d77\u4f86\u5c31\u662f\u4e0d\u77e5\u5230\u662f\u751a\u9ebc\u610f\u601d\u3002\u6211\u81ea\u5df1\u5c31\u662f\u82b1\u4e86\u5e7e\u5929\u6642\u9593\u624b\u52d5\u5b89\u88dd\u597d\u4e86\uff0c\u6bcf\u500b\u5957\u4ef6\u7684\u8a2d\u7f6e\u5c31\u5df2\u7d93\u8b93\u4f60\u5920\u6c23\u9912\u5566\u3002\u975e\u5e38\u5e78\u904b\u5730\u4f60set\u597d\u76f8\u95dc\u8a2d\u7f6e\u5f8c\uff0c\u8981\u4ed6\u5011\u5168\u90e8\u4e00\u8d77\u6b63\u5e38\u904b\u4f5c\uff08\u5c31\u662f\u5728\u904b\u884c\u6642\u4e0d\u8981\u51fa\u73fe\u5404\u5f0f\u5404\u6a23\u7684Errors\uff0c\u57fa\u672c\u4e0a\u662f\u4e0d\u53ef\u80fd\u7684\u4efb\u52d9\uff09\u53c8\u8981\u82b1\u4e00\u6bb5\u9817\u9577\u7684\u6642\u9593\u3002<\/p>\n\n\n\n<p>\u5728\u4e0d\u65b7\u5c0b\u627e\u89e3\u6c7a\u65b9\u6848\u7684\u904e\u7a0b\u4e2d\uff0c\u627e\u5230\u4ee5\u4e0b\u5169\u500b\u61f6\u4eba\u5305\uff0c\u5206\u5225\u5728\u4e0d\u540c\u7684Cloud\u670d\u52d9\u5668\u4e0a\u8b49\u660e\u53ef\u4ee5\u4f7f\u7528\uff08AWS, \u963f\u91cc\u96f2\uff0c\u83ef\u70ba\u96f2\uff09\u3002\u7e3d\u7b97\u6c92\u82b1\u9322\u7684\u60c5\u6cc1\u4e0b\u67b6\u8a2d\u4e86\u9019\u500b\u7db2\u7ad9\uff08\u5176\u672c\u4e0a\u53ef\u4ee5\u8aaa\u5728\u8edf\u4ef6\uff0cVPS\uff0c\u57df\u540d\u4e0a\u90fd\u627e\u5230\u514d\u8cbb\u7684\u8cc7\u6e90\uff09\uff0c\u5be6\u73fe\u5b8c\u5168\u514d\u8cbb\u5728\u4e0a\u8ff0\u4e09\u500b\u96f2\u670d\u5668\u4e2d\u904b\u884c\u8d77\u4f86\uff0c\u4f46\u7576\u4e2d\u4e5f\u662f\u6709\u4e00\u4e9b\u7529\u6f0f\u3002<\/p>\n\n\n\n<p>\u6709\u4e9b\u60c5\u6cc1\uff0c\u90e8\u5206\u96f2\u670d\u52d9\u5546\u7e3d\u6709\u81ea\u5df1\u7684\u500b\u6027\uff0c\u5c31\u662f\u7528\u4e0d\u4e86\u61f6\u4eba\u5305\uff0c\u8981\u81ea\u5df1\u6162\u6162\u88dd\uff0c\u539f\u56e0\u662f\u751a\u9ebc\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\uff0c\u6211\u7684\u89e3\u6c7a\u65b9\u53bb\u5c31\u662f\u4e0d\u53bb\u7528\u5b83\uff0c\u6539\u7528\u5176\u4ed6\u53ef\u4ee5\u5077\u61f6\u7684VPS\u3002<\/p>\n\n\n\n<p>\uff081\uff09 <a href=\"https:\/\/lnmp.org\/\" data-type=\"link\" data-id=\"https:\/\/lnmp.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">LMNP\u4e00\u9375\u5b89\u88dd\u5305<\/a>\uff1a\u5df2\u7d93\u4e86\u597d\u5927\u7684\u5fd9\u3002\u4e00\u9375\u5b89\u88dd\u4e86MySQL, Nginx\u548cPHP\uff0c\u540c\u6642\u9084\u53ef\u4ee5\u5e6b\u4f60\u5feb\u901f\u8a2d\u7f6eVirtual Hosting\u53ca\u7533\u8acb\u548c\u90e8\u7f6e\u514d\u8cbb\u7684SSL\u8b49\u66f8\u3002 <br>\uff082\uff09<a href=\"https:\/\/www.bt.cn\/\" data-type=\"link\" data-id=\"https:\/\/www.bt.cn\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5bf6\u5854\u9762\u7248<\/a>\uff1a\u6bd4LMNP\u529f\u80fd\u66f4\u5f37\u5927\uff0c\u4e5f\u662f\u6700\u9069\u5408\u50bb\u74dc\u7d1a\u7684\u4f7f\u7528\u8005\uff08\u5176\u5be6\u4e5f\u4e0d\u50bb\u74dc\uff0c\u56e0\u70ba\u6211\u59cb\u7d42\u8a8d\u70ba\u5728Linux\u7684\u4e16\u754c\u88e1\uff0c\u50bb\u74dc\u662f\u751f\u5b58\u4e0d\u4e86\u7684\u3002\uff09\u5bf6\u5854\u53ef\u4ee5\u4e00\u9375\u5b89\u88dd\u548c\u90e8\u7f6e\u7684\u5957\u4ef6\u66f4\u591a\uff0c\u5c31\u4ee5WordPress\u5c31\u4f8b\uff0c\u5c31\u771f\u7684\u53ef\u4ee5\u7c68\u4e00\u500b\u5168\u65b0\u5b89\u88dd\uff0c\u751a\u9ebc\u90fd\u6c92\u6709\u7684Linux\u7cfb\u7d71\uff0c\u4e00\u9375\u5b8c\u6210\u90e8\u7f6e\u4e26\u4f7f\u7528\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u4e00\u76f4\u4ee5\u4f86\u5c31\u4fc2\u300c\u73a9\u6b7b\u4eba\u300d\u7684\u64cd\u4f5c\u7cfb\u7d71\u3002\u5c24\u5176\u662f\u90a3\u500bDependence\uff0c\u4f60\u8981\u5b89\u88dd\u5957\u4ef6A\u55ce\uff0c\u8acb\u5148\u5b89\u88ddB\uff0c\u8f9b\u8f9b\u82e6\u82e6\u627e\u5230B\u4e86\uff0c\u53c8\u518d\u544a\u8a34\u4f60\u5b89\u88ddB\u5c31\u5fc5\u9808\u5148\u5b89\u88ddC\uff0c\u4f60\u80fd\u4e0d\u80fd\u4e00\u6b21\u8b1b\u6e05\u695a\u5440\uff01 \u5c31\u4ee5\u67b6\u8a2d\u9019\u500bBlog\u70ba\u4f8b\uff0c\u81f3\u5c11\u8981\u5b89\u88dd\u4ee5\u4e0b\u5e7e\u5957\u4ef6\uff1a-\u3009Nginx, PHP, MySQL, FTPD, WordPress\u6211\u7576\u7136\u6709\u8a66\u904e\u628a\u4ed6\u5011\u4e00\u4e00\u7684\u627e\u9f4a\u4e86\uff0c\u518d\u82b1\u5e7e\u5929\u6642\u9593\u628a\u4ed6\u5011\u5b89\u88dd\u597d\u3002\u7136\u5f8c\u5462\uff0c\u5c31\u50cf\u4f60\u6253\u958b\u4e00\u672c\u82f1\u6587\u66f8\u4e00\u6a23\uff1a\u88e1\u9762\u6bcf\u4e00\u500b\u5b57\u90fd\u4f60\u90fd\u53ef\u80fd\u8a8d\u8b58\uff0c\u4f46\u52a0\u8d77\u4f86\u5c31\u662f\u4e0d\u77e5\u5230\u662f\u751a\u9ebc\u610f\u601d\u3002\u6211\u81ea\u5df1\u5c31\u662f\u82b1\u4e86\u5e7e\u5929\u6642\u9593\u624b\u52d5\u5b89\u88dd\u597d\u4e86\uff0c\u6bcf\u500b\u5957\u4ef6\u7684\u8a2d\u7f6e\u5c31\u5df2\u7d93\u8b93\u4f60\u5920\u6c23\u9912\u5566\u3002\u975e\u5e38\u5e78\u904b\u5730\u4f60set\u597d\u76f8\u95dc\u8a2d\u7f6e\u5f8c\uff0c\u8981\u4ed6\u5011\u5168\u90e8\u4e00\u8d77\u6b63\u5e38\u904b\u4f5c\uff08\u5c31\u662f\u5728\u904b\u884c\u6642\u4e0d\u8981\u51fa\u73fe\u5404\u5f0f\u5404\u6a23\u7684Errors\uff0c\u57fa\u672c\u4e0a\u662f\u4e0d\u53ef\u80fd\u7684\u4efb\u52d9\uff09\u53c8\u8981\u82b1\u4e00\u6bb5\u9817\u9577\u7684\u6642\u9593\u3002 \u5728\u4e0d\u65b7\u5c0b\u627e\u89e3\u6c7a\u65b9\u6848\u7684\u904e\u7a0b\u4e2d\uff0c\u627e\u5230\u4ee5\u4e0b\u5169\u500b\u61f6\u4eba\u5305\uff0c\u5206\u5225\u5728\u4e0d\u540c\u7684Cloud\u670d\u52d9\u5668\u4e0a\u8b49\u660e\u53ef\u4ee5\u4f7f\u7528\uff08AWS, \u963f\u91cc\u96f2\uff0c\u83ef\u70ba\u96f2\uff09\u3002\u7e3d\u7b97\u6c92\u82b1\u9322\u7684\u60c5\u6cc1\u4e0b\u67b6\u8a2d\u4e86\u9019\u500b\u7db2\u7ad9\uff08\u5176\u672c\u4e0a\u53ef\u4ee5\u8aaa\u5728\u8edf\u4ef6\uff0cVPS\uff0c\u57df\u540d\u4e0a\u90fd\u627e\u5230\u514d\u8cbb\u7684\u8cc7\u6e90\uff09\uff0c\u5be6\u73fe\u5b8c\u5168\u514d\u8cbb\u5728\u4e0a\u8ff0\u4e09\u500b\u96f2\u670d\u5668\u4e2d\u904b\u884c\u8d77\u4f86\uff0c\u4f46\u7576\u4e2d\u4e5f\u662f\u6709\u4e00\u4e9b\u7529\u6f0f\u3002 \u6709\u4e9b\u60c5\u6cc1\uff0c\u90e8\u5206\u96f2\u670d\u52d9\u5546\u7e3d\u6709\u81ea\u5df1\u7684\u500b\u6027\uff0c\u5c31\u662f\u7528\u4e0d\u4e86\u61f6\u4eba\u5305\uff0c\u8981\u81ea\u5df1\u6162\u6162\u88dd\uff0c\u539f\u56e0\u662f\u751a\u9ebc\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\uff0c\u6211\u7684\u89e3\u6c7a\u65b9\u53bb\u5c31\u662f\u4e0d\u53bb\u7528\u5b83\uff0c\u6539\u7528\u5176\u4ed6\u53ef\u4ee5\u5077\u61f6\u7684VPS\u3002 \uff081\uff09 LMNP\u4e00\u9375\u5b89\u88dd\u5305\uff1a\u5df2\u7d93\u4e86\u597d\u5927\u7684\u5fd9\u3002\u4e00\u9375\u5b89\u88dd\u4e86MySQL, Nginx\u548cPHP\uff0c\u540c\u6642\u9084\u53ef\u4ee5\u5e6b\u4f60\u5feb\u901f\u8a2d\u7f6eVirtual Hosting\u53ca\u7533\u8acb\u548c\u90e8\u7f6e\u514d\u8cbb\u7684SSL\u8b49\u66f8\u3002 \uff082\uff09\u5bf6\u5854\u9762\u7248\uff1a\u6bd4LMNP\u529f\u80fd\u66f4\u5f37\u5927\uff0c\u4e5f\u662f\u6700\u9069\u5408\u50bb\u74dc\u7d1a\u7684\u4f7f\u7528\u8005\uff08\u5176\u5be6\u4e5f\u4e0d\u50bb\u74dc\uff0c\u56e0\u70ba\u6211\u59cb\u7d42\u8a8d\u70ba\u5728Linux\u7684\u4e16\u754c\u88e1\uff0c\u50bb\u74dc\u662f\u751f\u5b58\u4e0d\u4e86\u7684\u3002\uff09\u5bf6\u5854\u53ef\u4ee5\u4e00\u9375\u5b89\u88dd\u548c\u90e8\u7f6e\u7684\u5957\u4ef6\u66f4\u591a\uff0c\u5c31\u4ee5WordPress\u5c31\u4f8b\uff0c\u5c31\u771f\u7684\u53ef\u4ee5\u7c68\u4e00\u500b\u5168\u65b0\u5b89\u88dd\uff0c\u751a\u9ebc\u90fd\u6c92\u6709\u7684Linux\u7cfb\u7d71\uff0c\u4e00\u9375\u5b8c\u6210\u90e8\u7f6e\u4e26\u4f7f\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=404"}],"version-history":[{"count":14,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}