分类 教程 下的文章

安装方法:
1、申请bae帐号,下载本安装包,下面的两个地址均可下载,建议下载源文件包
源文件包下载:http://code.google.com/p/emlogforbae/downloads/list
百度盘下载http://pan.baidu.com/share/link?shareid=166808&uk=3391546319&third=0
修改的地方:
install.php里 的$BAE_dbname
config.php里的$dbname
改为BAE后台创建的数据库名称,将数据库编码改为utf-8。
2、使用sdk工具上传代码包,或者在bae后台直接上传代码包,在BAE后台上线版本1。
3、访问install.php安装,安装完毕删除install.php文件。
3、安装完毕,登录emlog后台,设置好网站路径,保存即可开始emlog之旅啦。

今天在DuApp上安装WordPress,不管怎么调数据为utf8_general_ci编码。

导入上去的数据库在里面都还是显示的是乱码。

删除数据库安装也还是显示的乱码。

在网站搜了一下解决方法,解决OK,方法如下:

在wp-includes文件夹下找到wp-db.php文件。

使用文字编辑器打开,在文件第1063行

$this->select( $this->dbname, $this->dbh );

后面回车,加上:

$this->query(“set names utf8″);

然后重新上传到云服务上,使用。(如果您已创建了数据库,请先删除原来创建的数据库,如果不删除,官方文字依然是乱码)请一定注意。

重新安装WORDPRESS,完美显示中文了。

作者:午夜客
本文地址:http://wyk.int.ru/5714
关键字: bae, duapp, utf8_general_ci, wordpress

sae全程Sina App Engine,真是一个好东西,他有很多优秀的特性,简单来说SAE就是一个简单高效的分布式Web服务开发、运行平台。
支持现在常用的 php+mysql环境,在开发中难免会碰到项目需要做url rewrite(伪静态),然而sae不支持 apache 下的.htaccess 。不过不要难过,sae提供了自己的rewrite方式,本文我们就对sae的rewrite做个介绍,希望需要的同志能快速根据自己需求写想要的规则

- 阅读剩余部分 -

[root@linux ~]# vi /etc/ssh/sshd_config

# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 8181 //以前这个前面是有 # 号的,而且默认是 22 ,修改成你喜欢的就ok了
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key