当前位置:网站首页>谁不想要一个自己的博客网站呢 - 搭建博客网站wordpress
谁不想要一个自己的博客网站呢 - 搭建博客网站wordpress
2022-06-30 05:51:00 【余生大大】
前言
谁不想要个自己炫酷的博客网站呢,使用云服务器搭建一个wordpress,想要搭建wordpress需求前置环境LNMP。
LNMP 是 Linux、Nginx、MariaDB 和 PHP 的缩写
安装系统
本文使用的腾讯云的轻量级应用服务器,将服务器重置安装为应用镜像宝塔面板

确认安装后等待一段时间
安装完成后查看应用管理,介绍了怎么访问宝塔面板的页面

根据提供的面板地址将中间的端口改为默认的8888就可以访问宝塔页面了,默认是8888后续可以自己改
在第一次进入宝塔页面是需要登陆的,登陆的账号密码就是上图中教程在服务器内输入命令
sudo /etc/init.d/bt default

执行命令的结果会提供面板地址跟账号密码,如此直接访问面板地址登陆即可,登陆后面板的首页如下

面板安装环境
在刚登陆后会默认推荐让安装LNMP的环境,可以直接选择安装,也可以在左侧菜单栏软件商店里输入LNMP的各个软件进行单个安装,我这里已经安装好了,如下

也可以一键安装java、tomcat、docker、mongodb、redis、gitlab等组件,非常方便

配置网站
选择左侧网站的菜单栏后点击添加站点,按如下图进行环境选择

点击提交后会展示数据库的配置,记下数据库的配置

配置网站参数
点击刚才创建好的网站名称进入配置页,进入伪静态,选择下图两个其中一个保存就行

配置SSL,我已有证书直接输入证书的key和pem

直接访问域名看看是否配置成功

安装wordpress
先下载wordpress的安装包
https://cn.wordpress.org/wordpress-5.9.2-zh_CN.tar.gz
进入网站根目录

将下载的压缩包上传到根目录

双击解压

将解压后的文件夹里的内容都粘贴到根目录

然后再访问域名就可以看到wordpress的配置页面了

配置wordpress
填写我们之前配置好的账号密码

配置网站的信息

配置完成后进行登陆就可以访问了


边栏推荐
- How to write a thesis
- [untitled] user defined function
- Xctf attack and defense world crypto advanced area
- Shopping list--
- MySQL数据库用户管理
- InputStream转InputStreamSource
- [road of system analyst] collection of wrong topics in Project Management Chapter
- Lantern Festival | maoqiu technology and everyone "guess riddles and have a good night"
- Leader: who can use redis expired monitoring to close orders and get out of here!
- Dynamic programming -- gliding wing of the strange thief Kidd
猜你喜欢

【LeetCode】236. Nearest common ancestor of binary tree

Today, Ali came out with 35K. It's really sandpaper that wiped my ass. it showed me my hand

What are membrane stress and membrane strain

Rotating frame target detection mmrotate v0.3.1 training dota data set (II)

At the age of 32, I fell into a middle-aged crisis and finally quit naked...

The average salary of software testing in 2022 has been released. Have you been averaged?

Summary of redis learning notes (I)

Xctf attack and defense world crypto advanced area

Why can transformer break into the CV world and kill CNN?

Dynamic programming -- gliding wing of the strange thief Kidd
随机推荐
inno setup 最简单的自定义界面效果
Create uiactionsheet [duplicate] - creating uiactionsheet [duplicate]
D. Big Brush
Codeforces Round #390 (Div. 2) D. Fedor and coupons
[openstack]-01- basic introduction
Dao -- a beautiful new world?
MySQL事物
Leetcode56. consolidation interval
剑指 Offer 22. 链表中倒数第k个节点
动态规划--怪盗基德的滑翔翼
Sword finger offer 29 Print matrix clockwise
Simple use of qlistview of QT (including source code + comments)
Rotating frame target detection mmrotate v0.3.1 learning configuration
Codeforces C. Andrew and Stones
Digital signature——
【板栗糖GIS】global mapper—如何把栅格的高程值赋予给点
MySQL数据库用户管理
Database SQL language 04 subquery and grouping function
Online assignment of C language program design in the 22nd spring of Western Polytechnic University
[secretly kill little partner pytorch20 days] - [day4] - [example of time series data modeling process]