<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[水煮人参]]></title> 
<description><![CDATA[美好的生活需要用心记录]]></description>
<link>http://www.doself.com/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>Sublime Text 2的 Ruby版本切换到rvm</title>
	<link>http://www.doself.com/?post=100</link>
	<description><![CDATA[<p>Sublime Text 2里默认ruby版本是mac自带的1.8.7，这个有时候太过陈旧，用到新语法时，可能报错，我们需要切换到RVM控制的Ruby版本，可以这样：</p>
<p>1.编辑Sublime Text2的Ruby.sublime-build</p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">vi ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Ruby/Ruby.sublime-build</pre>默认应该类似这样：<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">{
  "cmd": ["ruby", "$file"],
  "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
  "selector": "source.ruby"
} </pre>修改成这样：<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">{
        "cmd": ["/usr/local/rvm/bin/rvm-auto-ruby", "$file"],
        "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
        "selector": "source.ruby"
}</pre>注意cmd的路径，需要改成你的路径，指向rvm-auto-ruby；有的类似这样：/Users/<span style="color:#009900;">yourname</span>/.rvm/bin/rvm-auto-ruby<p></p>
<p>Ok，改完之后保存！大功告成，可以试试执行ruby代码了。<br />
 </p>]]></description>
	<pubDate>Mon, 02 Apr 2012 07:45:13 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=100</guid>

</item>
<item>
	<title>Linux安装MongoDB以及PHP扩展</title>
	<link>http://www.doself.com/?post=99</link>
	<description><![CDATA[<p>以下是我在CentOS系统上安装MongoDB的记录以及参考。</p>
<p><span style="font-weight:bold;"><br />
</span></p>
<p><span style="font-weight:bold;">安装MongoDB</span></p>
<p>1.下载MongoDB（注意版本选择，我的是64位的系统），并解压缩，放到安装目录</p>
<p>下载地址：<a target="_blank" href="http://www.mongodb.org/downloads">http://www.mongodb.org/downloads</a></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">cd /data0/software/
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.4.tgz
tar zxvf mongodb-linux-x86_64-2.0.4.tgz
mv mongodb-linux-x86_64-2.0.4 /usr/local/webserver/mongodb</pre>2.创建数据库存放目录，数据文件将会全部在这里。（本文章来源：<a target="_blank" href="/admin">http://www.doself.com</a>）<br />
<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">mkdir /usr/local/webserver/mongodb/data</pre>3.创建config文件（详细参数参考文章末尾）<br />
<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">vi /usr/local/webserver/mongodb/config</pre>内容大致如下：<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">dbpath = /usr/local/webserver/mongodb/data
logpath = /usr/local/webserver/mongodb/mongodb.log
logappend = true
bind_ip = 127.0.0.1
port = 27017
fork = true
auth = true</pre>4.创建2个脚本用于控制 mongoDB的启动和停止<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">vi /usr/local/webserver/mongodb/bin/start</pre>内容如下：<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">#!/bin/sh
/usr/local/webserver/mongodb/bin/mongod --config /usr/local/webserver/mongodb/config \</pre>创建停止脚本<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">vi /usr/local/webserver/mongodb/bin/stop</pre>内容如下<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">#!/bin/bash
pid=`ps -o pid,command ax | grep mongod | awk '!/awk/ &amp;&amp; !/grep/ {print $1}'`;
if [ "${pid}" != "" ]; then
    kill -2 ${pid};
fi</pre>赋予执行权限<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;"># chmod +x /usr/local/webserver/mongodb/bin/start
# chmod +x /usr/local/webserver/mongodb/bin/stop</pre>5.使MongoDb在系统启动时能够自动启动<p></p>
<p></p>
<p><span style="font-family:monospace;"><pre class="brush:shell; toolbar: true; auto-links: true;">vi /etc/rc.local</pre>添加一行，</span>/usr/local/webserver/mongodb/bin/start</p>
<p>&nbsp;</p>
<p>Ok,到目前为止，MongoDB已经安装成功了，启动它：</p>
<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">/usr/local/webserver/mongodb/bin/start</pre>然后在浏览器里输入：localhost:28017&nbsp;&nbsp; 就可以在控制台看到信息了。<p></p>
<p>&nbsp;</p>
<p style="font-weight:bold;">安装MongoDB的PHP扩展</p>
<p>下载地址：<a target="_blank" href="http://pecl.php.net/package/mongo">http://pecl.php.net/package/mongo</a></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">wget http://pecl.php.net/get/mongo-1.2.9.tgz
tar zxvf mongo-1.2.9.tgz
cd mongo-1.2.9
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
make &amp;&amp; make install</pre>最后在php.ini中加入以下行并重启webserver（如：vi /usr/local/webserver/php/etc/php.ini）<p></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">extension=mongo.so</pre><p>查看phpinfo,如出现mongo字样，说明成功了。</p>
<p>&nbsp;</p>
<p style="font-weight:bold;">mongod服务器配置参考</p>
<pre> <pre class="brush:shell; toolbar: true; auto-links: true;">[root@vm ~]# cat /etc/mongod.conf
# mongo.conf

#where to log
logpath=/var/log/mongo/mongod.log

logappend=true #以追加方式写入日志

# fork and run in background
fork = true

#port = 27017 #端口

dbpath=/var/lib/mongo #数据库文件保存位置

# Enables periodic logging of CPU utilization and I/O wait
#启用定期记录CPU利用率和 I/O 等待
#cpu = true

# Turn on/off security.  Off is currently the default
# 是否以安全认证方式运行，默认是不认证的非安全方式
#noauth = true
#auth = true

# Verbose logging output.
# 详细记录输出
#verbose = true

# Inspect all client data for validity on receipt (useful for
# developing drivers)用于开发驱动程序时的检查客户端接收数据的有效性
#objcheck = true

# Enable db quota management 启用数据库配额管理，默认每个db可以有8个文件，可以用quotaFiles参数设置
#quota = true
# 设置oplog记录等级
# Set oplogging level where n is
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
#oplog = 0

# Diagnostic/debugging option 动态调试项
#nocursors = true

# Ignore query hints 忽略查询提示
#nohints = true
# 禁用http界面，默认为localhost：28017
# Disable the HTTP interface (Defaults to localhost:27018).这个端口号写的是错的
#nohttpinterface = true

# 关闭服务器端脚本，这将极大的限制功能
# Turns off server-side scripting.  This will result in greatly limited
# functionality
#noscripting = true
# 关闭扫描表，任何查询将会是扫描失败
# Turns off table scans.  Any query that would do a table scan fails.
#notablescan = true
# 关闭数据文件预分配
# Disable data file preallocation.
#noprealloc = true
# 为新数据库指定.ns文件的大小，单位:MB
# Specify .ns file size for new databases.
# nssize = &lt;size&gt;

# Accout token for Mongo monitoring server.
#mms-token = &lt;token&gt;
# mongo监控服务器的名称
# Server name for Mongo monitoring server.
#mms-name = &lt;server-name&gt;
# mongo监控服务器的ping 间隔
# Ping interval for Mongo monitoring server.
#mms-interval = &lt;seconds&gt;

# Replication Options 复制选项

# in replicated mongo databases, specify here whether this is a slave or master 在复制中，指定当前是从属关系
#slave = true
#source = master.example.com
# Slave only: specify a single database to replicate
#only = master.example.com
# or
#master = true
#source = slave.example.com
[root@vm ~]#</pre></pre> <p>以上是默认的配置文件中的一些参数，更多参数可以用 <span style="color:#ff0000;">mongod -h</span> 命令来查看</p>
<p>&nbsp;</p>
<pre class="brush:shell; toolbar: true; auto-links: true;">[root@vm ~]# mongod -h
Allowed options:

General options:
  -h [ --help ]          show this usage information
  --version              show version information
  -f [ --config ] arg    configuration file specifying additional options 指定启动配置文件路径
  -v [ --verbose ]       be more verbose (include multiple times for more
                         verbosity e.g. -vvvvv)
  --quiet                quieter output
  --port arg             specify port number 端口
  --bind_ip arg          comma separated list of ip addresses to listen on -
                         all local ips by default 绑定ip，可以多个
  --maxConns arg         max number of simultaneous connections 最大并发连接数
  --logpath arg          log file to send write to instead of stdout - has to
                         be a file, not directory 日志文件路径
  --logappend            append to logpath instead of over-writing 日志写入方式
  --pidfilepath arg      full path to pidfile (if not set, no pidfile is
                         created) pid文件路径
  --keyFile arg          private key for cluster authentication (only for
                         replica sets)集群认证私钥，仅适用于副本集
  --unixSocketPrefix arg alternative directory for UNIX domain sockets
                         (defaults to /tmp)替代目录
  --fork                 fork server process
  --auth                 run with security 使用认证方式运行
  --cpu                  periodically show cpu and iowait utilization 定期显示的CPU和IO等待利用率
  --dbpath arg           directory for datafiles 数据库文件路径
  --diaglog arg          0=off 1=W 2=R 3=both 7=W+some reads oplog记录等级
  --directoryperdb       each database will be stored in a separate directory
                         每个数据库存储到单独目录
  --journal              enable journaling 记录日志，建议开启，在异常宕机时可以恢复一些数据
  --journalOptions arg   journal diagnostic options
  --ipv6                 enable IPv6 support (disabled by default)
  --jsonp                allow JSONP access via http (has security
                         implications)允许JSONP通过http访问，该方式存在安全隐患
  --noauth               run without security 不带安全认证的方式
  --nohttpinterface      disable http interface 禁用http接口
  --noprealloc           disable data file preallocation - will often hurt
                         performance 禁用数据文件的预分配，往往会损害性能
  --noscripting          disable scripting engine 禁用脚本引擎
  --notablescan          do not allow table scans 不允许表扫描
  --nounixsocket         disable listening on unix sockets禁止unix sockets监听
  --nssize arg (=16)     .ns file size (in MB) for new databases 为新数据设置.ns文件的大小
  --objcheck             inspect client data for validity on receipt 检查在收到客户端的数据的有效性
  --profile arg          0=off 1=slow, 2=all
  --quota                limits each database to a certain number of files (8
                         default)启用数据库配额管理，默认每个db可以有8个文件，可以用quotaFiles参数设置
  --quotaFiles arg       number of files allower per db, requires --quota
  --rest                 turn on simple rest api 开启rest api
  --repair               run repair on all dbs 修复所有数据库
  --repairpath arg       root directory for repair files - defaults to dbpath修复文件的根目录，默
                         认为dbpath指定的目录
  --slowms arg (=100)    value of slow for profile and console log
  --smallfiles           use a smaller default file size
  --syncdelay arg (=60)  seconds between disk syncs (0=never, but not
                         recommended)与硬盘同步数据的时间，默认60秒，0表示不同步到硬盘（不建议）
  --sysinfo              print some diagnostic system information打印一些诊断系统信息
  --upgrade              upgrade db if needed 如果必要，将数据库文件升级到新的格式
                        （&lt;=1.0到1.1+升级时所需的）

Replication options:    复制选项
  --fastsync            indicate that this instance is starting from a dbpath
                        snapshot of the repl peer 从一个dbpath快照开始同步
  --autoresync          automatically resync if slave data is stale 自动同步，如果从机的数据不是新的
                        自动同步
  --oplogSize arg       size limit (in MB) for op log oplog的大小

Master/slave options:   主/从配置选项
  --master              master mode 主模式
  --slave               slave mode  从属模式
  --source arg          when slave: specify master as &lt;server:port&gt;从属服务器上指定主服务器地址
  --only arg            when slave: specify a single database to replicate从属服务器上指定要复制的
                        数据库
  --slavedelay arg      specify delay (in seconds) to be used when applying
                        master ops to slave 指定从主服务器上同步数据的时间间隔 单位秒

Replica set options:    副本集选项
  --replSet arg         arg is &lt;setname&gt;[/&lt;optionalseedhostlist&gt;]
                        参数：&lt;名称&gt;[&lt;种子主机列表&gt;]

Sharding options:       分片设置选项
  --configsvr           declare this is a config db of a cluster; default port
                        27019; default dir /data/configdb 声明这是一个集群的配置数据库，
                        默认的端口是27019 默认的路径是/data/configdb
  --shardsvr            declare this is a shard db of a cluster; default port
                        27018 声明这是集群的一个分片数据库，默认端口为27018
  --noMoveParanoia      turn off paranoid saving of data for moveChunk.  this
                        is on by default for now, but default will switch
                        关闭偏着保存大块数据。现在它是默认的，但是会变换</pre> <p></p>
<p></p>]]></description>
	<pubDate>Fri, 30 Mar 2012 02:19:55 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=99</guid>

</item>
<item>
	<title>苹果Mac Lion系统如何清除DNS缓存</title>
	<link>http://www.doself.com/?post=97</link>
	<description><![CDATA[<p>敲入以下命令：</p>
<p><pre class="brush:shell; toolbar: true; auto-links: true;">dscacheutil -flushcache</pre>OK，现在DNS已经刷新了！</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Wed, 14 Mar 2012 06:22:58 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=97</guid>

</item>
<item>
	<title>Textmate 怎么通过RVM设置 ruby版本</title>
	<link>http://www.doself.com/?post=96</link>
	<description><![CDATA[<p>在TextMate里按⌘+R键 运行ruby脚本的时候 无意中发现Textmate调用ruby的版本居然是系统自带的1.8.7</p>
<p>火大了，我的ruby版本早就通过rvm设置成1.9.3了，Textmate居然没有认出rvm来<img src="/admin/editor/plugins/emoticons/6.gif" alt="" border="0" /></p>
<p><br />
Ok，爬google吧！</p>
<p>解决方法如下：（此方法适合textmate2,textmate1的版本我没有试过<img src="/admin/editor/plugins/emoticons/15.gif" alt="" border="0" />，大家自己试试吧）</p>
<p>step 1. 首先找到rvm-auto-ruby的位置，打开终端执行<span style="font-family:monospace;"><br />
</span></p>
<p></p>
<pre class="brush:shell; toolbar: true; auto-links: true;">which rvm-auto-ruby</pre>我的返回：/usr/local/rvm/bin/rvm-auto-ruby<p></p>
<p>step 2. 给Textmate设置Variable，TM_RUBY=/usr/local/rvm/bin/rvm-auto-ruby</p>
<p>方法如下：TextMate-&gt;Preferences-&gt;variables&nbsp; 然后点击左下角的+ 添加变量 如图：</p>
<p><img src="/uploadfile/textmate.jpg" title="textmate" alt="textmate" border="0" height="350" width="480" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Sat, 10 Mar 2012 10:58:57 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=96</guid>

</item>
<item>
	<title>Linux自动挂载NTFS分区</title>
	<link>http://www.doself.com/?post=91</link>
	<description><![CDATA[<p><span style="font-size:14px;">在Linux系统上插上</span><span style="font-size:14px;">NTFS格式的U盘或者移动硬盘，能够像挂载fat32格式一样自动挂载以及读写，</span><span style="font-weight:bold;font-size:14px;"><br />
</span></p>
<p><span style="font-weight:bold;font-size:14px;">安装方法1</span></p>
<p>去http://www.tuxera.com/community/ntfs-3g-download/下载，建议下载<b><span style="color:green;">stable version</span></b></p>
<p>然后解压缩&amp;编译<b>:<span style="color:green;"><br />
</span></b></p>
<p></p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:66px;overflow:auto;">./configure
make
make install # or 'sudo make install'  if you aren't root</pre> <p>&nbsp;</p>
<p style="font-weight:bold;"><span style="font-size:14px;">安装方法2：</span></p>
<p><span style="font-weight:bold;">yum install ntfs-3g</span></p>
<p><br />
</p>
<p><span style="font-weight:bold;">安装完之后配置:<br />
</span></p>
<p>以root身份新建文件/sbin/mount.ntfs</p>
<p></p>
<p>$vi /sbin/mount.ntfs</p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:66px;overflow:auto;">#!/bin/sh
export LANG=en_US.UTF-8
exec /sbin/mount.ntfs-3g "$@"</pre><p>然后执行:</p>
<pre class="alt2" style="margin:0px;padding:4px;border:1px solid #c6c6c6;width:640px;height:34px;overflow:auto;">#chmod a+x /sbin/mount.ntfs</pre><p>最后重启reboot</p>
<p>Ok,重启以后再插上NTFS格式的盘,系统自动认出来了吧!</p>]]></description>
	<pubDate>Wed, 28 Dec 2011 01:55:07 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=91</guid>

</item>
<item>
	<title>合唱团</title>
	<link>http://www.doself.com/?post=31</link>
	<description><![CDATA[<p>一群人反复靠近　反复酝酿必要的情绪　和<br /> 不必要的冲动<br /> 我站在菊的后面　萍的左面　指挥的反面　和<br /> 欲望的中间<br /> 直对着我的校门<br /> <br /> 我高声歌唱　声音被领唱打断　被合唱淹没<br /> 被肺粗暴地压迫<br /> 当铃声响起时　我流下忧虑的泪水　因为这群人<br /> 即将解散　分赴祖国各地　退为荣誉成员<br /> <br /> 站台上　一片混乱的景象　我们和民工一起　向着<br /> 火车招手　招着招着　萍就不见了<br /> 死于火车远去的方向<br /> 这是五年以后的事情<br /> <br /> 我　我们　唱过许多歌　和　不是歌的练习曲<br /> 唱过山中故乡和水上海鸥　无望的爱和奋勇的前进<br /> 菊说　能进合唱团多好啊</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>夜里浑身酸疼</p> <p>依稀好像捧着一本书</p> <p>依稀又读到了这些语句</p> <p>于是 依稀又想起了一个人的名字&mdash;&mdash;杜马兰</p> <p>读他的诗 会让你感悟生活中的心疼</p> <p>读他的诗 会告诉你 我们为什么不歌唱</p> <p>读他的诗 会让你带着希望快乐地生活！</p> <p>&nbsp;</p>]]></description>
	<pubDate>Sun, 21 Dec 2008 14:37:12 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=31</guid>

</item>
<item>
	<title>Smarty生成静态页面</title>
	<link>http://www.doself.com/?post=30</link>
	<description><![CDATA[<p>记录一个，Smarty是很聪明的</p>
<p>ob_start();//开启缓冲区<br />
$smarty-&gt;assign(&ldquo;a&rdquo;,$a);<br />
$smarty-&gt;display(&rdquo;temp.html&rdquo;);<br />
$html_content= ob_get_contents(); //读取缓冲区的数据<br />
ob_end_clean();//关闭缓冲区</p>
<p>$htm_content里头的东西就是想要的东西了，将它写入页面就可以了。</p>]]></description>
	<pubDate>Thu, 11 Dec 2008 19:08:07 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=30</guid>

</item>
<item>
	<title>进享未来——2008微软技术大会北京会场开幕式</title>
	<link>http://www.doself.com/?post=28</link>
	<description><![CDATA[<p>时间:08年11月6日</p>
<p>地点:奥体中心</p>
<p>&nbsp;<img height="450" alt="1" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/1.jpg" /></p>
<p><img height="450" alt="2" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/2.jpg" /></p>
<p><img height="450" alt="3" width="600" border="0" src="http://www.doself.com/uploadfile/tech_ed/3.jpg" /></p>
<p><strong>虚拟机</strong></p>
<p>介绍了两款产品及Drmo:Windows Server 2008 Hyper-V与Windows HPC Server 2008</p>
<p><strong>SQL Server 2008</strong></p>
<p>按老外的说法：很快很漂亮！</p>
<p><strong>Visual Studio 2008</strong></p>
<p>这个不用介绍了，2010版本将会2009年底推出，支持Surface开发等。</p>
<p><strong>云计算</strong></p>
<p>以前是&quot;Hello World&quot;，现在是&quot;Hello Cloud&quot;的时候了!</p>
<p><strong>WPF &amp; Silverlight</strong></p>
<p>腾讯展示了两款Silverlight开发的产品：<a target="_blank" href="http://yg.qq.com/taotao">滔滔</a>与<a target="_blank" href="http://yg.qq.com/tv">QQLive</a>的酷炫版，另外还展示了实验中的不同技术开发的QQ,其中包括用Silverlight开发的网页版。</p>
<p><strong>Windows Azure</strong></p>
<p>用于云计算的操作系统</p>
<p><strong>Surface</strong></p>
<p>支持多点触摸的玩意</p>
<p>提出了由图形化人机界面（GUI：G<font size="2">raphical User Interface）</font>向自然人机界面(NUI：Natural User Interface)转变的必然性，现场进行了震撼的交互Demo和视频Demo。</p>
<p><strong>Windows Live Mesh</strong></p>
<p>从Live Mesh可以看出，微软已迈出从PC领域转型到&ldquo;云计算&rdquo;最为野心勃勃的一步，并将重新取得主导权。</p>
<p><strong>总结:</strong></p>
<p>这次大会，介绍的大部分新技术都是基于云端计算，云计算将会是大势所趋，也是微软这次向开发者力推的新的技术趋势。另外一个信息就是：微软将来的操作系统，都会支持多点触摸操作。Coder们，你们准备好了吗。</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Fri, 07 Nov 2008 01:12:51 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=28</guid>

</item>
<item>
	<title>手机的又一个惊天秘密</title>
	<link>http://www.doself.com/?post=26</link>
	<description><![CDATA[<p>手机的又一个惊天秘密！！你发现了吗？所有的手机都无法解决的一个毛病，你的有吗？据荷兰通信权威发现，今年所有手机计算器用2008除以8.032，屏幕会自动显示机主姓名，很奇怪、很神话的事情，暂时无人能破解其中奥秘。</p>]]></description>
	<pubDate>Tue, 28 Oct 2008 16:00:06 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=26</guid>

</item>
<item>
	<title>phpMyAdmin 3.0的安装配置</title>
	<link>http://www.doself.com/?post=25</link>
	<description><![CDATA[<p>郁闷，我不会用phpMyAdmin自带的那个setup步骤配置，一直都是直接通过改config.ini.php来配置的</p>
<p>过程如下：</p>
<p>1.从phpMyAdmin/libraries/下拷贝config.default.php到phpMyAdmin下，并改名为config.ini.php</p>
<p>2.用editplus或其它编辑器打开phpMyAdmin/config.ini.php,修改：</p>
<p>$cfg['PmaAbsoluteUri'] = 'http://127.0.0.1/phpMyAdmin';//phpMyAdmin的安装路径<br />
$cfg['blowfish_secret'] = 'hejone';//加密密匙，可随意更改。<br />
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL的主机名称或者IP地址<br />
$cfg['Servers'][$i]['port'] = '3306′; // MySQL端口 - 空白将用默认端口3306<br />
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 认证方式 (config, http or cookie based)?<br />
$cfg['Servers'][$i]['user'] = 'root'; // MySQL用户，如 root<br />
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQL用户密码</p>
<p>3：保存</p>
<p>搞定 ！</p>
<p>&nbsp;</p>]]></description>
	<pubDate>Sun, 05 Oct 2008 13:08:57 +0000</pubDate>
	<author>Jone</author>
	<guid>http://www.doself.com/?post=25</guid>

</item></channel>
</rss>
