<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>何必呢</title>
	<atom:link href="http://blog.hebine.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hebine.com</link>
	<description>无折腾,不生活...</description>
	<lastBuildDate>Fri, 20 Apr 2012 05:42:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>使用Google Docs备份你的Tweets</title>
		<link>http://blog.hebine.com/archives/1674.html</link>
		<comments>http://blog.hebine.com/archives/1674.html#comments</comments>
		<pubDate>Fri, 20 Apr 2012 01:48:52 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Docs]]></category>
		<category><![CDATA[TAGS]]></category>
		<category><![CDATA[Tweets备份]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter Archiving Google Spreadsheet]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1674</guid>
		<description><![CDATA[Twitter Archiving Google Spreadsheet（简称：TAGS）是Martin Hawksey制作的Tweets备份工具，它利用强大的Google Docs来实现备份Tweets的目的。 简单介绍下适用方法。 打开Twitter Archiving Google Spreadsheet，选中是，制作副本。 然后在Readme/Settings的第10行输入要备份的条件，比如备份我自己的Tweets就输入&#8221;from:ksky&#8221;，当然你也可以直接输入标签&#8221;#2012&#8243;这样来备份Tweets。 设置好，开始备份吧。点击菜单中的TAGS，选择Run Now!，第一次备份需要验证授权。之后再次点击Run Now!就可以进行备份了。备份好的Tweets在下面的Archive里查看。 当然TAGS还有更强大的定时备份功能，感觉Google Docs太强大了。选择菜单栏的工具里的Script Editor进入。 选择进入的Script Editor页面里的菜单中的“资源” &#8211; “您的所有触发器”。选择Add a new trigger,依次选择collectTweets-Time-driven。然后点击save可以了。 其实Twitter Archiving Google Spreadsheet还有更多高级的功能，大家可以去官网查看。]]></description>
			<content:encoded><![CDATA[<p>Twitter Archiving Google Spreadsheet（简称：TAGS）是Martin Hawksey制作的Tweets备份工具，它利用强大的Google Docs来实现备份Tweets的目的。</p>
<ul>
简单介绍下适用方法。</p>
<li>打开<a href="https://docs.google.com/spreadsheet/ccc?key=0AqGkLMU9sHmLdFVzSzdXY0RxN211b1k0Uks3Z1hWYUE&#038;hl=en_GB&#038;newcopy">Twitter Archiving Google Spreadsheet</a>，选中<strong>是，制作副本。</strong></li>
<li>然后在Readme/Settings的第10行输入要备份的条件，比如备份我自己的Tweets就输入&#8221;from:ksky&#8221;，当然你也可以直接输入标签&#8221;#2012&#8243;这样来备份Tweets。</li>
<img src="http://ww2.sinaimg.cn/large/9d37aebcjw1ds5ukb47rgj.jpg" alt="使用Google Docs备份你的Tweets" width="558" height="168" />
<li>设置好，开始备份吧。点击菜单中的TAGS，选择Run Now!，第一次备份需要验证授权。之后再次点击Run Now!就可以进行备份了。备份好的Tweets在下面的Archive里查看。</li>
<p><span id="more-1674"></span></p>
<li>当然TAGS还有更强大的定时备份功能，感觉Google Docs太强大了。选择菜单栏的工具里的Script Editor进入。</li>
<img src="http://ww3.sinaimg.cn/large/9d37aebcjw1ds5utejci9j.jpg" alt="" />
<li>选择进入的Script Editor页面里的菜单中的“资源” &#8211; “您的所有触发器”。选择Add a new trigger,依次选择collectTweets-Time-driven。然后点击save可以了。
<img src="http://ww4.sinaimg.cn/large/9d37aebcjw1ds5uzsy63vj.jpg " alt="" width="558" />
</ul>
<p>其实<a href="http://mashe.hawksey.info/2012/01/twitter-archive-tagsv3/">Twitter Archiving Google Spreadsheet</a>还有更多高级的功能，大家可以去官网查看。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1674.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>关于iOS 5完美越狱需要注意的问题</title>
		<link>http://blog.hebine.com/archives/1638.html</link>
		<comments>http://blog.hebine.com/archives/1638.html#comments</comments>
		<pubDate>Tue, 27 Dec 2011 15:04:08 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iOS 5完美越狱]]></category>
		<category><![CDATA[iPhone 4越狱]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[完美越狱]]></category>
		<category><![CDATA[越狱]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1638</guid>
		<description><![CDATA[万众期待的iOS 5完美越狱今天终于发布了，下面是我收集整理的在越狱之前大家需要注意的问题。可能不是很全，有时间我会随时更新的。 1.本次越狱是由黑客@pod2g完成后移交给着名的越狱团队iPhone Dev Team封包发布的。 2.本次完美越狱只针对于A4处理器的iOS设备，包括iPhone3GS,iPhone4,iPhone4-CDMA,iPad1,iPod touch 3G,iPod touch 4G。使用A5处理器的iPad2和iPhone 4S暂时无法越狱。 3.本次完美越狱针对的是iOS 5.0.1系统，如果你的设备是5.0系统，且是无锁版的话可以直接升级到5.0.1然后使用redsn0w 0.9.10b1越狱。如果是有锁版的话只能等自制固件发布后使用自制固件越狱。 4.如果你的设备已经是iOS 5.0.1系统了，那么直接用redsn0w 0.9.10b1越狱吧。 5.如果你的设备已经是iOS 5.0.1而你之前用不完美越狱过，那么你可以直接使用redsn0w 0.9.10b1不选择安装Cydia再越狱一遍，也可以打开Cydia安装Corona 5.0.1 Untether这个包直接完成越狱。再如果你想要一个干净的系统也可以重新恢复一遍iOS 5.0.1然后再重新使用redsn0w 0.9.10b1越狱。 6.使用redsn0w 0.9.10b1越狱之后Cydia添加源闪退的处理方式有两种，1种是把系统语言改成英文，然后再添加源。另外一种是直接用其他的文件管理器把/var/mobile/Library/Keyboard 文件夹复制到/var/root/Library/下。 7.使用redsn0w 0.9.10b1越狱iOS 5.0.1的教程可以参考我之前写的使用Redsn0w 0.9.6为iOS 4.3.2越狱教程 8.目前iOS 5.0.1越狱之后的已知Bug：iBook 1.5会被退出。感谢@icorey告知。 9.redsn0w更新至redsn0w 0.9.10b2，解决了一些Bug。 最后附上redsn0w 0.9.10b2的下载 Mac版 &#124; Win版 越狱时需要用到的原版固件下载 iPhone 4 5.0.1 固件下载 iPhone 4 CDMA 5.0.1 固件下载 iPhone 3GS 5.0.1...  <a href="http://blog.hebine.com/archives/1638.html" class="more-link" title="Read 关于iOS 5完美越狱需要注意的问题">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>万众期待的iOS 5完美越狱今天终于发布了，下面是我收集整理的在越狱之前大家需要注意的问题。可能不是很全，有时间我会随时更新的。</p>
<p><strong>1.</strong>本次越狱是由黑客<a href="https://twitter.com/#!/pod2g">@pod2g</a>完成后移交给着名的越狱团队<a href="http://blog.iphone-dev.org/">iPhone Dev Team</a>封包发布的。</p>
<p><strong>2.</strong>本次完美越狱只针对于A4处理器的iOS设备，包括iPhone3GS,iPhone4,iPhone4-CDMA,iPad1,iPod touch 3G,iPod touch 4G。使用A5处理器的iPad2和iPhone 4S暂时无法越狱。</p>
<p><strong>3.</strong>本次完美越狱针对的是iOS 5.0.1系统，如果你的设备是5.0系统，且是无锁版的话可以直接升级到5.0.1然后使用redsn0w 0.9.10b1越狱。如果是有锁版的话只能等自制固件发布后使用自制固件越狱。</p>
<p><strong>4.</strong>如果你的设备已经是iOS 5.0.1系统了，那么直接用redsn0w 0.9.10b1越狱吧。</p>
<p><strong>5.</strong>如果你的设备已经是iOS 5.0.1而你之前用不完美越狱过，那么你可以直接使用redsn0w 0.9.10b1不选择安装Cydia再越狱一遍，也可以打开Cydia安装Corona 5.0.1 Untether这个包直接完成越狱。再如果你想要一个干净的系统也可以重新恢复一遍iOS 5.0.1然后再重新使用redsn0w 0.9.10b1越狱。</p>
<p><strong>6.</strong>使用redsn0w 0.9.10b1越狱之后Cydia添加源闪退的处理方式有两种，1种是把系统语言改成英文，然后再添加源。另外一种是直接用其他的文件管理器把/var/mobile/Library/Keyboard 文件夹复制到/var/root/Library/下。</p>
<p><strong>7.</strong>使用redsn0w 0.9.10b1越狱iOS 5.0.1的教程可以参考我之前写的<a href="http://blog.hebine.com/archives/1411.html" target="_blank">使用Redsn0w 0.9.6为iOS 4.3.2越狱教程</a></p>
<p>8.目前iOS 5.0.1越狱之后的已知Bug：iBook 1.5会被退出。感谢<a href="https://twitter.com/icorey">@icorey</a>告知。</p>
<p>9.redsn0w更新至redsn0w 0.9.10b2，解决了一些Bug。</p>
<p>最后附上redsn0w 0.9.10b2的下载 <a href="http://115.com/file/ant0ot5x" target="_blank">Mac版</a> | <a href="http://115.com/file/dp2vrq2x" target="_blank">Win版</a><br />
<span id="more-1638"></span><br />
越狱时需要用到的原版固件下载</p>
<p><a href="http://appldnld.apple.com/iPhone4/041-3309.20111109.64rtg/iPhone3,1_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPhone 4 5.0.1 固件下载</a><br />
<a href="http://appldnld.apple.com/iPhone4/041-3304.20111109.Vgtyh/iPhone3,3_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPhone 4 CDMA 5.0.1 固件下载</a><br />
<a href="http://appldnld.apple.com/iPhone4/041-3307.20111109.5tGhu/iPhone2,1_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPhone 3GS 5.0.1 固件下载</a><br />
<a href="http://appldnld.apple.com/iPhone4/041-3308.20111109.Fvgtr/iPad1,1_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPad 1 5.0.1 固件下载</a><br />
<a href="http://appldnld.apple.com/iPhone4/041-3313.20111109.Azxe3/iPod4,1_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPod touch 4 5.0.1 固件下载</a><br />
<a href="http://appldnld.apple.com/iPhone4/041-3314.20111109.Mbgh6/iPod3,1_5.0.1_9A405_Restore.ipsw" rel="external nofollow" target="_blank">iPod touch 3 5.0.1 固件下载</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1638.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Nginx下的WordPress开启WP Super Cache</title>
		<link>http://blog.hebine.com/archives/1632.html</link>
		<comments>http://blog.hebine.com/archives/1632.html#comments</comments>
		<pubDate>Mon, 28 Nov 2011 05:15:50 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Liunx]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WP Super Cache]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1632</guid>
		<description><![CDATA[最近一个VPS上的Wordpress压力太大，测试了几个方式，最终还是觉得WP Super Cache省事管用。 由于Wordpress是架设到VPS上的，VPS上只安装Nginx做为Web服务器，所以安装WP Super Cache就显得稍微麻烦一些。 具体的如何在VPS上安装Nginx，包括PHP，Mysql和FastCGI这些的话这里就不废话了，不会的同学可以参考下我这篇文章。 这里我只说如何在Nginx下配置WP Super Cache规则。 首先明确的是我的Nginx配置文件路径是/usr/local/nginx/conf，我的Web服务器的根目录在/home/wwwroot/下面。如果你的不一样的话请自行修改。 首先配置WordPress伪静态。在/usr/local/nginx/conf/下创建wordpress文件。 cd /usr/local/nginx/conf/ vi wordpress 输入以下内容 # WordPress Url rules if (-f $request_filename) { expires max; break; } if (-d $request_filename) { break; } rewrite ^(.+)$ /index.php?q=$1 last; error_page 404 = //index.php?q=$uri; 然后配置WP Super Cache规则，在/usr/local/nginx/conf/下创建supercache文件。 cd /usr/local/nginx/conf/ vi supercache 输入内容 if (-f $request_filename) {...  <a href="http://blog.hebine.com/archives/1632.html" class="more-link" title="Read Nginx下的WordPress开启WP Super Cache">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>最近一个VPS上的Wordpress压力太大，测试了几个方式，最终还是觉得WP Super Cache省事管用。</p>
<p>由于Wordpress是架设到VPS上的，VPS上只安装Nginx做为Web服务器，所以安装WP Super Cache就显得稍微麻烦一些。</p>
<p>具体的如何在VPS上安装Nginx，包括PHP，Mysql和FastCGI这些的话这里就不废话了，不会的同学可以参考下我<a href="http://blog.hebine.com/archives/1552.html">这篇文章</a>。</p>
<p>这里我只说如何在Nginx下配置WP Super Cache规则。</p>
<p>首先明确的是我的Nginx配置文件路径是/usr/local/nginx/conf，我的Web服务器的根目录在/home/wwwroot/下面。如果你的不一样的话请自行修改。</p>
<p>首先配置WordPress伪静态。在/usr/local/nginx/conf/下创建wordpress文件。<br />
<span id="more-1632"></span></p>
<pre class="wp-code-highlight prettyprint">
cd /usr/local/nginx/conf/
vi wordpress
</pre>
<p>输入以下内容</p>
<pre class="wp-code-highlight prettyprint">
# WordPress Url rules
if (-f $request_filename) {
expires max;
break;
}
if (-d $request_filename) {
break;
}
rewrite ^(.+)$ /index.php?q=$1 last;

error_page  404  = //index.php?q=$uri;
</pre>
<p>然后配置WP Super Cache规则，在/usr/local/nginx/conf/下创建supercache文件。</p>
<pre class="wp-code-highlight prettyprint">
cd /usr/local/nginx/conf/
vi supercache
</pre>
<p>输入内容</p>
<pre class="wp-code-highlight prettyprint">
if (-f $request_filename) {
expires 30d;
break;
}

set $supercache_file '';
set $supercache_uri $request_uri;

if ($request_method = POST) {
set $supercache_uri '';
}

if ($query_string) {
set $supercache_uri '';
}

if ($http_cookie ~* &quot;comment_author_|wordpress|wp-postpass_&quot; ) {
set $supercache_uri '';
}

if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /home/wwwroot/hebine.com/wp-content/cache/supercache/$http_host/$1index.html;
}

if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}

if (!-e $request_filename) {
rewrite . /home/wwwroot/hebine.com/index.php last;
}
</pre>
<p>创建完这两条规则后直接加到相应的域名配置文件里就可以了。加到诸如下面的位置</p>
<pre class="wp-code-highlight prettyprint">
location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                                include /usr/local/nginx/conf/supercache;
                        }
</pre>
<p>然后Wordpress里面安装WP Super Cache并开启，然后重启Nginx就可以了。</p>
<pre class="wp-code-highlight prettyprint">
/etc/init.d/nginx restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1632.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mac下开机自动连接ssh -D (2)</title>
		<link>http://blog.hebine.com/archives/1621.html</link>
		<comments>http://blog.hebine.com/archives/1621.html#comments</comments>
		<pubDate>Mon, 14 Nov 2011 13:26:30 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[autossh]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[ssh -D]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[折腾]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1621</guid>
		<description><![CDATA[接着上一篇Mac下开机自动连接ssh -D继续来，受@Livid提醒，可以用公钥来代替密码建立ssh -D连接。然后接着用launchd设置开机自启。 首先我们来生成公钥文件。Terminal下面输入 ssh-keygen -t rsa 之后在Terminal的提示里按回车。直到生成id_rsa.pub文件，生成的id_rsa.pub文件在 ~/.ssh下面。Terminal下面输入 cd ~/.ssh cp id_rsa.pub authorized_keys 上面第一句的意思是进入~/.ssh文件夹，第二句是复制id_rsa.pub为authorized_keys文件。 下面我们就把得到的authorized_keys文件上传到ssh服务上。 ssh username@yourserver.com mkdir .ssh scp -p ~/.ssh/authorized_keys username@yourserver.com:.ssh/ 把上面username改成你的ssh用户名，yourserver.com改成你的ssh服务器地址或者ip。 我们可以在Terminal上输入ssh命令测试公钥是否成功 ssh username@yourserver.com 如果没有输入密码就登录成功了，那就证明公钥生效了。 弄好了免密码连接ssh，现在我们继续解决断线重连的问题。在这里我们需要用到autossh这个工具。autossh是一个非常牛X的工具，他可以监控ssh进程是否正常运行，而且他还能随时监控ssh通道是否能够正常通信，如果一旦ssh进程死掉或者ssh不通信了，autossh都会自动开启新的ssh进程并自动连接。所以autossh是我们全天候无障碍通信的最佳帮手。如果你的Mac里使用了Homebrew，那么安装autossh是非常简单的事情。只需要。 brew install autossh 这样就可以了。如果你的Mac里没有Homebrew，那么有MacPorts也是一样的。 sudo port install autossh 如果你连MacPorts也没有，好吧，你只能去下载autossh然后自动编译了。 安装好了autossh，我们继续使用launchd设置开机自动启动autossh连接ssh -D。 在/Library/LaunchDaemons/下或者~/Library/LaunchAgents/创建一个plist文件，文件名为 com.hebine.sshd.plist （同样这个文件名大家可以根据自己的喜好随便选。） Terminal下输入命令 vi ~/Library/LaunchAgents/com.hebine.sshd.plist 文件内输入以下内容 &#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62; &#60;!DOCTYPE plist PUBLIC &#34;-//Apple...  <a href="http://blog.hebine.com/archives/1621.html" class="more-link" title="Read Mac下开机自动连接ssh -D (2)">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>接着上一篇<a href="http://blog.hebine.com/archives/1599.html">Mac下开机自动连接ssh -D</a>继续来，受<a href="http://www.v2ex.com/">@Livid</a>提醒，可以用公钥来代替密码建立ssh -D连接。然后接着用launchd设置开机自启。</p>
<p>首先我们来生成公钥文件。Terminal下面输入</p>
<pre class="wp-code-highlight prettyprint">
ssh-keygen -t rsa
</pre>
<p>之后在Terminal的提示里按回车。直到生成id_rsa.pub文件，生成的id_rsa.pub文件在 ~/.ssh下面。Terminal下面输入</p>
<pre class="wp-code-highlight prettyprint">
cd ~/.ssh
cp id_rsa.pub authorized_keys
</pre>
<p>上面第一句的意思是进入~/.ssh文件夹，第二句是复制id_rsa.pub为authorized_keys文件。</p>
<p>下面我们就把得到的authorized_keys文件上传到ssh服务上。</p>
<pre class="wp-code-highlight prettyprint">
ssh username@yourserver.com mkdir .ssh
scp -p ~/.ssh/authorized_keys username@yourserver.com:.ssh/
</pre>
<p>把上面username改成你的ssh用户名，yourserver.com改成你的ssh服务器地址或者ip。<br />
<span id="more-1621"></span><br />
我们可以在Terminal上输入ssh命令测试公钥是否成功</p>
<pre class="wp-code-highlight prettyprint">
ssh username@yourserver.com
</pre>
<p>如果没有输入密码就登录成功了，那就证明公钥生效了。</p>
<p>弄好了免密码连接ssh，现在我们继续解决断线重连的问题。在这里我们需要用到<a href="http://www.harding.motd.ca/autossh/">autossh</a>这个工具。autossh是一个非常牛X的工具，他可以监控ssh进程是否正常运行，而且他还能随时监控ssh通道是否能够正常通信，如果一旦ssh进程死掉或者ssh不通信了，autossh都会自动开启新的ssh进程并自动连接。所以autossh是我们全天候无障碍通信的最佳帮手。如果你的Mac里使用了Homebrew，那么安装autossh是非常简单的事情。只需要。</p>
<pre class="wp-code-highlight prettyprint">
brew install autossh
</pre>
<p>这样就可以了。如果你的Mac里没有Homebrew，那么有MacPorts也是一样的。</p>
<pre class="wp-code-highlight prettyprint">
sudo port install autossh
</pre>
<p>如果你连MacPorts也没有，好吧，你只能去下载<a href="http://www.harding.motd.ca/autossh/">autossh</a>然后自动编译了。</p>
<p>安装好了autossh，我们继续使用launchd设置开机自动启动autossh连接ssh -D。</p>
<p>在/Library/LaunchDaemons/下或者~/Library/LaunchAgents/创建一个plist文件，文件名为 com.hebine.sshd.plist （同样这个文件名大家可以根据自己的喜好随便选。）</p>
<p>Terminal下输入命令</p>
<pre class="wp-code-highlight prettyprint">
vi ~/Library/LaunchAgents/com.hebine.sshd.plist
</pre>
<p>文件内输入以下内容</p>
<pre class="wp-code-highlight prettyprint">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
  &lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
      &lt;string&gt;com.hebine.sshd&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
      &lt;array&gt;
        &lt;string&gt;/usr/local/bin/autossh&lt;/string&gt;
        &lt;string&gt;-D&lt;/string&gt;
        &lt;string&gt;9000&lt;/string&gt;
        &lt;string&gt;username@yourserver.com&lt;/string&gt;
      &lt;/array&gt;
    &lt;key&gt;KeepAlive&lt;/key&gt;
      &lt;true/&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
      &lt;true/&gt;
  &lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>你可以使用下面的命令加载上面的launchd服务。</p>
<pre class="wp-code-highlight prettyprint">
launchctl load ~/Library/LaunchAgents/com.hebine.sshd.plist
</pre>
<p>另外你如果你没有有autossh，可以使用ssh代替上面的autossh命令，不过那样断掉就不能重新连接了。</p>
<p>不使用autossh，只需把上面那句</p>
<pre class="wp-code-highlight prettyprint">
&lt;string&gt;/usr/local/bin/autossh&lt;/string&gt;
</pre>
<p>改成</p>
<pre class="wp-code-highlight prettyprint">
&lt;string&gt;/usr/bin/ssh&lt;/string&gt;
</pre>
<p>OK.重启电脑吧。</p>
<p>PS：其实人都是被逼出来的，所以我感谢亲爱的墙。感谢你让我学到了那么多。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1621.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mac下开机自动连接ssh -D (1)</title>
		<link>http://blog.hebine.com/archives/1599.html</link>
		<comments>http://blog.hebine.com/archives/1599.html#comments</comments>
		<pubDate>Mon, 14 Nov 2011 04:26:56 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[autossh]]></category>
		<category><![CDATA[Expect]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ssh -D]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1599</guid>
		<description><![CDATA[ssh -D命令可以为用户提供sock5代理，这也是目前国内用户最经济的fan墙方案。他有价格便宜，使用简单等诸多优点。但是每次开机都需要打开Terminal，然后敲一句 ssh -qTfnN -D $port $user@$host,然后还要输入密码确实是一件非常麻烦的事情。再加上如果网络条件不好，ssh -D再后台断了都不知道。 所以今天在这里教大家使用Expect写的脚本自动连接ssh -D，然后使用launchd设置这段脚本开机自启。 首先是自动连接ssh -D的Expect脚本，你可以把这个脚本直接创建在/usr/local/bin 或 /usr/bin下面，这样本机所有的用户都可以直接调用这个脚本连接ssh -D了。在这里我们把这个脚本放到/usr/local/bin下命名为sshd。 直接在Terminal输入以下命令回车。 sudo vi /usr/local/bin/sshd 在Password:后面输入你的密码。然后在弹出的&#8221;/usr/local/bin/sshd&#8221; [New File]字符界面上输入 “i”进入编辑状态。 输入以下脚本： #!/usr/bin/expect -f set port 9000 set user username set host yourserver.com set password passwd set timeout -1 spawn ssh -qTfnN -D $port $user@$host expect &#34;*assword:*&#34; send &#34;$password\r&#34; interact #expect eof 其中9000那改成你要设置的sock5代理的本地端口，username那输入你的ssh服务的用户名，yourserver.com是你的ssh服务器地址或者IP，Passwd是你的ssh密码。...  <a href="http://blog.hebine.com/archives/1599.html" class="more-link" title="Read Mac下开机自动连接ssh -D (1)">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>ssh -D命令可以为用户提供sock5代理，这也是目前国内用户最经济的fan墙方案。他有价格便宜，使用简单等诸多优点。但是每次开机都需要打开Terminal，然后敲一句 ssh -qTfnN -D $port $user@$host,然后还要输入密码确实是一件非常麻烦的事情。再加上如果网络条件不好，ssh -D再后台断了都不知道。<br />
所以今天在这里教大家使用Expect写的脚本自动连接ssh -D，然后使用launchd设置这段脚本开机自启。</p>
<p>首先是自动连接ssh -D的Expect脚本，你可以把这个脚本直接创建在/usr/local/bin 或 /usr/bin下面，这样本机所有的用户都可以直接调用这个脚本连接ssh -D了。在这里我们把这个脚本放到/usr/local/bin下命名为sshd。</p>
<p>直接在Terminal输入以下命令回车。</p>
<pre class="wp-code-highlight prettyprint">
sudo vi /usr/local/bin/sshd
</pre>
<p>在Password:后面输入你的密码。然后在弹出的&#8221;/usr/local/bin/sshd&#8221; [New File]字符界面上输入 “i”进入编辑状态。<br />
<span id="more-1599"></span><br />
输入以下脚本：</p>
<pre class="wp-code-highlight prettyprint">
#!/usr/bin/expect -f
set port 9000
set user username
set host yourserver.com
set password passwd
set timeout -1 

spawn ssh -qTfnN -D $port $user@$host
expect &quot;*assword:*&quot;

send &quot;$password\r&quot;

interact
#expect eof
</pre>
<p>其中9000那改成你要设置的sock5代理的本地端口，username那输入你的ssh服务的用户名，yourserver.com是你的ssh服务器地址或者IP，Passwd是你的ssh密码。<br />
编辑完成后，按esc退出编辑状态，然后输入“:wq”保存并退出编辑界面。</p>
<p>接着给/usr/local/bin/sshd加上可执行权限。</p>
<pre class="wp-code-highlight prettyprint">
sudo chmod +x /usr/local/bin/sshd
</pre>
<p>这样的话，你每次直接在Terminal下面输入 /usr/local/bin/sshd ，就可以直接启动ssh -D了。</p>
<p>不过本着还可以更懒的选择，我们用launchd设置这段脚本开机自启。</p>
<p>在/Library/LaunchDaemons/下创建一个plist文件，文件名为 com.hebine.sshd.plist （这个文件名大家可以根据自己的喜好随便选。）<br />
Terminal下输入命令</p>
<pre class="wp-code-highlight prettyprint">
sudo vi /Library/LaunchDaemons/com.hebine.sshd.plist
</pre>
<p>文件内输入以下内容</p>
<pre class="wp-code-highlight prettyprint">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
&lt;key&gt;Disabled&lt;/key&gt;
&lt;false/&gt;
&lt;key&gt;KeepAlive&lt;/key&gt;
&lt;true/&gt;
&lt;key&gt;Label&lt;/key&gt;
&lt;string&gt;com.hebine.sshd&lt;/string&gt;
&lt;key&gt;ProgramArguments&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;/usr/local/bin/sshd&lt;/string&gt;
&lt;/array&gt;
&lt;key&gt;RunAtLoad&lt;/key&gt;
&lt;true/&gt;
&lt;key&gt;StandardOutPath&lt;/key&gt;
&lt;string&gt;/var/log/sshd-out.log&lt;/string&gt;
&lt;key&gt;StandardErrorPath&lt;/key&gt;
&lt;string&gt;/var/log/sshd-err.log&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>sshd的日志文件保存在/var/log/sshd-err.log 和 /var/log/sshd-out.log这两个地方。<br />
然后修改此文件的权限</p>
<pre class="wp-code-highlight prettyprint">
sudo chown -R root:wheel /Library/LaunchDaemons/com.hebine.sshd.plist
sudo chmod 644 /Library/LaunchDaemons/com.hebine.sshd.plist
</pre>
<p>你可以使用下面的命令加载上面的launchd服务。</p>
<pre class="wp-code-highlight prettyprint">
launchctl load ~/Library/LaunchAgents/com.hebine.sshd.plist
</pre>
<p>重启电脑，OK。我是用ssh -D + Chrome + PAC上网。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1599.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>开启隐藏的 iOS 5 自带全景拍照功能[支持未越狱设备]</title>
		<link>http://blog.hebine.com/archives/1592.html</link>
		<comments>http://blog.hebine.com/archives/1592.html#comments</comments>
		<pubDate>Wed, 09 Nov 2011 02:04:25 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iOS 5]]></category>
		<category><![CDATA[iPhone 4s开启全景相机]]></category>
		<category><![CDATA[免越狱开启全景拍照]]></category>
		<category><![CDATA[全景相机]]></category>
		<category><![CDATA[折腾]]></category>
		<category><![CDATA[越狱]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1592</guid>
		<description><![CDATA[iOS 5已经自带了全景拍照功能，只是这一功能还没有被苹果释放出来，和之前的手势一样。黑客已经找到了释放这一功能的方法。 着名的iPhone开发者Chpwn已经制作了越狱用户可以轻松使用Cydia安装的补丁文件Firebreak，这个文件你可以在Cydia里搜索到。因为这一个功能在你的iOS 5的设备 Library/Preferences/com.apple.mobileslideshow.plist 这个文件里，所以如果你不想使用Cydia的话也可以编辑这个文件在LastSelectTab下面增加EnableFirebreak，类型选择string值填YES，如下图。我是用Xcode编辑的。 然后编辑好，再拖回你的设备里Library/Preferences/文件夹下就可以了。 当然如果你没有试过直接操作iOS设备里的文件的话，最好别这么做。因为乱动设备里的文件是非常容易造成白苹果的。 如果你还没有越狱的话，其实用曲线的方法也是可以开启iOS 5 自带全景拍照功能的。方法可能就比较复杂了一点了。你必须借助于iBackupBot，这个可以直接对iOS备份文件操作的应用。 它现在有Windows版（下载）和Mac版（下载），你可以按照自己的需要下载相应的版本。 详细的操作步骤： 1.使用iTunes对你的设备进行备份。 2.使用iBackupBot打开你刚才的备份，找到/Library/Preferences/com.apple.mobileslideshow.plist 这个文件。 3.双击这个文件，对这个文件进行编辑。（会弹出购买框，不用管。） 4.在LastSelectTab这行下面添加一行内容：EnableFirebreakYES（如下图） 5.保存文件，然后点击 File － Restore，恢复备份到你的设备。 6.重启设备后去相机的选项中看看有么有全景。 PS：这个方法也支持iPhone 4S的。]]></description>
			<content:encoded><![CDATA[<p>iOS 5已经自带了全景拍照功能，只是这一功能还没有被苹果释放出来，和之前的手势一样。黑客已经找到了释放这一功能的方法。<br />
着名的iPhone开发者Chpwn已经制作了越狱用户可以轻松使用Cydia安装的补丁文件Firebreak，这个文件你可以在Cydia里搜索到。因为这一个功能在你的iOS 5的设备 Library/Preferences/com.apple.mobileslideshow.plist 这个文件里，所以如果你不想使用Cydia的话也可以编辑这个文件在LastSelectTab下面增加EnableFirebreak，类型选择string值填YES，如下图。我是用Xcode编辑的。<br />
<a href="http://blog.hebine.com/wp-content/uploads/2011/11/EnableFirebreak.png"><img src="http://blog.hebine.com/wp-content/uploads/2011/11/EnableFirebreak-550x416.png" alt="" title="EnableFirebreak" width="550" height="416" class="aligncenter size-large wp-image-1593" /></a><br />
然后编辑好，再拖回你的设备里Library/Preferences/文件夹下就可以了。<br />
<span id="more-1592"></span><br />
当然如果你没有试过直接操作iOS设备里的文件的话，最好别这么做。因为乱动设备里的文件是非常容易造成白苹果的。</p>
<p>如果你还没有越狱的话，其实用曲线的方法也是可以开启iOS 5 自带全景拍照功能的。方法可能就比较复杂了一点了。你必须借助于<a href="http://www.icopybot.com/itunes-backup-manager.htm" target="_blank">iBackupBot</a>，这个可以直接对iOS备份文件操作的应用。<br />
它现在有Windows版（<a href="http://www.icopybot.com/ibackupbot_setup.exe" target="_blank">下载</a>）和Mac版（<a href="http://www.icopybot.com/iBackupBot-for-Mac.pkg" target="_blank">下载</a>），你可以按照自己的需要下载相应的版本。</p>
<p>详细的操作步骤：<br />
1.使用iTunes对你的设备进行备份。<br />
2.使用iBackupBot打开你刚才的备份，找到/Library/Preferences/com.apple.mobileslideshow.plist 这个文件。<br />
<a href="http://blog.hebine.com/wp-content/uploads/2011/11/com.apple_.mobileslideshow.png"><img src="http://blog.hebine.com/wp-content/uploads/2011/11/com.apple_.mobileslideshow-550x429.png" alt="" title="com.apple.mobileslideshow" width="550" height="429" class="aligncenter size-large wp-image-1594" /></a><br />
3.双击这个文件，对这个文件进行编辑。（会弹出购买框，不用管。）<br />
4.在<key>LastSelectTab</key>这行下面添加一行内容：<key>EnableFirebreak</key><string>YES</string>（如下图）<br />
<a href="http://blog.hebine.com/wp-content/uploads/2011/11/Firebreak.png"><img src="http://blog.hebine.com/wp-content/uploads/2011/11/Firebreak-550x463.png" alt="" title="Firebreak" width="550" height="463" class="aligncenter size-large wp-image-1595" /></a><br />
5.保存文件，然后点击 File － Restore，恢复备份到你的设备。<br />
6.重启设备后去相机的选项中看看有么有全景。<br />
<a href="http://blog.hebine.com/wp-content/uploads/2011/11/IMG_0066.png"><img src="http://blog.hebine.com/wp-content/uploads/2011/11/IMG_0066-333x500.png" alt="" title="IMG_0066" width="333" height="500" class="aligncenter size-large wp-image-1596" /></a></p>
<p>PS：这个方法也支持iPhone 4S的。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1592.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>自动备份你的VPS上的数据</title>
		<link>http://blog.hebine.com/archives/1586.html</link>
		<comments>http://blog.hebine.com/archives/1586.html#comments</comments>
		<pubDate>Sun, 30 Oct 2011 15:08:05 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[备份Mysql]]></category>
		<category><![CDATA[备份VPS]]></category>
		<category><![CDATA[备份数据]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1586</guid>
		<description><![CDATA[常常备份你的数据，是每一位Blogger都必须注意的事情。使用VPS的各位Blogger更需要注意这一点。 VPS备份，方法有很多，在这里我只说最简单的也是最实用的一个。用脚本备份VPS的数据，然后用FTP传到另外一个服务器。全程都是自动化的。你只需要配置好两段脚本然后定时任务自动执行就可以了。 首先是备份你的网站数据。 写脚本之前，请先在你的VPS上安装lftp，以方便用FTP传到另外的服务器。安装方法很简单。 我用的是CentOS。SSH连接到VPS，然后命令行执行 yum -y install lftp 如果你用的是Ubuntu，可以直接执行 sudo apt-get install lftp 好了，下面就是在你的VPS上创建一个脚本文件。命令行执行 vi backup.sh 在打开的编辑器里输入 #!/bin/bash tar zPcf /home/wwwroot/backup/backup_$(date +%Y%m%d).tar.gz /home/wwwroot/xxx.com /usr/bin/lftp -u ftpuser,passwd ftp.com/backup -e "put /home/wwwroot/backup/backup_$(date +%Y%m%d).tar.gz;exit" rm -r /home/wwwroot/backup/backup_$(date +%Y%m%d).tar.gz 其中标红的是你的VPS上网站的根目录，我放在了home下的wwwroot里。然后标黄的就是要备份的网站数据的根目录。比如我的何必呢，就放在了/home/wwwroot/blog.hebine.com 这个文件夹下。我在/home/wwwroot/下创建了backup文件夹以临时存放我的备份数据。所以第一句命令的意思就是打包/home/wwwroot/blog.hebine.com这个文件夹并命名为backup_当天日期.tar.gz然后把打包的数据放到/home/wwwroot/backup/里。 显然第二句命令行就是要利用我们刚刚安装的ftp软件lftp将打包好的文件传到另外一台服务器以用作备份。-u后面标蓝的是你另外一台服务器的FTP用户名和密码，把ftpuser,passwd替换成你自己的FTP用户名密码就可以了。后面标绿的是你另外一台FTP的IP和要存放的路径。 第三句命令的意思就是在传到FTP之后删除你刚刚存放在/home/wwwroot/backup/里的打包文件，以释放少的可怜的VPS空间。当然如果你的VPS空间足够大的话，你也可以一直保存在/home/wwwroot/backup/里只需要定时清除一下就可以了。 好了，在创建的backup.sh文件里输入以上脚本后，按esc键然后输入:wq退出编辑并保存文件。这样一个备份脚本就写好了，你可以修改一下你杠杠创建的脚本的权限。然后执行一下看看能否执行成功。 chmod +x backup.sh sh backup.sh 执行备份脚本的时间会视你网站文件的多少和大小而不定，如果你看着命令死在那了，等着就可以了。 最后如果命令执行完毕后，你可以根据报的错去修改你的命令行，或者去你另外一台FTP上查看是否有备份好的文件。 备份完网站文件，我们再来备份下数据库。命令行执行 vi dbbackup.sh 在打开的编辑器里输入 #!/bin/bash /usr/local/mysql/bin/mysqldump -uuser...  <a href="http://blog.hebine.com/archives/1586.html" class="more-link" title="Read 自动备份你的VPS上的数据">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>常常备份你的数据，是每一位Blogger都必须注意的事情。使用VPS的各位Blogger更需要注意这一点。</p>
<p>VPS备份，方法有很多，在这里我只说最简单的也是最实用的一个。用脚本备份VPS的数据，然后用FTP传到另外一个服务器。全程都是自动化的。你只需要配置好两段脚本然后定时任务自动执行就可以了。</p>
<p>首先是备份你的网站数据。</p>
<p>写脚本之前，请先在你的VPS上安装lftp，以方便用FTP传到另外的服务器。安装方法很简单。<br />
我用的是CentOS。SSH连接到VPS，然后命令行执行<br />
<code>yum -y install lftp</code><br />
如果你用的是Ubuntu，可以直接执行<br />
<code>sudo apt-get install lftp</code><br />
<span id="more-1586"></span><br />
好了，下面就是在你的VPS上创建一个脚本文件。命令行执行<br />
<code>vi backup.sh</code><br />
在打开的编辑器里输入<br />
<code>#!/bin/bash<br />
tar zPcf <span style="color: #ff0000;">/home/wwwroot/</span>backup/backup_$(date +%Y%m%d).tar.gz /home/wwwroot/<span style="color: #ffff00;">xxx.com</span><br />
/usr/bin/lftp -u <span style="color: #0000ff;">ftpuser</span>,<span style="color: #0000ff;">passwd</span> <span style="color: #008000;">ftp.com/backup</span> -e "put /home/wwwroot/backup/backup_$(date +%Y%m%d).tar.gz;exit"<br />
rm -r /home/wwwroot/backup/backup_$(date +%Y%m%d).tar.gz</code></p>
<p>其中标红的是你的VPS上网站的根目录，我放在了home下的wwwroot里。然后标黄的就是要备份的网站数据的根目录。比如我的何必呢，就放在了/home/wwwroot/blog.hebine.com 这个文件夹下。我在/home/wwwroot/下创建了backup文件夹以临时存放我的备份数据。所以第一句命令的意思就是打包/home/wwwroot/blog.hebine.com这个文件夹并命名为backup_当天日期.tar.gz然后把打包的数据放到/home/wwwroot/backup/里。</p>
<p>显然第二句命令行就是要利用我们刚刚安装的ftp软件lftp将打包好的文件传到另外一台服务器以用作备份。-u后面标蓝的是你另外一台服务器的FTP用户名和密码，把ftpuser,passwd替换成你自己的FTP用户名密码就可以了。后面标绿的是你另外一台FTP的IP和要存放的路径。</p>
<p>第三句命令的意思就是在传到FTP之后删除你刚刚存放在/home/wwwroot/backup/里的打包文件，以释放少的可怜的VPS空间。当然如果你的VPS空间足够大的话，你也可以一直保存在/home/wwwroot/backup/里只需要定时清除一下就可以了。</p>
<p>好了，在创建的backup.sh文件里输入以上脚本后，按esc键然后输入:wq退出编辑并保存文件。这样一个备份脚本就写好了，你可以修改一下你杠杠创建的脚本的权限。然后执行一下看看能否执行成功。<br />
<code>chmod +x backup.sh</code><br />
<code>sh backup.sh</code><br />
执行备份脚本的时间会视你网站文件的多少和大小而不定，如果你看着命令死在那了，等着就可以了。<br />
最后如果命令执行完毕后，你可以根据报的错去修改你的命令行，或者去你另外一台FTP上查看是否有备份好的文件。</p>
<p>备份完网站文件，我们再来备份下数据库。命令行执行<br />
<code>vi dbbackup.sh</code><br />
在打开的编辑器里输入<br />
<code>#!/bin/bash<br />
/usr/local/mysql/bin/mysqldump -u<span style="color: #ff0000;">user</span> -p<span style="color: #ff0000;">passwd</span> <span style="color: #ff00ff;">databasename</span> &gt; /home/wwwroot/backup/date_$(date '+%Y%m%d').sql<br />
/usr/bin/lftp -u <span style="color: #0000ff;">ftpuser</span>,<span style="color: #0000ff;">passwd</span> <span style="color: #008000;">ftp.com/backup</span> -e "put /home/wwwroot/backup/date_$(date +%Y%m%d).sql;exit"<br />
rm -rf /home/wwwroot/backup/date_$(date +%Y%m%d).sql</code></p>
<p>第一句命令意思是用mysqldump导出名为databasename的数据库到/home/wwwroot/backup/文件夹并命名为date_日期.sql.-u后面的红色是你的Mysql的用户名，-p后面的红色是Mysql密码，databasename是要备份的数据库名字，把这三个替换成你自己的。</p>
<p>第二句和上面备份网站文件的命令一样，用lftp传到另外一台服务器。第三句是删除刚备份的数据库文件。</p>
<p>同样修改权限并执行备份脚本看能否备份成功。<br />
<code>chmod +x dbbackup.sh</code><br />
<code>sh dbbackup.sh</code></p>
<p>如果一切检查没有问题了，就创建定时任务自动备份你的数据吧。输入命令<br />
<code>crontab -e</code><br />
在打开的文件里输入定时任务。</p>
<p><code>56 23 * * * /root/dbbackup.sh<br />
00 00 * * * /root/backup.sh</code></p>
<p>然后按esc键然后输入:wq退出编辑并保存文件。</p>
<p>好了，定时任务创建好了，每天23点56分备份执行dbbackup.sh备份数据库，每天0点执行backup.sh备份网站文件。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1586.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iOS5Tips &#8211; 关于iOS 5的小技巧</title>
		<link>http://blog.hebine.com/archives/1576.html</link>
		<comments>http://blog.hebine.com/archives/1576.html#comments</comments>
		<pubDate>Thu, 13 Oct 2011 02:25:31 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iCloud]]></category>
		<category><![CDATA[iOS 5]]></category>
		<category><![CDATA[iOS5Tips]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[小技巧]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1576</guid>
		<description><![CDATA[在没有将iOS设备竖屏锁定的情况下，横屏你的iOS设备可以切换iOS 5 里的Calendar的新版视图。新版Calendar视图和Lion里的iCal一样。#iOS5Tips 在锁屏状态下如果收到信息，在信息上滑动可以直接解锁屏幕并进到信息页面。 #iOS5Tips 是不是觉得5G空间太少了？iOS 5的iCloud备份可以在iOS设备里的设置=》iCloud=》存储与备份=》管理存储空间=》选择你的备份=》备份选项里选择备份哪些应用产生的数据。#iOS5Tips iOS 5 改进了相机功能。拍照界面按音量+键拍照，向右滑动屏幕可直接进入相册浏览刚拍的照片，浏览照片时可按右上角的编辑对照片进行编辑。#iOS5Tips iMessage不是一个单独的App，你可以在设置 => 短信里开启iMessage，iMessage账号可以是你的手机号码也可以是你的Apple id，iMessage直接在短信内发送，如果对方已经开启了iMessage则发送时按钮会变成蓝色。 #iOS5Tips 锁屏状态下双击Home键可显示快捷拍照键，进入拍照界面音量键可当快门键。#iOS5Tips 如果在iOS5的设置里你找不到个人热点了，在设置＞通用＞还原＞还原一下网络设置个人热点就回来了。#iOS5Tips 一个人可以拥有多个iCloud账户并可以同时使用，但是iCloud主账户只能有一个，可以随意设置任意一个iCloud账户为主账户，主账户才有包括备份在内的所有功能，其他iCloud将只有mail，日历和联系人同步功能。#iOS5Tips 如果你发现你iOS设备上的Newsstand无法点击Store，只要把iOS设备插上数据线和电脑的iTunes同步一次就可以点击使用了。#iOS5Tips iOS 5手势功能在设置=》通用=》辅助功能里有个AssistiveTouch，开启AssistiveTouch后会在屏幕上浮现一个小圆球，点击小圆球会有一些手势操作，可以代替Home键返回主菜单。 #iOS5Tips 由@Ksky整理，请注明原文来自何必呢]]></description>
			<content:encoded><![CDATA[<p>在没有将iOS设备竖屏锁定的情况下，横屏你的iOS设备可以切换iOS 5 里的Calendar的新版视图。新版Calendar视图和Lion里的iCal一样。#iOS5Tips</p>
<p>在锁屏状态下如果收到信息，在信息上滑动可以直接解锁屏幕并进到信息页面。 #iOS5Tips</p>
<p>是不是觉得5G空间太少了？iOS 5的iCloud备份可以在iOS设备里的设置=》iCloud=》存储与备份=》管理存储空间=》选择你的备份=》备份选项里选择备份哪些应用产生的数据。#iOS5Tips</p>
<p>iOS 5 改进了相机功能。拍照界面按音量+键拍照，向右滑动屏幕可直接进入相册浏览刚拍的照片，浏览照片时可按右上角的编辑对照片进行编辑。#iOS5Tips</p>
<p>iMessage不是一个单独的App，你可以在设置 => 短信里开启iMessage，iMessage账号可以是你的手机号码也可以是你的Apple id，iMessage直接在短信内发送，如果对方已经开启了iMessage则发送时按钮会变成蓝色。 #iOS5Tips</p>
<p>锁屏状态下双击Home键可显示快捷拍照键，进入拍照界面音量键可当快门键。#iOS5Tips</p>
<p>如果在iOS5的设置里你找不到个人热点了，在设置＞通用＞还原＞还原一下网络设置个人热点就回来了。#iOS5Tips</p>
<p>一个人可以拥有多个iCloud账户并可以同时使用，但是iCloud主账户只能有一个，可以随意设置任意一个iCloud账户为主账户，主账户才有包括备份在内的所有功能，其他iCloud将只有mail，日历和联系人同步功能。#iOS5Tips</p>
<p>如果你发现你iOS设备上的Newsstand无法点击Store，只要把iOS设备插上数据线和电脑的iTunes同步一次就可以点击使用了。#iOS5Tips</p>
<p>iOS 5手势功能在设置=》通用=》辅助功能里有个AssistiveTouch，开启AssistiveTouch后会在屏幕上浮现一个小圆球，点击小圆球会有一些手势操作，可以代替Home键返回主菜单。 #iOS5Tips</p>
<p>由<a href="https://twitter.com/ksky">@Ksky</a>整理，请注明原文来自<a href="http://blog.hebine.com/archives/1576.html">何必呢</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1576.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>免费获得六个月的LastPass Premium</title>
		<link>http://blog.hebine.com/archives/1567.html</link>
		<comments>http://blog.hebine.com/archives/1567.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 14:26:17 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[LastPass]]></category>
		<category><![CDATA[LastPass Premium]]></category>
		<category><![CDATA[资源分享]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1567</guid>
		<description><![CDATA[科技让人变懒，密码管理工具的主要功能就是帮助我们可怜的大脑管理记录我们数以百计的复杂密码。 互联网深入我们的生活的今天，如果你目前依旧使用着简单的6位数字密码，那么你该小心你的网银里面的钱，你的购物网站里的账号，你的Email里的信件，你的SNS里的隐私照片，你天天登录的IM。。。 所以，树立一个正确的密码使用方法是一件非常重要的事情，特别是现在这种道德没有下限的社会，与其相信你的大脑，还不如相信一个靠谱的工具。 好吧，今天给大家推荐的是密码管理工具里的佼佼者LastPass，LastPass是一款非常着名的密码管理工具，在Chrome的浏览器上它完全超越了Mac的密码管理神软1Password。目前LastPass支持包括Firefix, Chrome, Safari, IE在内的所有主流浏览器，也可以跨平台（Windows，Mac，Linux）使用。 使用LastPass，你除了一定要记住一个复杂的LastPass主密码外，其他的密码管理工作都可以放心的交给LastPass管理。存储在LastPass的密码经过了AES-256的加密，安全还是有些保障的。存储在LastPass服务器内的密码依然会被加密，这保证了就算是LastPass服务器被攻破黑客也无法得到我们的密码。 LastPass的账号分为免费账号和付费账号，虽然普通的免费账号完全可以满足我们正常的使用，但是付费账号提供包括在移动设备（iPhone, Blackberry, Windows Phone, Windows Mobile, Android）上使用，对YUBIKEY的支持，完全没有广告的附加服务。 目前LastPass正在进行的LastPass.edu的邮箱申请后即可获得这个优惠。 &#160; ​活动地址：https://lastpass.com/edupromo.php 进入LastPass 在收到的邮件中点击 “Click this link to redeem your 6 months of LastPass Premium, where you’ll provide the email address for your LastPass account. ”会进到下面这个页面。进到这个页面，如果你已经有LastPass账号，一定记得把你填的.edu邮箱改成你之前注册LastPass的邮箱，如果你之前没有LastPass账号，那可以点击create one创建一个LastPass账号。 如果最终完成后你能进入这个页面，那么恭喜你，六个月的LastPass Premium升级成功了。现在你可以在你的移动设备上查看管理你的密码了。 没有.edu邮箱怎么办？ 好吧，附上几个注册免费.edu邮箱的地址。 @live.whut.edu.cn邮箱 注册地址： https://domains.live.com/members/signup.aspx?domain=live.whut.edu.cn @mspil.edu.cn邮箱 注册地址： https://domains.live.com/members/signup.aspx?domain=mspil.edu.cn @stu.xawl.edu.cn邮箱 注册地址：...  <a href="http://blog.hebine.com/archives/1567.html" class="more-link" title="Read 免费获得六个月的LastPass Premium">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>科技让人变懒，密码管理工具的主要功能就是帮助我们可怜的大脑管理记录我们数以百计的复杂密码。<br />
互联网深入我们的生活的今天，如果你目前依旧使用着简单的6位数字密码，那么你该小心你的网银里面的钱，你的购物网站里的账号，你的Email里的信件，你的SNS里的隐私照片，你天天登录的IM。。。<br />
所以，树立一个正确的密码使用方法是一件非常重要的事情，特别是现在这种道德没有下限的社会，与其相信你的大脑，还不如相信一个靠谱的工具。</p>
<p>好吧，今天给大家推荐的是密码管理工具里的佼佼者<a href="https://lastpass.com">LastPass</a>，LastPass是一款非常着名的密码管理工具，在Chrome的浏览器上它完全超越了Mac的密码管理神软1Password。目前LastPass支持包括Firefix, Chrome, Safari, IE在内的所有主流浏览器，也可以跨平台（Windows，Mac，Linux）使用。<br />
使用LastPass，你除了一定要记住一个复杂的LastPass主密码外，其他的密码管理工作都可以放心的交给LastPass管理。存储在LastPass的密码经过了AES-256的加密，安全还是有些保障的。存储在LastPass服务器内的密码依然会被加密，这保证了就算是LastPass服务器被攻破黑客也无法得到我们的密码。<br />
<span id="more-1567"></span><br />
LastPass的账号分为免费账号和付费账号，虽然普通的免费账号完全可以满足我们正常的使用，但是付费账号提供包括在移动设备（iPhone, Blackberry, Windows Phone, Windows Mobile, Android）上使用，对YUBIKEY的支持，完全没有广告的附加服务。</p>
<p>目前LastPass正在进行的LastPass.edu的邮箱申请后即可获得这个优惠。</p>
<p>&nbsp;</p>
<p><strong>​活动地址</strong>：<a href="https://lastpass.com/edupromo.php" target="_blank">https://lastpass.com/edupromo.php</a></p>
<p>进入LastPass <a href="http://blog.hebine.com/wp-content/uploads/2011/09/LastPass-3′s-Students.png"><img class="aligncenter size-large wp-image-1568" title="LastPass <3′s Students" src="http://blog.hebine.com/wp-content/uploads/2011/09/LastPass-3′s-Students-550x381.png" alt="" width="550" height="381" /></a></p>
<p>在收到的邮件中点击 “Click this link to redeem your 6 months of LastPass Premium, where you’ll provide the email address for your LastPass account. ”会进到下面这个页面。进到这个页面，如果你已经有LastPass账号，一定记得把你填的.edu邮箱改成你之前注册LastPass的邮箱，如果你之前没有LastPass账号，那可以点击create one创建一个LastPass账号。<br />
<a href="http://blog.hebine.com/wp-content/uploads/2011/09/LastPass.png"><img class="aligncenter size-large wp-image-1569" title="LastPass" src="http://blog.hebine.com/wp-content/uploads/2011/09/LastPass-550x242.png" alt="" width="550" height="242" /></a></p>
<p>如果最终完成后你能进入这个页面，那么恭喜你，六个月的LastPass Premium升级成功了。现在你可以在你的移动设备上查看管理你的密码了。</p>
<a href="http://blog.hebine.com/wp-content/uploads/2011/09/屏幕快照-2011-09-24-下午10.15.54.png"><img class="aligncenter size-large wp-image-1570" title="屏幕快照 2011-09-24 下午10.15.54" src="http://blog.hebine.com/wp-content/uploads/2011/09/屏幕快照-2011-09-24-下午10.15.54-550x305.png" alt="" width="550" height="305" /></a>
<table style="background-color: #99e600; border: 1px solid #99e600;" width="500" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align: center;">
<td style="border-image: initial; text-align: left; border-width: 1px; border-color: #99e600; border-style: solid;" width="500"><span style="font-family: arial, helvetica, sans-serif; color: #ffffff; font-size: 18px;">没有.edu邮箱怎么办？</span></td>
</tr>
</tbody>
</table>
<p>好吧，附上几个注册免费.edu邮箱的地址。</p>
<p>@live.whut.edu.cn邮箱<br />
注册地址：<a href="https://domains.live.com/members/signup.aspx?domain=live.whut.edu.cn"></p>
<p>https://domains.live.com/members/signup.aspx?domain=live.whut.edu.cn</a></p>
<p>@mspil.edu.cn邮箱<br />
注册地址：<a href="https://domains.live.com/members/signup.aspx?domain=mspil.edu.cn"></p>
<p>https://domains.live.com/members/signup.aspx?domain=mspil.edu.cn</a></p>
<p>@stu.xawl.edu.cn邮箱<br />
注册地址：<a href="https://domains.live.com/members/signup.aspx?domain=stu.xawl.edu.cn"></p>
<p>https://domains.live.com/members/signup.aspx?domain=stu.xawl.edu.cn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1567.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Amazon EC2 安装Nginx+Mysql+Php</title>
		<link>http://blog.hebine.com/archives/1552.html</link>
		<comments>http://blog.hebine.com/archives/1552.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 07:06:49 +0000</pubDate>
		<dc:creator>Ksky</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://blog.hebine.com/?p=1552</guid>
		<description><![CDATA[Amazon EC2从2010年11月1日起对新注册用户免费一年，免费的Amazon服务包含750小时的free tiers活动，Free tires包含10GB EBS，30GB带宽（15G上行，15G下行)。关于如何注册网上有非常详细的教程，在这里我就不写了。 今天主要是把我在Amazon EC2使用Ubuntu架设LNMP的过程写下来，希望能对有同样需求的同学有所帮助。 这里的LNMP指的是Linux+Nginx+Mysql+Php。 对于LNMP的快速搭建，其实是有LNMP一键安装包,但是考虑到悲剧的EC2 Instance性能，使用LNMP一键安装包半天都编译不好，而且非常容易出错。所以在这里我使用的是在Ubuntu上安装包的方式搭建LNMP。 在Amazon EC2上我选择的Instance是一个Ubuntu 10.04的Instance（AMI ID：ami-2c0fa42d）。 因为我是Mac，所以直接使用的是Terminal运行下面这些命令，Win下可以用putty，Linux下使用终端就好了。 1.登录Amazon EC2 ssh -i ec2.pem ubuntu@Public DNS 2.编辑源。（使用过Ubuntu的同学都知道，我们在安装完Ubuntu的时候都是要先编辑源，在这里也是这样。） sudo vi /etc/apt/sources.list lucid(10.04)的源添加下面的内容到sources.list deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse...  <a href="http://blog.hebine.com/archives/1552.html" class="more-link" title="Read Amazon EC2 安装Nginx+Mysql+Php">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2从2010年11月1日起对新注册用户免费一年，免费的Amazon服务包含750小时的free tiers活动，Free tires包含10GB EBS，30GB带宽（15G上行，15G下行)。关于如何注册网上有非常详细的教程，在这里我就不写了。</p>
<p>今天主要是把我在Amazon EC2使用Ubuntu架设LNMP的过程写下来，希望能对有同样需求的同学有所帮助。</p>
<p>这里的LNMP指的是Linux+Nginx+Mysql+Php。<br />
对于LNMP的快速搭建，其实是有<a href="http://lnmp.org/">LNMP一键安装包</a>,但是考虑到悲剧的EC2 Instance性能，使用LNMP一键安装包半天都编译不好，而且非常容易出错。所以在这里我使用的是在Ubuntu上安装包的方式搭建LNMP。</p>
<p>在Amazon EC2上我选择的Instance是一个Ubuntu 10.04的Instance（AMI ID：ami-2c0fa42d）。</p>
<p>因为我是Mac，所以直接使用的是Terminal运行下面这些命令，Win下可以用putty，Linux下使用终端就好了。<br />
<span id="more-1552"></span><br />
1.登录Amazon EC2</p>
<blockquote><p>ssh -i ec2.pem ubuntu@Public DNS</p></blockquote>
<p>2.编辑源。（使用过Ubuntu的同学都知道，我们在安装完Ubuntu的时候都是要先编辑源，在这里也是这样。）</p>
<blockquote><p>sudo vi /etc/apt/sources.list</p></blockquote>
<p>lucid(10.04)的源添加下面的内容到sources.list</p>
<blockquote><p>deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse<br />
deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main<br />
deb http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main</p></blockquote>
<p>因为官方源里可能一些包都是旧的，所以使用了第三方ppa源。</p>
<p>当然如果你是用的Ubuntu maverick(10.10)，那就添加下面的源。</p>
<blockquote><p>deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse<br />
deb http://ppa.launchpad.net/nginx/stable/ubuntu maverick main</p></blockquote>
<p>3.更新源。（替换好源接着更新下源。）</p>
<blockquote><p>sudo apt-get update</p></blockquote>
<p>4.安装辅助工具 unzip unrar wget rsync。</p>
<blockquote><p>sudo apt-get -y install unzip unrar wget rsync cron aptitude</p></blockquote>
<p>5.安装 Nginx，Php，Mysql</p>
<blockquote><p>sudo apt-get install nginx php5-common php5-dev php5-cgi php5-fpm php-apc php5-mysql php5-curl php5-gd php5-idn php-pear php5-mcrypt php5-memcache php5-ming php5-recode php5-tidy php5-xmlrpc php5-xsl mysql-server</p></blockquote>
<p>6.创建网站根目录（在这里我们把网站根目录放在 /home/www 下）</p>
<blockquote><p>sudo mkdir /home/www</p></blockquote>
<p>7.更改网站目录权限（用户名为ubuntu）</p>
<blockquote><p>sudo chown -R ubuntu /home/www</p></blockquote>
<p>8.修改nginx配置文件</p>
<blockquote><p>sudo vi /etc/nginx/sites-enabled/default</p></blockquote>
<p>把其中的：</p>
<blockquote><p>server {<br />
        #listen   80; ## listen for ipv4; this line is default and implied<br />
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6</p>
<p>        root /var/www;<br />
        index index.html index.htm;</p></blockquote>
<p>替换成：</p>
<blockquote><p>server {<br />
        #listen   80; ## listen for ipv4; this line is default and implied<br />
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6</p>
<p>        root /home/www;<br />
        index index.php index.html index.htm;</p></blockquote>
<p>其中的：</p>
<blockquote><p>#location ~ \.php$ {<br />
   #   fastcgi_pass 127.0.0.1:9000;<br />
   #   fastcgi_index index.php;<br />
   #   include fastcgi_params;<br />
   #}</p></blockquote>
<p>替换成：</p>
<blockquote><p>location ~ \.php$ {<br />
                fastcgi_pass  127.0.0.1:9000;<br />
                fastcgi_index  index.php;<br />
                fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;<br />
                include  fastcgi_params;<br />
        }</p></blockquote>
<p>9.安装phpmyadmin管理Mysql数据库。</p>
<blockquote><p>wget -c http://cdnetworks-kr-1.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.3.2/phpMyAdmin-3.4.3.2-all-languages.zip<br />
unzip phpMyAdmin-3.4.3.2-all-languages.zip<br />
mv phpMyAdmin-3.4.3.2-all-languages /home/www/phpmyadmin<br />
cd /home/www/phpmyadmin<br />
cp config.sample.inc.php config.inc.php<br />
vi config.inc.php</p></blockquote>
<p>将其中的：</p>
<blockquote><p>$cfg['blowfish_secret'] = &#8221;;</p></blockquote>
<p>改为：</p>
<blockquote><p>$cfg['blowfish_secret'] = &#8216;web&#8217;;</p></blockquote>
<p>里面的代码：</p>
<blockquote><p>// $cfg['Servers'][$i]['controluser'] = &#8216;pma&#8217;;<br />
// $cfg['Servers'][$i]['controlpass'] = &#8216;pmapass&#8217;;<br />
// $cfg['Servers'][$i]['pmadb'] = &#8216;phpmyadmin&#8217;;<br />
// $cfg['Servers'][$i]['bookmarktable'] = &#8216;pma_bookmark&#8217;;<br />
// $cfg['Servers'][$i]['relation'] = &#8216;pma_relation&#8217;;<br />
// $cfg['Servers'][$i]['table_info'] = &#8216;pma_table_info&#8217;;<br />
// $cfg['Servers'][$i]['table_coords'] = &#8216;pma_table_coords&#8217;;<br />
// $cfg['Servers'][$i]['pdf_pages'] = &#8216;pma_pdf_pages&#8217;;<br />
// $cfg['Servers'][$i]['column_info'] = &#8216;pma_column_info&#8217;;<br />
// $cfg['Servers'][$i]['history'] = &#8216;pma_history&#8217;;<br />
// $cfg['Servers'][$i]['tracking'] = &#8216;pma_tracking&#8217;;<br />
// $cfg['Servers'][$i]['designer_coords'] = &#8216;pma_designer_coords&#8217;;<br />
// $cfg['Servers'][$i]['auth_swekey_config'] = &#8216;/etc/swekey-pma.conf&#8217;;</p></blockquote>
<p>全部删除//，然后将其中的：</p>
<blockquote><p>$cfg['Servers'][$i]['controluser'] = &#8216;pma&#8217;;<br />
$cfg['Servers'][$i]['controlpass'] = &#8216;pmapass&#8217;;</p></blockquote>
<p>pma对应的是mysql用户名，pmapass对应的是mysql密码。</p>
<p>10.重启服务</p>
<blockquote><p>sudo service nginx restart //重启nginx<br />
sudo service php5-fpm restart //重启fastcgi进程<br />
sudo service mysql restart //重启mysql进程</p></blockquote>
<p>至此，Amazon EC2的LNMP就安装完毕了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hebine.com/archives/1552.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

