当前位置:网站首页>一键搭建博客:如何使用WordPress插件搭建专属博客
一键搭建博客:如何使用WordPress插件搭建专属博客
2022-07-29 16:12:00 【阿里云云起实验室】
体验简介
阿里云云起实验室提供相关实验资源,点击前往 场景将提供一台基础环境为 CentOS 的 ECS(云服务器)实例,这台服务器上已经内置 LAMP 环境。我们将会在这台服务器上安装 WordPress,帮助您快速搭建自己的云上博客。
背景知识
云服务器(Elastic Compute Service,简称 ECS)是阿里云提供的性能卓越、稳定可靠、弹性扩展的 IaaS(Infrastructure as a Service)级别云计算服务。云服务器 ECS 免去了您采购 IT 硬件的前期准备,让您像使用水、电、天然气等公共资源一样便捷、高效地使用服务器,实现计算资源的即开即用和弹性伸缩。阿里云 ECS 持续提供创新型服务器,解决多种业务需求,助力您的业务发展。
- Wordpress
WordPress 是使用 PHP 语言开发的博客平台,用户可以在支持 PHP 和 MySQL 数据库的服务器上架设属于自己的网站。也可以把 WordPress 当作一个内容管理系统(CMS)来使用。
连接 ECS 服务器
具体操作可见阿里云体验实验室连接步骤
如尚未购买及操作 ECS,可在此处免费体验阿里云 ECS 服务器。
资源地址:https://developer.aliyun.com/adc/scenario/ae75736b49b940d1a78fee1453232d94
在完成之前文章的安装wordpress所有操作之后,您可以通过以下步骤来完成域名的购买与绑定。
Wordpress安装教程:https://my.oschina.net/u/4542749/blog/5559287
购买域名
1. 查询域名。
a. 登录阿里云域名注册页。
b. 在查询框中输入您想要的域名,并选择域名后缀,单击查域名。

2. 单击加入清单,然后在域名清单中确认已添加的域名,单击立即结算。
3. 添加域名持有者信息并确认域名服务条款。
a. 在确认订单页面,选择域名的购买年限和持有者类型。

b. 添加域名的持有者信息。
c. 阅读并选中服务条款,单击立即购买。
4. 选择支付方式后,单击立即支付。
域名备案
根据 《中国互联网络域名管理办法》 的规定,域名注册申请者应提交真实、准确、完整的域名持有者信息。域名实名认证时建议您根据认证要求准备好所需材料,当有多个域名需使用同一份材料进行认证时,可进行批量认证操作,参见通用域名实名认证。
域名解析
1. 登录云解析DNS控制台。
2. 在域名解析页面,单击域名,进入解析设置页面。

3. 在解析设置页面,单击新手指导。

4. 输入网站空间的IP地址,然后单击确定,云解析DNS会自动帮助您创建两条网站解析记录。

配置wordpress域名
1. 配置Apache服务器访问地址。
a. 连接ECS服务器。
b. 执行以下命令,编辑Apache配置文件。
vim /etc/httpd/conf/httpd.conf
c. 输入i进入编辑模式。
d. 修改服务器默认访问路径。默认访问路径为/var/www/html/。这里我们修改为WordPress项目路径/var/www/html/wp-blog/。
DocumentRoot "/var/www/html/wp-blog/"
<Directory "/var/www/html/wp-blog/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
修改后的文件如下所示。

e. 按Esc键退出编辑模式,输入:wq保存退出。
2. 登录WordPress管理控制台,单击设置进入WordPress设置界面。

3. 在设置界面中,修改WordPress地址(URL)和站点地址(URL)为您注册的域名。

4. 修改完成后单击保存。 至此,一套完整的WordPress博客系统就搭建完成了。
最终实现的效果
- 博客首页

- 博客编辑页面

边栏推荐
- Tutorial/detailed_workflow. Ipynb quantitative financial Qlib library
- 地平线获得舜宇集团战略投资并与舜宇智领签署战略合作协议
- (笔记)Build was configured to prefer settings repositories over project repositories but 解决方法
- pjax无法生效解决办法,butterfly主题维护你的pjax
- zabbix email sends alert information
- MLX90640 infrared thermal imager development notes (9)
- 面试突击69:TCP 可靠吗?为什么?
- LinkedList 5-141. 环形链表
- 如何写好设计文档
- Store Information Management System
猜你喜欢

718. The longest repeat subarray

This article penetrates the architecture design and cluster construction of the distributed storage system Ceph (hands-on)

澜舟孟子轻量化预训练模型技术实践

Pycaret on diamond data sets using the regression problem

How should small and medium-sized financial enterprises carry out disaster recovery construction?

This article penetrates the architecture design and cluster construction of the distributed storage system Ceph (hands-on)

How CRM Helps Enterprise Marketing Acquire Customers

量化初级 -- akshare获得股票代码,最简策略

稳步向前不忘初心,沃尔沃的安全感来自公众的认可

递归法解决N皇后问题
随机推荐
数据库项目01文档:软件测试需要的数据库技能
节省70%的显存,训练速度提高2倍!浙大&阿里提出在线卷积重新参数化OREPA,代码已开源!(CVPR 2022 )...
Store Information Management System
This article penetrates the architecture design and cluster construction of the distributed storage system Ceph (hands-on)
Groeb - "gramm, explicit and complete n -" gramm mask language model, implements the explicit n - "gramm semantic unit modeling knowledge.
[网络]LAN技术堆叠与集群
知识图谱构建全流程
微信公众号借助小程序云函数实现支付功能
最新!多交的税可以退,同学,你今天退税了吗?
澜舟孟子轻量化预训练模型技术实践
贪心(1)区间完全覆盖问题
中芯国际:禁令后全力自救,设备等待期拉长,但没有客户“离开”
浅谈程序的内存布局
Quantitative primary - akshare get the stock code, the minimalist strategy
How CRM Helps Enterprise Marketing Acquire Customers
【Swoole系列3.2】Swoole 异步进程服务系统
RocketQA:通过跨批次负采样(cross-batch negatives)、去噪的强负例采样(denoised hard negative sampling)与数据增强(data augment
pycaret在钻石数据集上的使用 - 回归问题
Jenkins 如何玩转接口自动化测试?
MLX90640 infrared thermal imager development notes (9)