当前位置:网站首页>Getting started for beginners: build your own blog with WordPress
Getting started for beginners: build your own blog with WordPress
2022-07-27 13:23:00 【InfoQ】
Introduction to the experience
Background knowledge
- Cloud server ECS
- Wordpress
Connect ECS The server
install WordPress Chinese version
wget https://cn.wordpress.org/latest-zh_CN.tar.gz
tar -zxvf latest-zh_CN.tar.gz
mkdir /var/www/html/wp-blog
mv wordpress/* /var/www/html/wp-blog/
cat -n /var/www/html/wp-blog/wp-config-sample.php
# Get into WordPress Catalog
cd /var/www/html/wp-blog/
# Copy template file as configuration file
cp wp-config-sample.php wp-config.php
# database_name_here For database name
sed -i 's/database_name_here/wordpress/' /var/www/html/wp-blog/wp-config.php
# username_here Is the user name of the database
sed -i 's/username_here/root/' /var/www/html/wp-blog/wp-config.php
# password_here For the database login password
sed -i 's/password_here/NewPassWord1./' /var/www/html/wp-blog/wp-config.php
systemctl start httpd

Customize the site theme

# First of all to enter WordPress Subject catalog
cd /var/www/html/wp-blog/wp-content/themes/
# Use wget Command to download the theme selected in the previous step
wget https://downloads.wordpress.org/theme/markiter.1.5.zip
# Use unzip Command to extract the installation package
unzip markiter.1.5.zip
# See all the themes
ll

Add custom widgets
vim /var/www/html/wp-blog/wp-content/themes/markiter/footer.php
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/L2Dwidget.min.js"></script>
<script type="text/javascript">
L2Dwidget.init();
</script>

install MarkDown plug-in unit
cd /var/www/html/wp-blog/wp-content/plugins/
wget https://downloads.wordpress.org/plugin/wp-editormd.10.1.2.zip
unzip wp-editormd.10.1.2.zip

The final effect
- Blog's front page

- Blog editing page

边栏推荐
- Can you tell me the difference between lateinit and lazy in kotlin?
- Fixed positioning
- Seata 在蚂蚁国际银行业务的落地实践
- 湖仓一体电商项目背景与架构介绍及基础环境准备
- Poj1273 drainage ditches [maximum flow] [SAP]
- 完美指南|如何使用 ODBC 进行无代理 Oracle 数据库监控?
- 开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
- "Game engine light in light out" 4.1 unity shader and OpenGL shader
- Gartner 权威预测未来4年网络安全的8大发展趋势
- Qt优秀开源项目之十三:QScintilla
猜你喜欢
![[cute new solution] Fibonacci sequence](/img/2d/64cdc8b7625ee7a81275ad25dc2b7a.png)
[cute new solution] Fibonacci sequence

马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅

heap

Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion

力扣 1480. 一维数组的动态和 383. 赎金信412. Fizz Buzz

Seata's landing practice in ant International Banking

Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion

@Simple use of conditional

接口测试实战教程01:接口测试环境搭建

Seata 在蚂蚁国际银行业务的落地实践
随机推荐
Absolute positioning
A survey of video game addictive behavior research
"Game engine light in light out" 4.1 unity shader and OpenGL shader
Redis总结:缓存雪崩、缓存击穿、缓存穿透与缓存预热、缓存降级
字节跳动的 Flink OLAP 作业调度和查询执行优化实践
Why does the class annotated with @configuration generate cglib proxy?
Multi activity disaster recovery construction after 713 failure of station B | takintalks share
Height collapse and BFC
Poj2446 chessboard [maximum matching of bipartite graph]
B站713故障后的多活容灾建设|TakinTalks大咖分享
Feign's dynamic proxy
[cute new solution] Fibonacci sequence
内涵语录
18. Text processing tool -grep
Icon Font
Connotative quotations
v-show
Getting started for beginners: build your own blog with WordPress
Feign的两个调用处理器
赋能金融风控加分项的这30个问题,您都搞懂了吗