您现在的位置是:首页 > cms教程 > WordPress教程WordPress教程
Centos搭建wordpress网站的方法
紫南2025-03-16WordPress教程已有人查阅
导读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
之后面填入一些账号密码信息即可完成!
本文标签:
很赞哦! ()
相关教程
图文教程
centos7搭建wordpress的方法教学
随着计算机技术的普及,搞IT的越来越多,但是随着深入你会发现自己上了贼船,真的是一如IT深似海,从此妹纸是路人啊,当你越来越接近自己想想中的目标是
WordPress日期和时间调用函数the_time使用方法
the_time WordPress日期和时间调用函数怎么用?the_time WordPress日期和时间调用函数,使用wordpress的朋友可以参考下。
wordpress官网网址是多少,wordpress官网是什么
wordpress官网是“wordpress.org”,但下载的安装包可能因为带有谷歌字体等原因造成网站访问缓慢;国内用户应该访问“cn.wordpress.org”地址
ubuntu安装wordpress的步骤方法
Ubuntu 18.04 安装wordpress查看系统版本 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic 下载并解压 https://
相关源码
-
(响应式)轴承机械五金零件产品pbootcms落地推广单页源码下载为轴承、机械零件等工业产品打造的响应式单页模板,基于PbootCMS内核开发,助力企业快速构建专业级产品展示页面。模板采用工业风设计语言,突出产品参数与性能优势,适用于设备制造商、零部件供应商等B2B场景推广。查看源码 -
(自适应)大气办公用品耗材供应打印机产品维修网站模板下载基于PbootCMS系统开发的响应式网站模板,为营销技术博主、数字产品评测者设计。采用前沿的响应式技术,确保内容在手机端和桌面端都能获得较佳阅读体验,帮助用户高效展示技术文章和产品分析。查看源码 -
(PC+手机)帝国cms7.5漫画图片连载网站源码免费下载本模板基于帝国CMS7.5深度开发,为漫画阅读类网站打造。整体设计风格贴合漫画行业特性,界面布局充分考虑漫画作品的展示需求,支持多种漫画阅读模式。模板采用响应式设计,能够自动适配PC端和移动端设备,为读者提供流畅的阅读体验。查看源码 -
(自适应)橙色家政服务清洁保洁服务pbootcms网站模板源码下载模板核心价值:基于PbootCMS内核开发的家政服务类网站模板,通过模块化设计展现服务项目、团队风采、服务案例等核心板块,突出时效预约、服务标准化展示等家政行业特性。查看源码 -
(自适应)文案文档作文写作word资源网站模板下载本模板基于PbootCMS系统深度开发,针对电影解说、文案分享类网站的特殊需求设计。采用响应式布局技术,确保在手机端和桌面端都能呈现专业的内容展示效果,帮助运营者高效管理影视解说资源。查看源码 -
(自适应响应式)陶瓷研磨盘抛光机械设备pbootcms网站模板本模板基于PbootCMS系统开发,为研磨抛光设备制造企业设计,特别适合陶瓷研磨盘、抛光设备等表面处理设备展示。采用响应式布局技术,确保各类设备的参数和工艺在不同终端上都能清晰呈现。查看源码
| 分享笔记 (共有 篇笔记) |

