使用wordpress在阿里云服务器上创建网站
1.购买域名。
1.购买途径很多,优势劣势其它答主也说得很清楚,我直接选择了万网(隶属阿里云)。
购买途径:登录阿里云-->产品-->域名注册/交易
2.审核域名。域名使用时需要先实名认证,然后审核。审核填表然后等待几天,如果着急用的话,可以先使用临时域名。

2.购买服务器/主机
1.同样在阿里云首页选择,可以选择购买云服务器ecs后者虚拟主机(独享/共享),新建小站建议 虚拟主机。
2.查看主机。

3.进入主机管理平台

3.域名解析
解析就是把域名和自己刚才买的空间绑定在一起。

之后设置网站解析,然后绑定对应的就可以。
4.上传网站程序WordPress
1、下载wordpress压缩包到电脑本地。wordpress官网
1.1解压该文件包然后找到wp-config-sample.php文件,改名为wp-config.php

1.2更改该文件中的数据库登录信息

一定要注意这个MySQL主机信息,是对应的数据库连接地址,不是临时域名或者什么。自己定的域名审核下来后再改成自己申请的域名。
2、用FTP上传工具把压缩包上传到云虚机根目录下。
2.1mac上使用Yummy FTP工具登录上该服务器。



2.2.登录上将WordPress压缩包传到虚拟主机的htdocs文件夹下。

3、登录主机管理平台,在线解压缩网站程序压缩包。

这里当然也可以直接将解压好的wordpress代码直接通过FTP传到htdocs中,但是因为上传有时真的会很慢,所以最好压缩后传。
5.安装wordpress
1.在你喜欢的浏览器中访问wp-admin/install.php 以便启动安装程序.
如果你在根目录下安装WordPress,,你应该访问: http://example.com/wp-admin/install.php
如果你将WordPress安装在子目录blog下,你应该访问: http://example.com/blog/wp-admin/install.php
2.安装时有可能会遇到问题:建立数据库连接时出错
很有可能是修改wp-config.php时对应数据库的信息出错。