linux system installed WordPress pagoda

With the pagoda panel, FTP tools directly kill, because pagoda panel support the right function, do not need to use FTP tools, and bloggers had previously been using a virtual host, no matter where are all ultimately FTP tools, if discard really a little difficult. Well, here a direct say in detail under Bloggers installation process pagoda panel, hereby record for reference:

New customers exclusive benefits 2860 yuan vouchers

https://cloud.tencent.com/redirect.php?redirect=1040&cps_key=09ff33cfb418db124451885bff0af0c4&from=console

Featured spike activity cloud server 20 yuan / month

https://cloud.tencent.com/redirect.php?redirect=1039&cps_key=09ff33cfb418db124451885bff0af0c4&from=console

Cloud products 70% off ex-gratia

https://cloud.tencent.com/redirect.php?redirect=1014&cps_key=09ff33cfb418db124451885bff0af0c4&from=console

  First, connect to the server using a remote connection tools

  1. If PUtty tools, tools download Putty into the main interface, enter the public IP address of Linux in the Host Name, the other by default, click on [OPEN] button to connect. If this is the first time the connection will pop appears, click Yes to.

  (PS: Ali cloud server, [examples] of the console to view the public IP address)

  2. Enter the root Enter, and then need to enter the password (the password is not displayed, just input), press Enter.

Note: If the password is wrong, you will be prompted Access denied, re-enter the correct password

  (PS: Ali cloud server, Ruoguo be bought in the instance server click on [More] - [Reset Password], and then enter the password you can remember this)

  3. see the following screen indicating successful connection to the linux server

  Second, the installation pagoda panel

  1. Enter the following command, and press Enter.

  yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

  2. confirm that you want to install pagoda, enter y Enter wait for complete installation.

  3. probably need to wait about 20 minutes after the installation is complete, the panel address and the default username and password appears. Visit http: // ip: 8888, enter the account number and password to use your pagoda panel.

In addition pagoda panel can refer to the official installation manual : https://www.bt.cn/bbs/thread-1971-1-1.html

▲ pagoda panel interface

  (PS: just installed pagoda panel, such as the need to open the server port to use Ali cloud server, the [more] - [Security] group configuration, click Configure rules add the security group rules need to turn back into the pagoda panel 8888/8888. port, after binding domain, enter the site need to open ports 80/80)

Summary : pagoda panel installation is really very simple, much more than I bargained for, but the entire installation process, there is no point operations difficult, according to the step by step tutorials, can also be completely white pagoda build a good panel. With the panel, the other is basically fool-operation, and the rest of the site is added directly to resolve domain names to IP addresses pagoda panel, and then add the site [website] part in the [file] column under the Uploader available, the use of ultra convenient, website, FTP, databases, files, etc. are straightforward. Pan server supports parsing, so the domain name can create a large number of secondary sites, sites want to do what you can to put the program directly.

Installation site environment

After the pagoda panel installation is complete, we will be able to log back panel, and use just recorded backstage address registration (Ali cloud if you are using or Tencent cloud, it could not log on, when you need to open security group 8888 in the background port)

Next you will see a button interface installation environment, we typically choose LNMP structure on the left, compile and install

这里我要说下关于不同配置的服务器环境的设置,因为一般常用的有512M内存的,还有就是1G内存的,这两个的环境选择是不一样的

  • 如果是512M内存,那么使用默认的配置即可,Mysql 5.5 和 PHP 5.4
  • 如果是1G内存,推荐使用wordpress官方给的设置,Mysql 5.6 和 PHP 7.2,但是这里还是建议7.1,兼容的主题会多一些

当然也不是说绝对按照这些设置,有些wordpress主题是不支持php7的,有时候适当的升级或者降级,当然我们的原则就是越新越好,因为性能是要好一些的,你可以选择任何版本,建站的过程都是一样的

然后就是等待安装完成就可以了,一般会持续半小时到1个小时,根据你服务器的性能决定

服务器新建站点

等待所有的任务都完成以后,所有的环境就搭建好了,接下来就可以建立网站了

宝塔面板新建一个网站,点击下图中绿色的按钮新建一个站点

这里我们需要输入自己的网站域名,把带www和不带www的域名全部填写上,比如www.zhujibiji.com,该步骤就是绑定域名

然后FTP和数据库最好都创建,将这些信息都记录下来,以后我们都需要用到的

所有设置完毕之后我们点击提交,网站即创建完毕(这里指服务器为网站准备出空间,类似开一个虚拟主机,只不过我们对此有控制权)

域名解析到站点

这个其实很简单,就是添加域名解析的ip地址,可能就是不同的域名商操作方法不一样,这里我演示下阿里云的域名解析

我们先在后台管理中找到自己的域名,点击解析,然后添加解析

这里需要添加2个解析到服务器的ip地址

  • 一个是 www 记录,这里设置www通用的,比如 www.zhujibiji.com

  • 还有就是 @ 记录,这个是设置根域名,比如说主机笔记就是 zhujibiji.com,虽然说有时候用不到,最好还是设置一下,毕竟还是有很多人直接输入域名不输入www的

设置好解析以后,需要等待2分钟(其他的域名商可能会有延迟几个小时都有可能的,最好提前解析)

然后访问网页看到一个创建成功的页面,就证明解析已经好了,可以进行下一步

下载WORDPRESS网站程序

服务器和域名都配置好以后,就可以开始配置我们的网站程序了

首先我这里选择的程序是wordpress,网站程序可以到wordpress下载,点击下载按钮

下载好之后我们会得到一个压缩包,但是它的目录结构是不能直接上传到服务器的,我们先将其解压

会看到如下的文件夹,这些就是网站根目录,我们要做的就是将所有的文件选中,然后再压缩上传

这里还需要注意一点,由于压缩软件默认是rar格式的,但是服务器是不支持解压rar格式的压缩包的,所以,我们要进一步设置为zip压缩

FTP上传压缩包到服务器

我的习惯是使用FTP上传到服务器,当然面板也比较方便,也可以使用宝塔后台的文件上传功能

打开FlashFXP,点击会话 – 快速连接,填写自己创建网站时的FTP信息,如果忘记了可以在宝塔后台找到

然后连接好之后,我们把刚刚打包的wordpress压缩文件直接拖到右侧的文件栏里面,然后点击传输,上传到服务器

上传完成之后我们就可以关闭FTP软件了,回到宝塔面板,因为我们刚刚上传是压缩包,不能直接使用的,我们在后台找到文件管理的界面,然后找到网站对应的目录,宝塔面板的目录一般是固定的,比如我刚刚新建的网站目录就是 /www/wwwroot/tycyt.com/ ,一般宝塔面板安装时你没有修改的话就是在这个 /www/wwwroot 目录下的

可以在wordpress.zip的看到右下角有一个箭头,鼠标指向就能看见,这里选择解压,直接确认即可,解压完成之后可以把zip的压缩包删除了

安装WORDPRESS网站

在域名解析和网站程序目录结构都没有问题后,我们就可以安装网站了,安装是最简单的

直接访问自己的域名,会看到wordpress的安装界面,它说的东西我们前期已经准备好,第一步可以直接开始

这里填写的是服务器数据库信息,包括数据库名、用户名、密码、数据库主机、表前缀,数据库主机和标签缀没有特殊需求的话一般都不需要修改,数据库密码刚刚我们已经记下了,按照要求填写即可(注意不要和服务器的用户名密码搞混)

如果你之前没有记录数据库信息也没关系,你可以到宝塔面板 – 数据库 查看信息

数据库信息填好以后点击提交,下一步就是安装WordPress

填写自己的网站信息,用户名和密码最好是找个地方记下来,这个是你登录WordPress需要的账号密码,邮箱一定要填写自己的,找回密码用,而且网站有留言审核之类的问题也会给你发送邮件

网站安装成功,接下来就可以自己进行各种设置了

最后总结一下整个过程,服务器安装宝塔 – 搭建环境 – 添加站点 – 解析域名 – 下载程序 – 安装网站,这几个步骤都要完成,网站才能正确访问,其实如果熟练了是非常简单的,宝塔这么方便,建一个网站基本上十分钟能搞定,更多的是网站以后的优化等事情

Guess you like

Origin blog.csdn.net/qiyuwg/article/details/89943065