您现在的位置是:首页 > cms教程 > WordPress教程WordPress教程
Centos搭建wordpress网站的方法
紫南2025-03-16 22:39:47WordPress教程已有7人查阅
导读1、装apache、mariadbyum install httpd mariadb-server php php-mysql -ysystemctl start httpdsystemctl enable httpdsystemctl start mariadbsystemctl enable mar
1、装apache、mariadb
yum install httpd mariadb-server php php-mysql -y
systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb
2、mariadb配置
密码初始化
mysql_secure_installation
创建一个数据库wordpress
mysql -u root -p
MariaDB [(none)]> create database wordpress character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all on wordpress.* to wordpress@'localhost' identified by 'wordpress';
MariaDB [(none)]> grant all on wordpress.* to wordpress@'%' identified by 'wordpress';
MariaDB [(none)]> exit
3、安装wordpress
官网:https://cn.wordpress.org/
下载
wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.tar.gz
解压
tar -zxf wordpress-4.8.1-zh_CN.tar.gz
移动到html目录下
mv wordpress /var/ /html/
重启httpd服务
systemctl restart httpd
4、页面访问 ip/wordpress web端安装
按照提示在 wordpress目录下创建wp-config.php并配置
cd /var/ /html/wordpress/
vi wp-config.php
之后面填入一些账号密码信息即可完成!
yum install httpd mariadb-server php php-mysql -y
systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb
2、mariadb配置
密码初始化
mysql_secure_installation
创建一个数据库wordpress
mysql -u root -p
MariaDB [(none)]> create database wordpress character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all on wordpress.* to wordpress@'localhost' identified by 'wordpress';
MariaDB [(none)]> grant all on wordpress.* to wordpress@'%' identified by 'wordpress';
MariaDB [(none)]> exit
3、安装wordpress
官网:https://cn.wordpress.org/
下载
wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.tar.gz
解压
tar -zxf wordpress-4.8.1-zh_CN.tar.gz
移动到html目录下
mv wordpress /var/ /html/
重启httpd服务
systemctl restart httpd
4、页面访问 ip/wordpress web端安装
按照提示在 wordpress目录下创建wp-config.php并配置
cd /var/ /html/wordpress/
vi wp-config.php
之后面填入一些账号密码信息即可完成!
本文标签:
很赞哦! (0)
暂无内容 |
暂无内容 |
相关文章
暂无内容 |
暂无内容 |
随机图文
wordpress文章保存位置在哪
wordpress中的文章是存放在mysql数据库中的post表的。登录后可见,需要wordpress主题支持该功能,目前支持登录后可见的主题有Duxmengwordpress多站点用户同步实现的方法
实现多站点模式下用户在所有博客中的同步问题,也就是说,用户注册了多站点网络中的一个站点,可以在该网络中的所有站点都可以登录。WordPress怎么制作插件
上一篇还是按照之前的教程流程,写了一篇WordPress插件制作教程概述,从这一篇开始就为大家具体讲解WordPress插件制作的内容。这一篇主要说一下插件的创建方法。wordpress采集的方法教学
WordPress是一种使用PHP语言开发的建站程序平台,现在做博客用wp的已经很多了,很多网站制作培训都使用的是wp,特别是在做采集站的时候wordpress的共能很强大。
留言与评论 (共有 0 条评论) |