WordPress安装下载在官网上找到自己需要的版本如何下载切换到/soft/code 目录下[root@centos wordpress]# cd /soft/code将下载的WordPress解压缩至这个目录下[root@centos code]# tar -zxvf wordpress-5.7.1-zh...
WordPress安装
- 下载
在官网上找到自己需要的版本如何下载
- 切换到/soft/code 目录下
[root@centos wordpress]# cd /soft/code
- 将下载的WordPress解压缩至这个目录下
[root@centos code]# tar -zxvf wordpress-5.7.1-zh_CN.tar.gz
- 登录进入MySQL数据库
[root@centos code]# mysql -uroot -p
Enter password:
- 创建名为WordPress的数据库
mysql> create database wordpress;
- 查看已经创建好的数据库
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| wordpress |
+--------------------+
5 rows in set (0.00 sec)
- 创建名为wpuser的用户并配置密码为password
mysql> grant all on wordpress.* to 'wpuser'@'localhost' identified by 'password';
- 退出MySQL
mysql> exit
Bye
- 切换到WordPress目录下
[root@centos code]# cd wordpress
- 复制名为wp-config-sample.php的配置文件
[root@centos wordpress]# cp wp-config-sample.php wp-config.php
- vi编辑wp-config.php文件
[root@centos wordpress]# vi wp-config.php
- 将下面内容修改
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress' );
/** MySQL database username */
define( 'DB_USER', 'wpuser' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password' );
/** MySQL hostname */
define( 'DB_HOST', '127.0.0.1' );
/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );
将 'DB_NAME', 'database_name_here' 改为 'DB_NAME', 'wordpress'
将 'DB_USER', 'username_here' 改为 'DB_USER', 'wpuser'
将 'DB_PASSWORD', 'password_here' 改为 'DB_PASSWORD', 'password'
将 'DB_HOST', 'localhost' 改为 'DB_HOST', '127.0.0.1'
- 然后打开浏览器访问http://自己的IP/wordpress,就可以进入WordPress页面了
剩下的就按自己需求安装就好了
安装完后就可以进入这个页面啦

沃梦达教程
本文标题为:WordPress搭建安装方法及步骤
基础教程推荐
猜你喜欢
- dedecms织梦采集的文章发布时间变为1970-1-1的解决办法 2022-09-02
- php – 如何将wordpress数据库中的缩略图转换为外部页面 2023-10-08
- 搭建WordPress博客程序库 2023-10-08
- PBOOTCMS栏目/列表标签序号数从第N个开始的办法 2023-07-08
- mysql-WordPress访问 2023-10-08
- Windows下搭建个人博客(Apache+MySQL+PHP+WordPress) 2023-10-08
- php – WordPress Skeleton,VVV,Multisite和正确的Nginx规则 2023-10-08
- php – WordPress数据库错误MySQL服务器已经离开查询 2023-10-08
- php-如何从wordpress数据库中获取数组值get_results 2023-10-08
- WordPress搭建安装方法及步骤 2023-10-08
