《域名解析与wordpress网站程序安装》
要想通过域名访问到你的网站,就得将域名解析到你的服务器。
首先,登录你的阿里云控制台,点击云解析DNS找到你购买的域名,并点击解析

进入后点击添加解析

记录类型写A就可以,主机记录填www或者是你的二级域名,记录值填你服务器的公网IP地址,保存后就可以生效了。
接下来我们验证一下域名是否成功解析到了服务器
Windows+R输入cmd回车打开终端,然后在终端输入ping (你的域名)

回车后如果出现如下字样表示你的域名已经解析到了你的服务器

好,ping通了之后,我们就要登录之前安装好的WDCP面板,去创建我们的站点。
登录WDCP面板后选择 网站管理→创建整站


这里要注意,只填写我红框框住的区域,其他地方默认就可以
这样我们的站点就创建好了
接下来我们去下载wrodpress网站程序
下载地址https://cn.wordpress.org/

下载成功后我们要用FTP把这个包传到服务器上,所以还需要在你的机器上安装一个FTP软件,百度搜filezilla第一个就是。

安装我就不说了,下一步,下一步,傻瓜式安装。
安装成功后,就要连接到你的FTP服务器,并把网站程序上传上去

主机填你服务器的公网IP地址,用户名就是刚才创建站点时设置的FTP用户名,端口号一定要填21,下载好的网站程序解压后全选内部的所有文件重新打包后拖到public这个文件夹内


因为网站程序现在是一个压缩包,所以我们还要回到WDCP面板去解压程序包

系统管理→文件管理→站点名称→public_html→解压

上图是解压后的目录结构
这样网站程序就上传成功了,接下来是安装
在浏览器导航栏输入你的域名,就会出现wordpress安装界面

接下来就是填写你的 数据库名,数据库用户名,密码(就是之前创建站点时设置的) 其他默认

然后点击 进行安装

之后填写你网站的一些基本信息就可以正式安装了

站点标题写XXX的个人博客,这个用户名是登录网站后台时用的,电子邮箱是必填项,然后点击 安装Wordpress

这样就安装成功了,快去登录你的后台发布文章吧!

喜欢的话点一波关注