当前位置:网站首页>谁不想要一个自己的博客网站呢 - 搭建博客网站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
填写我们之前配置好的账号密码

配置网站的信息

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


边栏推荐
- token 过期后,如何自动续期?
- 8 ways to earn passive income
- C语言基础小操作
- Leetcode search insert location
- Today, Ali came out with 35K. It's really sandpaper that wiped my ass. it showed me my hand
- OSPF - authentication and load balancing summary (including configuration commands)
- Sword finger offer 22 The penultimate node in the linked list
- VLAN access mode
- 【LeetCode】236. Nearest common ancestor of binary tree
- Transfer the token on the matic-erc20 network to the matic polygon
猜你喜欢
![[Alibaba cloud] student growth plan answers](/img/34/cba975c0960d5595433adcb23f6e64.jpg)
[Alibaba cloud] student growth plan answers

Switch to software testing and report to the training class for 3 months. It's a high paying job. Is it reliable?

MySQL存储系统

OSPF - authentication and load balancing summary (including configuration commands)

leetcode763. Divide letter interval

Tornado frame foundation

抓取手机端变体组合思路设想

Lantern Festival | maoqiu technology and everyone "guess riddles and have a good night"
![[chestnut sugar GIS] global mapper - how to assign the elevation value of the grid to the point](/img/bb/ea0e78065ba54ff253995faeeb6901.png)
[chestnut sugar GIS] global mapper - how to assign the elevation value of the grid to the point

8 ways to earn passive income
随机推荐
[chestnut sugar GIS] global mapper - how to assign the elevation value of the grid to the point
C. Divan and bitwise operations
09- [istio] istio service entry
Related applications of priority queue
D. Big Brush
Why can transformer break into the CV world and kill CNN?
El table lazy load refresh
Navigate back to fragmentpageradapter - & gt; Fragment is empty - navigating back to fragmentpageradapter - & gt; fragments are empty
InputStream to inputstreamsource
Array pointers and pointer arrays
[ansible series] fundamentals 02 module debug
Xijiao 21 autumn "motor and drive" online homework answer sheet (III) [standard answer]
Lantern Festival | maoqiu technology and everyone "guess riddles and have a good night"
Voting vault: a new primitive for defi and Governance
云服务器部署 Web 项目
Video summary of my station B
Dao -- a beautiful new world?
Projet Web de déploiement du serveur Cloud
ECS deployment web project
Cisco vxlan configuration