虚拟主机搭建博客教程

在互联网上看到别人布置精美的博客，总想着自己也搭一个，但服务器要不太贵，要不就是国内访问速度太慢，只能放下手来。其实，单纯地搭一个博客，完全没有必要购买一整台服务器，一台便宜的虚拟主机即可。一、购买：许多服务商都有虚拟主机，功能完全相同，购买时最好选择标着香港CN2的机子，网页空间500MB（最低），数据库空间需求很少，甚至10MB就够了（当然没这么低的）。推荐一下我用的。（不是广告）余宽云idc（一定不要买年付区的）（买CN2虚拟主机区的经济型） 500MB+500MB空间 上行1MB/s 下行10MB/s 流量不限 Ping全绿 2元/月二、上传文件购买之后进入管理页面，在文件管理页面选择在线文件管理，将原来的三个文件同时删除，上传Wordpress文件，可在Wordpress官网下载，上传完后，解压，点击解压之后的文件夹wordpress，全选文件，剪切到根目录下粘贴，再将wordpress的压缩包及文件删除。三、绑定域名在域名绑定页面获得本站的IP，然后在域名后台直接新建A记录指向这个IP（CF注意关闭小黄云），然后会在绑定页面添加刚才解析的域名。打开域名，如果进入wordpress安装页面就算成功了。然后在SSL配置页面申请免费的Let's Encrypt SSL证书，并开启强制HTTPS，然后保存。四、安装打开域名，进入安装界面，回到管理页面，复制数据库名和密码，将其填入表格之中，用户名就是数据库名，填写之后提交，简单设置一下。用户名之后无法更改务必填对，请务必填自己的个人邮箱（没有的可以注册一个outlook邮箱），因为有些插件需要验证电子邮件，提交之后就可以去登录了，如果你的域名是xxx.com，那么登录页面就是xxx.com/admin。五、美化教程：可以网上自己找教程，都十分优秀推荐使用argon主题分享一下我的argon主题的JSON：（只需要在导入后在页脚代码那改下日期） {"argon_theme_color":"#fa7298","argon_theme_color_hex_preview":"#fa7298","argon_show_customize_theme_color_picker":false,"argon_enable_immersion_color":"true","argon_darkmode_autoswitch":"time","argon_enable_amoled_dark":"false","argon_card_radius":"15","argon_card_shadow":"big","argon_page_layout":"double","argon_article_list_waterflow":"1","argon_article_list_layout":"1","argon_font":"serif","argon_assets_path":"jsdelivr_fastly","argon_custom_assets_path":"","argon_wp_path":"/","argon_dateformat":"YMD","argon_enable_headroom":"true","argon_toolbar_title":"--hidden--","argon_toolbar_icon":"","argon_toolbar_icon_link":" ","argon_toolbar_blur":"true","argon_banner_title":"MSYDJT‘s blog","argon_banner_subtitle":"一个普通初中生的小博客","argon_banner_size":"fullscreen","argon_page_background_banner_style":"transparent","argon_show_toolbar_mask":true,"argon_banner_background_url":"","argon_banner_background_color_type":"shape-primary","argon_banner_background_hide_shapes":true,"argon_enable_banner_title_typing_effect":"true","argon_banner_typing_effect_interval":"100","argon_page_background_url":"https://msydjt.com/wp-content/uploads/2025/08/【哲风壁纸】二次元-动漫-scaled.jpg","argon_page_background_dark_url":"https://msydjt.com/wp-content/uploads/2025/08/【哲风壁纸】二次元-动漫-2-scaled.jpg","argon_page_background_opacity":"0.7","argon_sidebar_banner_title":"","argon_sidebar_banner_subtitle":"","argon_sidebar_auther_name":"门上一点就通","argon_sidebar_auther_image":"https://msydjt.com/wp-content/uploads/2025/08/cropped-IMG_2651.png","argon_sidebar_author_description":"","argon_sidebar_announcement":"","argon_fab_show_settings_button":"false","argon_fab_show_darkmode_button":"true","argon_fab_show_gotocomment_button":"false","argon_seo_description":"网站描述 (Description Meta 标签)","argon_seo_keywords":"搜索引擎关键词（Keywords Meta 标签）","argon_article_meta":"time|categories|views","argon_show_readingtime":"true","argon_reading_speed":"580","argon_reading_speed_en":"80","argon_reading_speed_code":"10","argon_show_thumbnail_in_banner_in_content_page":"false","argon_first_image_as_thumbnail_by_default":"true","argon_reference_list_title":"参考","argon_show_sharebtn":"true","argon_show_headindex_number":"false","argon_donate_qrcode_url":"","argon_additional_content_after_post":"","argon_related_post":"category,tag","argon_related_post_sort_orderby":"meta_value_num","argon_related_post_sort_order":"DESC","argon_related_post_limit":"10","argon_article_header_style":"article-header-style-2","argon_outdated_info_time_type":"createdtime","argon_outdated_info_days":"1","argon_outdated_info_tip_type":"inpost","argon_outdated_info_tip_content":"本文最后更新于%modify_date_delta% 天前，其中的信息可能已经过时，如有错误请发送邮件到admin@msydjt.com","argon_archives_timeline_show_month":"true","argon_archives_timeline_url":"","argon_footer_html":"&amp;amp;amp;amp;amp;lt;br&amp;amp;amp;amp;amp;gt;\n Powered\n \n &amp;amp;amp;amp;amp;lt;a href="\&amp;amp;amp;amp;amp;amp;quot;https://cn.wordpress.org/\&amp;amp;amp;amp;amp;amp;quot;"&amp;amp;amp;amp;amp;gt;WordPress&amp;amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;amp;gt;\n \n&amp;amp;amp;amp;amp;lt;br&amp;amp;amp;amp;amp;gt;\n\n Copyright\n \n 2025-2025\n MSYDJT\n \n&amp;amp;amp;amp;amp;lt;br&amp;amp;amp;amp;amp;gt;\n\n Running Time\n \n days\n H\n M\n S\n \n&amp;amp;amp;amp;amp;lt;br&amp;amp;amp;amp;amp;gt;\n\n\n\n\n\n","argon_enable_code_highlight":"true","argon_code_theme":"vs2015","argon_code_highlight_hide_linenumber":"true","argon_code_highlight_break_line":"false","argon_code_highlight_transparent_linenumber":"false","argon_math_render":"none","argon_mathjax_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js","argon_mathjax_v2_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-AMS_HTML","argon_katex_cdn_url":"//cdn.jsdelivr.net/npm/katex@0.11.1/dist/","argon_enable_lazyload":"true","argon_lazyload_threshold":"800","argon_lazyload_effect":"fadeIn","argon_lazyload_loading_style":"1","argon_enable_fancybox":"true","argon_enable_zoomify":"false","argon_zoomify_duration":"200","argon_zoomify_easing":"cubic-bezier(0.4,0,0,1)","argon_zoomify_scale":"0.9","argon_enable_pangu":"article","argon_custom_html_head":"","argon_custom_html_foot":"","argon_enable_smoothscroll_type":"1_pulse","argon_enable_into_article_animation":"true","argon_disable_pjax_animation":"false","argon_comment_pagination_type":"page","argon_comment_emotion_keyboard":"true","argon_hide_name_email_site_input":"false","argon_comment_need_captcha":"false","argon_get_captcha_by_ajax":"false","argon_comment_allow_markdown":"true","argon_comment_allow_editing":"false","argon_comment_allow_privatemode":"true","argon_comment_allow_mailnotice":"false","argon_comment_mailnotice_checkbox_checked":false,"argon_comment_enable_qq_avatar":"true","argon_comment_avatar_vcenter":"false","argon_who_can_visit_comment_edit_history":"admin","argon_enable_comment_pinning":"true","argon_enable_comment_upvote":"true","argon_comment_ua":"platform,browser","argon_show_comment_parent_info":"true","argon_fold_long_comments":"true","argon_gravatar_cdn":"gravatar.pho.ink/avatar/","argon_text_gravatar":"true","argon_enable_search_filters":"true","argon_search_filters_type":"&amp;amp;amp;amp;amp;lt;em&amp;amp;amp;amp;amp;gt;post,&amp;amp;amp;amp;amp;lt;/em&amp;amp;amp;amp;amp;gt;page,shuoshuo","argon_pjax_disabled":"false","argon_hide_categories":"","argon_enable_login_css":"true","argon_home_show_shuoshuo":"false","argon_fold_long_shuoshuo":"true","argon_enable_timezone_fix":"false","argon_hide_shortcode_in_preview":"true","argon_trim_words_count":"0","argon_enable_mobile_scale":"false","argon_disable_googlefont":"false","argon_disable_codeblock_style":"false","argon_update_source":"github","argon_hide_footer_author":"true"}