首页 技术 正文
技术 2022年11月14日
0 收藏 999 点赞 2,648 浏览 1224 个字

参考:

文章一:http://capbone.com/bae-wordpress/

文章二:http://tieba.baidu.com/p/2612184581

注意点:

wordpress

下载地址:http://wordpress.org/download/

中文版:http://cn.wordpress.org/

1.wp-config.php的修改

  

//从环境变量中获得数据库的主机地址、用户名和密码
$ip = getenv('HTTP_BAE_ENV_ADDR_SQL_IP');
$port = getenv('HTTP_BAE_ENV_ADDR_SQL_PORT');
$host = $ip.":".$port;
$user = getenv('HTTP_BAE_ENV_AK');
$pass = getenv('HTTP_BAE_ENV_SK');// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define('DB_NAME', '输入自己的数据库名称');/** MySQL数据库用户名 */
define('DB_USER', $user);/** MySQL数据库密码 */
define('DB_PASSWORD', $pass);/** MySQL主机 */
define('DB_HOST', $host);/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');/** 数据库整理类型。如不确定请勿更改 */
define('DB_COLLATE', '');

接着修改身份认证密钥,修改为任意独一无二的字串

在浏览器输入https://api.wordpress.org/secret-key/1.1/salt/

将生成的内容覆盖掉以下内容即可

define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');

2.wp-config.php配置成功后,按文章二的13点开始配置。

  14点的找到“BCS Support”,默认如果没有,点击添加插件,在弹出页面的搜索框搜就有了,安装就行

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902