Loading [MathJax]/jax/output/CommonHTML/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >CentOS 7.2 安装WordPress

CentOS 7.2 安装WordPress

作者头像
shaonbean
发布于 2019-05-26 01:42:21
发布于 2019-05-26 01:42:21
1.1K00
代码可运行
举报
文章被收录于专栏:运维前线运维前线
运行总次数:0
代码可运行

版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://cloud.tencent.com/developer/article/1434721

安装WordPress

  • 安装Blog系统WordPress

参考http://blog.csdn.net/wh211212/article/details/52996699,完成php和MariaDB 的安装

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[root@linuxprobe ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 627
Server version: 5.5.50-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database wordpress; 
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on wordpress.* to wordpress@'localhost' identified by 'password';
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> flush privileges; 
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> exit
Bye
  • 安装WordPress
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
# install from EPEL
[root@linuxprobe ~]# yum --enablerepo=epel -y install wordpress
[root@linuxprobe ~]# vi /etc/wordpress/wp-config.php
# line 23: specify Database
define('DB_NAME', 'wordpress
');
# line 26: specify DB user
define('DB_USER', 'wordpress
');
# line 29: specify DB password
define('DB_PASSWORD', 'password
');
[root@linuxprobe ~]# vi /etc/httpd/conf.d/wordpress.conf
# line 8: add
Require all granted
[root@linuxprobe ~]# systemctl restart httpd

访问“http://(服务器的主机名或IP地址)/ wordpress /”并配置最终设置

配置完成后,点击“登录”按钮登录,输入刚刚创建的用户名和密码

这是管理您的博客的管理面板

索引页是“http://(主机名或IP地址)/ wordpress /”,访问它,并确保它正常显示。

总结

  • 确保wp-config文件中数据库的用户名和密码正确
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016年11月02日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
CentOS 7安装ownCloud
该文介绍了在CentOS 7服务器上安装ownCloud的过程,包括安装Apache、PHP、MariaDB和ownCloud的过程,以及如何在MariaDB中添加用户和数据库。还介绍了如何设置SELinux和访问ownCloud的方法。
shaonbean
2018/01/02
1.7K0
CentOS 7安装ownCloud
CentOS 7.2 部署网站访问日志分析器 - Piwik
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/52996699
shaonbean
2019/05/26
8760
CentOS 7.2 安装MariaDB
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53129488
shaonbean
2019/05/26
9600
CentOS 7.2 配置Apache服务(httpd)--下篇
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/52994505
shaonbean
2019/05/26
5390
CentOS 7 配置Python语言开发环境
shaonbean
2018/01/02
8050
CentOS 7 配置Python语言开发环境
CentOS 7.2 Yum安装MySQL 5.6
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53105335
shaonbean
2019/05/26
1.2K0
CentOS 7.2 部署Redis服务
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53036772
shaonbean
2019/05/26
6570
CentOS7安装IT资产管理系统Snipe-IT
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/80814045
shaonbean
2019/05/26
4.8K3
CentOS 7.2 安装Subversion(SVN)
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53128805
shaonbean
2019/05/26
2.1K0
CentOS 7.2 安装Nginx服务
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53018112
shaonbean
2019/05/26
3860
在 CentOS7.2 下 DIY 动手搭建一个 WordPress
腾讯云计算产品团队
2017/06/29
2.5K0
在 CentOS7.2 下 DIY 动手搭建一个 WordPress
CentOS 7 安全加固、检测、审计
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53063599
shaonbean
2019/05/26
2.2K0
CentOS 7 安装Memcached服务
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53101731
shaonbean
2019/05/26
7120
CentOS 7 部署saltstack服务
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53168968
shaonbean
2019/05/26
9430
001.WordPress建站部署
WordPress是一种使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设属于自己的网站。也可以把 WordPress当作一个内容管理系统(CMS)来使用。
木二
2019/07/26
8740
001.WordPress建站部署
CentOS 7.2 部署文件服务器
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53040130
shaonbean
2019/05/26
2.6K0
CentOS 7.2 部署Node.js开发环境
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53038605
shaonbean
2019/05/26
9980
CentOS 7.2 安装Clam AntiVirus
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53054086
shaonbean
2019/05/26
6370
CentOS 7 安装osquery监控系统
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53113652
shaonbean
2019/05/26
1.3K0
CentOS 7.2 部署Rsync服务
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/53054470
shaonbean
2019/05/26
8470
相关推荐
CentOS 7安装ownCloud
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验