在CentOS 7中wordpress的HTTPD方式部署

复制代码
[root@db1 ~]#yum install httpd mariadb-server php php-mysql -y

创建数据库wordpress

复制代码
[root@db1 ~]# mysql -uroot -p123456

MariaDB (none)> create database wordpress;

MariaDB (none)> show databases;

复制代码
[root@db1 ~]#systemctl start httpd
[root@db1 ~]#yum install net-tools
[root@db1 ~]#netstat -ntpl(查看是否有:::80)

打开SecureFX把wordpress-4.7.3-zh_CN.zip移动

复制代码
[root@db1 ~]# ls
复制代码
[root@db1 ~]#yum install unzip -y
[root@db1 ~]#unzip wordpress-4.7.3-zh_CN.zip
复制代码
[root@db1 ~]# cd wordpress
[root@db1 wordpress]# ls
[root@db1 wordpress]# vi index.php
复制代码
[root@db1 wordpress]# cd
[root@db1 ~]# ll
[root@db1 ~]# cp -r wordpress/* /var/www/html/
[root@db1 ~]# cd /var/www/html/
[root@db1 html]# ls
[root@db1 html]# mv wp-config-sample.php wp-config.php
[root@db1 html]# ls
复制代码
[root@db1 html]# vi wp-config.php(当出现乱码时,打开会话选项,外观字符编码utf-8)

修改:

/** WordPress数据库的名称 */

define('DB_NAME', 'wordpress');

/** MySQL数据库用户名 */

define('DB_USER', 'root');

/** MySQL数据库密码 */

define('DB_PASSWORD', '123456');

打开网址192.168.224.3

复制代码
[root@db1 html]# cd
[root@db1 ~]# mysql -uroot -p123456

MariaDB (none)> use wordpress;

MariaDB wordpress> show tables;

MariaDB wordpress> select * from wp_users;

相关推荐
阿里云大数据AI技术4 小时前
阿里云 EMR AI 助手正式发布:从问答工具到全栈智能运维助手
运维·人工智能
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
SkyWalking中文站1 天前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
火车叼位1 天前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698031 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
小猿姐2 天前
唯品会大规模数据库云原生实践:基于 KubeBlocks 管理数千实例的统一运维之路
运维·elasticsearch·云原生
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
SkyWalking中文站2 天前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维