<?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>涅磐-wordpress技巧,linux vps技巧,分享电影音乐,摄影爱好者,微博控 &#187; linux</title>
	<atom:link href="http://www.openboy.net/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.openboy.net</link>
	<description>wordpress技巧,linux vps技巧,分享电影音乐,摄影爱好者,微博控</description>
	<lastBuildDate>Sat, 21 Jan 2012 18:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>vps备份网站mysql数据到邮箱/ftp</title>
		<link>http://www.openboy.net/vps-backup-to-mail-or-ftp.html</link>
		<comments>http://www.openboy.net/vps-backup-to-mail-or-ftp.html#comments</comments>
		<pubDate>Wed, 06 Jul 2011 15:33:37 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=664</guid>
		<description><![CDATA[用vps也有一阵了,但是谁也不知道哪天vps就会跑路了，也说不定;无论现在做什么,都要先学会未雨绸缪. 其实,关于网上的有很多种方法备份vps的mysql和数据.但是往往都不是很理想. 首先我觉得备份数据一定要满足一下几点: 支持低成本备份mysql：网站数据其实并不会经常改动,经常要备份的主要是mysql,所谓的低成本就是自动化,而且可以发送到免费的邮箱. mysql必须是分卷备份的:不要把N个数据库合并成一个sql文件,那样我不会恢复. 如果你网站很大图片很多，那么还得随时可以备份到ftp. 不过终于在Cat上找到了这个备份的方法,还是相当靠谱的..贴出代码先～ 首先安装mutt: yum install sendmail mutt vi AutoBackupToFtp.sh #!/bin/bash #你要修改的地方从这里开始 MYSQL_USER=root #mysql用户名 MYSQL_PASS=123456 #mysql密码 MAIL_TO=cat@hostloc.com #数据库发送到的邮箱 FTP_USER=cat #ftp用户名 FTP_PASS=123456 #ftp密码 FTP_IP=imcat.in #ftp地址 FTP_backup=backup #ftp上存放备份文件的目录,这个要自己得ftp上面建的 WEB_DATA=/home/www #要备份的网站数据 #如果不需要ftp功能请注释掉FTP_USER,FTP_IP.ftp.backup #你要修改的地方从这里结束 &#160; #定义数据库的名字和旧数据库的名字 DataBakName=Data_$(date +&#34;%Y%m%d&#34;).tar.gz WebBakName=Web_$(date +%Y%m%d).tar.gz OldData=Data_$(date -d -5day +&#34;%Y%m%d&#34;).tar.gz OldWeb=Web_$(date -d -5day +&#34;%Y%m%d&#34;).tar.gz #删除本地3天前的数据 rm -rf /home/backup/Data_$(date -d -3day +&#34;%Y%m%d&#34;).tar.gz [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-wordpress-upgrade-plugins-need-to-write-ftp.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/14/8900839.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>用vps也有一阵了,但是谁也不知道哪天vps就会跑路了，也说不定;无论现在做什么,都要先学会未雨绸缪.</p>
<p>其实,关于网上的有很多种方法<a title="vps备份mysql到发送到邮箱或者上传到ftp" href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html">备份vps的mysql和数据</a>.但是往往都不是很理想.<br />
首先我觉得备份数据一定要满足一下几点:<br />
<span id="more-664"></span></p>
<ol>
<li>支持低成本备份<a href="http://www.openboy.net/tag/vps">mysql</a>：网站数据其实并不会经常改动,经常要备份的主要是mysql,所谓的低成本就是自动化,而且可以发送到免费的邮箱.</li>
<li>mysql必须是分卷备份的:不要把N个数据库合并成一个sql文件,那样我不会恢复.</li>
<li>如果你网站很大图片很多，那么还得随时可以备份到ftp.</li>
</ol>
<p>不过终于在Cat上找到了这个备份的方法,还是相当靠谱的..贴出代码先～</p>
<ul>
<li>首先安装mutt:
<pre>yum install sendmail mutt</pre>
</li>
<li>vi AutoBackupToFtp.sh

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#!/bin/bash
#你要修改的地方从这里开始
MYSQL_USER=root                             #mysql用户名
MYSQL_PASS=123456                      #mysql密码
MAIL_TO=cat@hostloc.com                 #数据库发送到的邮箱
FTP_USER=cat                              #ftp用户名
FTP_PASS=123456                         #ftp密码
FTP_IP=imcat.in                          #ftp地址
FTP_backup=backup                          #ftp上存放备份文件的目录,这个要自己得ftp上面建的
WEB_DATA=/home/www                          #要备份的网站数据
#如果不需要ftp功能请注释掉FTP_USER,FTP_IP.ftp.backup
#你要修改的地方从这里结束
&nbsp;
#定义数据库的名字和旧数据库的名字
DataBakName=Data_$(date +&quot;%Y%m%d&quot;).tar.gz
WebBakName=Web_$(date +%Y%m%d).tar.gz
OldData=Data_$(date -d -5day +&quot;%Y%m%d&quot;).tar.gz
OldWeb=Web_$(date -d -5day +&quot;%Y%m%d&quot;).tar.gz
#删除本地3天前的数据
rm -rf /home/backup/Data_$(date -d -3day +&quot;%Y%m%d&quot;).tar.gz /home/backup/Web_$(date -d -3day +&quot;%Y%m%d&quot;).tar.gz
cd /home/backup
#导出数据库,一个数据库一个压缩文件
for db in `/usr/local/mysql/bin/mysql -u$MYSQL_USER -p$MYSQL_PASS -B -N -e 'SHOW DATABASES' | xargs`; do
    (/usr/local/mysql/bin/mysqldump -u$MYSQL_USER -p$MYSQL_PASS ${db} | gzip -9 - &amp;gt; ${db}.sql.gz)
done
#压缩数据库文件为一个文件
tar zcf /home/backup/$DataBakName /home/backup/*.sql.gz
rm -rf /home/backup/*.sql.gz
#发送数据库到Email,如果数据库压缩后太大,请注释这行
echo &quot;主题:数据库备份&quot; | mutt -a /home/backup/$DataBakName -s &quot;内容:数据库备份&quot; $MAIL_TO
#压缩网站数据
tar zcf /home/backup/$WebBakName $WEB_DATA
#上传到FTP空间,删除FTP空间5天前的数据
ftp -v -n $FTP_IP &amp;lt;&amp;lt; END
user $FTP_USER $FTP_PASS
type binary
cd $FTP_backup
delete $OldData
delete $OldWeb
put $DataBakName
put $WebBakName
bye
END</pre></div></div>

<p>chmod +x AutoBackupToFtp.sh</li>
<li>利用crontab 实现每天00:00自动备份网站文件和数据库上传到FTP空间
<pre>crontab -e</pre>
<pre>00 00 * * * /home/AutoBackupToFtp.sh</pre>
</li>
</ul>
<p>一切都很顺利，但是也遇到了一点小麻烦,在<a href="http://imcat.in/auto-backup-site-files-database-upload-ftp/comment-page-1/#comment-4796" rel="external nofollow">cat博客里面也有人问道</a>.<br />
执行</p>
<pre>./AutoBackupToFtp.sh</pre>
<p>以后却出现</p>
<pre>mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES</pre>
<p>在<a href="http://blog.csdn.net/jamesjun/article/details/3290976" rel="external nofollow">csdn</a>找到解决办法是因为没有LOCK TABLES的权限，于是查看mysqldump的帮助，加上参数&#8211;skip-lock-tables</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysqldump <span style="color: #CC0099;">--</span>opt <span style="color: #CC0099;">-</span>h192. <span style="color: #008080;">168.0</span> . <span style="color: #008080;">156</span>  <span style="color: #CC0099;">-</span>uUsername <span style="color: #CC0099;">-</span>pPassword <span style="color: #CC0099;">--</span>skip<span style="color: #CC0099;">-</span>lock<span style="color: #CC0099;">-</span><span style="color: #990099; font-weight: bold;">tables</span> databaseName<span style="color: #CC0099;">&amp;</span>gt<span style="color: #000033;">;</span>database.sql</pre></div></div>

<p>还有就是会提示:</p>
<pre>tar: Removing leading `/' from member names</pre>
<p>其实大家不用在意这个,根据<a href="http://linux.vbird.org/linux_basic/0240tarcompress.php" rel="external nofollow">鸟哥</a>的说法:</p>
<blockquote><p>『tar: Removing leading `/&#8217; from member names(移除了檔名開頭的 `/&#8217; )』所告知的情況！</p>
<p>那為什麼要拿掉根目錄呢？主要是為了安全！我們使用 tar 備份的資料可能會需要解壓縮回來使用， 在 tar 所記錄的檔名 (就是我們剛剛使用 tar -jtvf 所察看到的檔名) 那就是解壓縮後的實際檔名。 如果拿掉了根目錄，假設你將備份資料在 /tmp 解開，那麼解壓縮的檔名就會變成『/tmp/etc/xxx』。 但『如果沒有拿掉根目錄，解壓縮後的檔名就會是絕對路徑， 亦即解壓縮後的資料一定會被放置到 /etc/xxx 去！』如此一來，你的原本的 /etc/ 底下的資料， 就會被備份資料所覆蓋過去了！</p></blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-wordpress-upgrade-plugins-need-to-write-ftp.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/14/8900839.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/used-vps-ssh-management-mysql.html" title="Vps ssh管理mysql">Vps ssh管理mysql</a></li><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html" title="nginx301重定向">nginx301重定向</a></li><li><a href="http://www.openboy.net/vps-wordpress-upgrade-plugins-need-to-write-ftp.html" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</a></li><li><a href="http://www.openboy.net/nginx-install-mediawiki-and-url-rewrite.html" title="nginx下安装mediawiki以及url rewrite">nginx下安装mediawiki以及url rewrite</a></li><li><a href="http://www.openboy.net/lowendbox-lnmp-tips.html" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/vps-backup-to-mail-or-ftp.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>nginx301重定向</title>
		<link>http://www.openboy.net/nginx-301-rewrite-for-web-seo.html</link>
		<comments>http://www.openboy.net/nginx-301-rewrite-for-web-seo.html#comments</comments>
		<pubDate>Fri, 13 May 2011 19:41:24 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[301重定向]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Seo]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=648</guid>
		<description><![CDATA[实在找不到什么太好的主机,每天宕机1.2个小时，唉～这又换了,顺便从之前的lnmpa换回现在的lnmp.又牵扯到了nginx的301重定向问题,而apache确实不需要担心这些多余的问题～ 而wordpress也不需要设置其他，例如我的网站，默认自己会从openboy.net跳转到www.openboy.net.但是如果不是wordpress就需要做一下设置了。网上目前流行两个版本:都是修改nginx.conf~ 第一种方法是判断nginx核心变量host server { server_name www.openboy.net openboy.net; if ($host != 'www.openboy.net' ) { rewrite ^/(.*)$ http://www.openboy.net/$1 permanent; } 这个是非常可取的～每篇文章不带www的地址也自然会跳转到带www的地址上去，这样每篇文章都有唯一的地址，也是seo友好的一种表现～！ 还有一种方法大家暂时不要尝试,会引起301重定向的死循环。 server { server_name openboy.net; rewrite ^/(.*) http://www.openboy.net/$1 permanent; } 修改完成 /usr/local/nginx/sbin/nginx -t 如果都ok的话，重启你的lnmp :/root/lnmp restart 就ok了。。。 顺便在附送一个 nginx下drupal简洁链接的rewrite规则 location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; } &#160; } vps安装lnmp一些问题以及putty管理vpsnginx下安装mediawiki以及url rewriteDiscuz7.2首页最后发表帖子URL301重定向的SEO优化初试VPS的一些感想以及安装LNMPvps备份网站mysql数据到邮箱/ftpvps上WordPress升级/安装插件时需要填写FTP信息的解决办法Vps [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Discuz7.2首页最后发表帖子URL301重定向的SEO优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fdiscuz-last-post-url-seo.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900951.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Discuz7.2首页最后发表帖子URL301重定向的SEO优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下安装mediawiki以及url rewrite" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fnginx-install-mediawiki-and-url-rewrite.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900914.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下安装mediawiki以及url rewrite</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>实在找不到什么太好的主机,每天宕机1.2个小时，唉～这又换了,顺便从之前的lnmpa换回现在的<a href="http://www.openboy.net/tag/lnmp">lnmp</a>.又牵扯到了<a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html">nginx的301重定向</a>问题,而apache确实不需要担心这些多余的问题～</p>
<p>而<a href="http://www.openboy.net/category/wordpress">wordpress</a>也不需要设置其他，例如我的网站，默认自己会从openboy.net跳转到www.openboy.net.但是如果不是wordpress就需要做一下设置了。网上目前流行两个版本:都是修改nginx.conf~</p>
<p>第一种方法是判断nginx核心变量host<span id="more-648"></span></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">server {
server_name www.openboy.net openboy.net;
if ($host != 'www.openboy.net' ) {
rewrite ^/(.*)$ http://www.openboy.net/$1 permanent;
}</pre></div></div>

<p>这个是非常可取的～每篇文章不带www的地址也自然会跳转到带www的地址上去，这样每篇文章都有唯一的地址，也是seo友好的一种表现～！<br />
还有一种方法大家暂时不要尝试,会引起301重定向的死循环。<br />
<del datetime="2011-05-13T19:24:46+00:00"><br />
server {<br />
server_name openboy.net;<br />
rewrite ^/(.*) http://www.openboy.net/$1 permanent;<br />
}</del></p>
<p>修改完成 /usr/local/nginx/sbin/nginx  -t 如果都ok的话，重启你的lnmp :/root/lnmp restart<br />
就ok了。。。</p>
<p>顺便在附送一个</p>
<h3><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html">nginx下drupal简洁链接的rewrite规则</a></h3>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}
&nbsp;
}</pre></div></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Discuz7.2首页最后发表帖子URL301重定向的SEO优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fdiscuz-last-post-url-seo.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900951.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Discuz7.2首页最后发表帖子URL301重定向的SEO优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下安装mediawiki以及url rewrite" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fnginx-install-mediawiki-and-url-rewrite.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900914.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下安装mediawiki以及url rewrite</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fnginx-301-rewrite-for-web-seo.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/nginx-install-mediawiki-and-url-rewrite.html" title="nginx下安装mediawiki以及url rewrite">nginx下安装mediawiki以及url rewrite</a></li><li><a href="http://www.openboy.net/discuz-last-post-url-seo.html" title="Discuz7.2首页最后发表帖子URL301重定向的SEO优化">Discuz7.2首页最后发表帖子URL301重定向的SEO优化</a></li><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html" title="vps备份网站mysql数据到邮箱/ftp">vps备份网站mysql数据到邮箱/ftp</a></li><li><a href="http://www.openboy.net/vps-wordpress-upgrade-plugins-need-to-write-ftp.html" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</a></li><li><a href="http://www.openboy.net/used-vps-ssh-management-mysql.html" title="Vps ssh管理mysql">Vps ssh管理mysql</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/nginx-301-rewrite-for-web-seo.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vps安装lnmp一些问题以及putty管理vps</title>
		<link>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html</link>
		<comments>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:35:06 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=642</guid>
		<description><![CDATA[其实我想说,我又换主机咯..凑合着可以用吧,速度一般,毕竟是放在美国～偶尔也会出现一天几十分钟的宕机。。但是还是我接受范围之内吧～ 之前,断断续续写过一些关于linux管理方面和一些针对vps管理的文章，大家需要可以翻翻～这篇打算具体总结一下关于从入手vps以后最基础的vps安装lnmp(linux nginx mysql php)出现的一些小问题到用putty登录ssh管理vps.首先声明几点: 此篇所说的lnmp指的是:centos5.5 32bit 安装lnmp.org的nginx,mysql,php. 此篇所用vps内存512mb openvz~ 好了,先从Lnmp开始～ Nginx如何添加域名以及nginx,mysql,php路径 添加虚拟主机，执行如下命令： ./vhost.sh 根据提示输入要绑定的域名，回车，如果需要添加更多的域名，输入y，再输入要另外绑定的域名，多个域名可以用空格隔开。再输入域名绑定的目录(绝对目录，如/home/wwwroot/lnmp，如果不填默认是/home/wwwroot/绑定的域名)，再选择是否添加伪静态规则，默认已经有了Discuz、Wordpress、Sablog、emlog、dabr，可直接输入以上名称即可，如果需要添加自定义伪静态规则，直接输入一个想要的名字，程序会自动创建伪静态文件，直接在/usr/local/nginx/conf/你自定义的伪静态名字.conf里面添加伪静态规则就行。接下来会提示是否需要启用日志功能，一般情况下不需要启动，直接输入n就行，如需启动，输入y，再输入要定义的日志文件名字，回车就会自动添加虚拟主机。 LNMP状态管理： /root/lnmp {start&#124;stop&#124;reload&#124;restart&#124;kill&#124;status} PureFTPd状态管理 /root/pureftpd {start&#124;stop&#124;restart&#124;kill&#124;status} phpinfo : http://$domain/phpinfo.php phpMyAdmin : http://$domain/phpmyadmin/ 探针 : http://$domain/p.php LNMP相关目录： mysql : /usr/local/mysql php : /usr/local/php nginx : /usr/local/nginx 网站目录 : /home/wwwroot 本地强制刷新dns 新绑定的域名本地有dns缓存无法及时生效,开始-运行-cmd-ipconfig /flushdns Linux下运行mysql命令提示command not found解决办法 把MYSQLPATH/bin/mysql映射到/usr/local/bin目录下： cd /usr/local/bin ln -fs /usr/local/mysql/bin/mysql [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>其实我想说,我又换主机咯..凑合着可以用吧,速度一般,毕竟是放在美国～偶尔也会出现一天几十分钟的宕机。。但是还是我接受范围之内吧～<br />
之前,断断续续写过一些关于<a href="http://www.openboy.net/category/linux">linux管理</a>方面和一些针对<a href="http://www.openboy.net/tag/vps">vps管理</a>的文章，大家需要可以翻翻～这篇打算具体总结一下关于从入手vps以后最基础的<a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html">vps安装lnmp(linux nginx mysql php)出现的一些小问题到用putty登录ssh管理vps</a>.首先声明几点:</p>
<ol>
<li>此篇所说的lnmp指的是:centos5.5 32bit 安装lnmp.org的nginx,mysql,php.</li>
<li>此篇所用vps内存512mb openvz~</li>
</ol>
<p>好了,先从Lnmp开始～<span id="more-642"></span></p>
<h3>Nginx如何添加域名以及nginx,mysql,php路径</h3>
<p>添加虚拟主机，执行如下命令：</p>
<pre>./vhost.sh</pre>
<p>根据提示输入要绑定的域名，回车，如果需要添加更多的域名，输入y，再输入要另外绑定的域名，多个域名可以用空格隔开。再输入域名绑定的目录(绝对目录，如/home/wwwroot/lnmp，如果不填默认是/home/wwwroot/绑定的域名)，再选择是否添加伪静态规则，默认已经有了Discuz、Wordpress、Sablog、emlog、dabr，可直接输入以上名称即可，如果需要添加自定义伪静态规则，直接输入一个想要的名字，程序会自动创建伪静态文件，直接在/usr/local/nginx/conf/你自定义的伪静态名字.conf里面添加伪静态规则就行。接下来会提示是否需要启用日志功能，一般情况下不需要启动，直接输入n就行，如需启动，输入y，再输入要定义的日志文件名字，回车就会自动添加虚拟主机。<br />
LNMP状态管理： /root/lnmp {start|stop|reload|restart|kill|status}<br />
PureFTPd状态管理 /root/pureftpd {start|stop|restart|kill|status}<br />
phpinfo : http://$domain/phpinfo.php<br />
phpMyAdmin : http://$domain/phpmyadmin/<br />
探针 : http://$domain/p.php<br />
LNMP相关目录：</p>
<pre>
mysql :   /usr/local/mysql
php :     /usr/local/php
nginx :   /usr/local/nginx
网站目录 :     /home/wwwroot
</pre>
<h3>本地强制刷新dns</h3>
<p>新绑定的域名本地有dns缓存无法及时生效,开始-运行-cmd-ipconfig /flushdns</p>
<h3>Linux下运行mysql命令提示command not found解决办法</h3>
<p>把MYSQLPATH/bin/mysql映射到/usr/local/bin目录下：<br />
cd /usr/local/bin<br />
ln -fs /usr/local/mysql/bin/mysql mysql<br />
Via <a href="http://www.fengyn.cn/article/linux/mysql-notfound.htm" rel="external nofollow">link</a></p>
<h3>解决putty vi或者vim打开文件时乱码</h3>
<p>其实，这个一般不是vi或者vim的问题，多次发现，都是putty的字体问题。<br />
1.打开putty主程序，选择<br />
window-〉Appearance-〉Font settings-〉Change Settings,选择Fixedsys字体,字符集选择CHINESE_GB2312<br />
<div class="wp-caption alignnone" style="width: 352px"><a href="http://www.openboy.net/category/linux"><img alt="putty中文乱码" src="http://commondatastorage.googleapis.com/openboyblogger/img/putty01.jpg" title="putty中文乱码" width="342" height="480" /></a><p class="wp-caption-text">putty中文乱码</p></div><br />
2.在window-〉Appearance-〉 Translation中，Remote Character set中,把Use font encoding改为UTF-8<br />
3.然后在Session里的Host Name(or IP address)输入地址，在Saved Sessions下面输入一个名字，然后把这个Session保存下来，以后打开Putty直接在下面保存的Session里双击配置名称就行了。<br />
用了这种方法后，就可以显示汉字了，并且也可以实用输入法在窗口中输入汉字。<br />
如果还不行,那就也许是vi的问题了。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">vi <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>sysconfig<span style="color: #339933;">/</span>i18n  
	LANG<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030&quot;</span>  
	LANGUAGE<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030:zh_CN.GB2312:zh_CN&quot;</span>  
	SUPPORTED<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en&quot;</span>  
	SYSFONT<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lat0-sun16&quot;</span>    
	export LANG<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.UTF-8&quot;</span>  
	export LC_ALL<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.UTF-8&quot;</span></pre></div></div>

<p>基本上,总是有类似上面这些小问题麻烦着我们，我们记录下来，下次就不怕咯～</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html" title="vps备份网站mysql数据到邮箱/ftp">vps备份网站mysql数据到邮箱/ftp</a></li><li><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html" title="nginx301重定向">nginx301重定向</a></li><li><a href="http://www.openboy.net/used-vps-ssh-management-mysql.html" title="Vps ssh管理mysql">Vps ssh管理mysql</a></li><li><a href="http://www.openboy.net/nginx-install-mediawiki-and-url-rewrite.html" title="nginx下安装mediawiki以及url rewrite">nginx下安装mediawiki以及url rewrite</a></li><li><a href="http://www.openboy.net/lowendbox-lnmp-tips.html" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</a></li><li><a href="http://www.openboy.net/centos4-install-lnmp-and-sendmail.html" title="centos配置lnmp外加sendmail">centos配置lnmp外加sendmail</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>linux/ubuntu下pidgin无法登录msn</title>
		<link>http://www.openboy.net/pidgin-msn-error.html</link>
		<comments>http://www.openboy.net/pidgin-msn-error.html#comments</comments>
		<pubDate>Thu, 25 Nov 2010 14:32:40 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=612</guid>
		<description><![CDATA[最近,linux/ubuntu下如果你用pidgin登录msn,便会提示: 无法验证 omega.contacts.msn.com 的证书。 指定的证书链无效。 你可以下载我导出的msn新的证书 如果你对下载我的证书不放心的话，还可以访问https://omega.contacts.msn.com/,点击地址栏https旁边的小锁头,导出msn新证书; 以上两部之需要选择一个就行，目的就是为了取得omega.contacts.msn.com的证书~ 最后: openboy@openboy-linux:~$ cp omega.contacts.msn.com .purple/certificates/x509/tls_peers 就此解决pidgin无法登录msn出现无法验证 omega.contacts.msn.com 的证书。 指定的证书链无效。 编译安装pidgin以及一些错误解决提速ubuntu&#038;试了下gnome-shell如何修改sudo命令输入密码的时间用iso镜像升级ubuntuUbuntu和windows的时间日期不对的解决方法杯具了,但是我很淡定ubuntu下安装google earth以及解决中文乱码<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="编译安装pidgin以及一些错误解决" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fconfigure-make-install-pidgin.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903889.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">编译安装pidgin以及一些错误解决</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="聊天软件大比拼:Digsby和Pidgin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fim-pk-digsby-vs-pidgin.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903541.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">聊天软件大比拼:Digsby和Pidgin</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近,linux/ubuntu下如果你<a title="编译安装pidgin" href="http://www.openboy.net/configure-make-install-pidgin.html">用pidgin</a>登录msn,便会提示:</p>
<p><strong>无法验证 omega.contacts.msn.com 的证书。 指定的证书链无效。</strong></p>
<ul>
<li> 你可以<a rel="external nofollow" href="http://www.box.net/shared/tp34hhh5rn">下载我导出的msn新的证书</a></li>
<li>如果你对下载我的证书不放心的话，还可以访问<a rel="external nofollow" href="https://omega.contacts.msn.com/">https://omega.contacts.msn.com/</a>,点击地址栏https旁边的小锁头,导出msn新证书;</li>
<p>以上两部之需要选择一个就行，目的就是为了取得omega.contacts.msn.com的证书~</p>
<li>最后:

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">openboy@openboy<span style="color: #339933;">-</span>linux<span style="color: #339933;">:</span>~$ cp omega.<span style="color: #202020;">contacts</span>.<span style="color: #202020;">msn</span>.<span style="color: #202020;">com</span> .<span style="color: #202020;">purple</span><span style="color: #339933;">/</span>certificates<span style="color: #339933;">/</span>x509<span style="color: #339933;">/</span>tls_peers</pre></div></div>

</li>
</ul>
<p>就此解决pidgin无法登录msn出现<strong>无法验证 omega.contacts.msn.com 的证书。 指定的证书链无效。</strong></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="编译安装pidgin以及一些错误解决" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fconfigure-make-install-pidgin.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903889.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">编译安装pidgin以及一些错误解决</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="聊天软件大比拼:Digsby和Pidgin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fim-pk-digsby-vs-pidgin.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903541.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">聊天软件大比拼:Digsby和Pidgin</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Fpidgin-msn-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/configure-make-install-pidgin.html" title="编译安装pidgin以及一些错误解决">编译安装pidgin以及一些错误解决</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li><li><a href="http://www.openboy.net/ubuntu-windows-date-error.html" title="Ubuntu和windows的时间日期不对的解决方法">Ubuntu和windows的时间日期不对的解决方法</a></li><li><a href="http://www.openboy.net/memorial-to-my-hard-drive.html" title="杯具了,但是我很淡定">杯具了,但是我很淡定</a></li><li><a href="http://www.openboy.net/ubuntu-install-google-earth.html" title="ubuntu下安装google earth以及解决中文乱码">ubuntu下安装google earth以及解决中文乱码</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/pidgin-msn-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>提速ubuntu&amp;试了下gnome-shell</title>
		<link>http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html</link>
		<comments>http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html#comments</comments>
		<pubDate>Fri, 12 Nov 2010 13:08:58 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[桌面]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=609</guid>
		<description><![CDATA[自从升级到ubuntu10.10以后就一直抱怨ubuntu速度超级超级慢,而且cpu占用一直居高不下,什么都不开在百分之50多；现在呢？开很多网页也不到百分之10. ubuntu10.10cpu占用很高的因素 这个就是官方的一个bug,那就是python-ibus中存在问题，这个是10.10中的python有bug Ubuntu10.10 下解决Python CPU占用100%的方法 sudo add-apt-repository ppa:karl-qdh/ppa sudo apt-get update sudo apt-get upgrade 还有一个因素就是个人电脑或者一些比较另类的问题了； 我按照上面的方法修复了python以后cpu以后不减；所以你就必须用其他的手段； 按cpu利用率从大到小排列进程 ps -eo "%C : %p : %z : %a"&#124;sort -nr 按内存从大到小排列进程 ps -eo "%C : %p : %z : %a"&#124;sort -k5 -nr 使用这两条命令久可以轻松查看是什么占用了N多cpu.. 我kill了两个进程之后，电脑回复正常，也没有什么副作用，但是这俩进程到底做什么的.现在我也还不清楚/= =# sudo killall ipconfig sudo killall whiptail 如果你忘记你kill什么进程，你可以查看你的shell/终端操作记录； cat ~/.bash_history ubuntu10.10使用pcmanfm 代替 nautilus [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用ubuntu上支付宝最简单的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-go-alipay-no-wine.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899523.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用ubuntu上支付宝最简单的方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="ubuntu下安装google earth以及解决中文乱码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903532.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ubuntu下安装google earth以及解决中文乱码</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>自从<a title="升级ubuntu的方法" href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html">升级到ubuntu10.10</a>以后就一直<a href="http://www.openboy.net/ubuntu-linux-system-optimization.html">抱怨ubuntu速度超级超级慢</a>,而且cpu占用一直居高不下,什么都不开在百分之50多；现在呢？开很多网页也不到百分之10.</p>
<h5>ubuntu10.10cpu占用很高的因素</h5>
<ul>
<li>这个就是官方的一个bug,那就是python-ibus中存在问题，这个是10.10中的python有bug</li>
<p><strong>Ubuntu10.10 下解决Python CPU占用100%的方法</strong></p>
<pre>sudo add-apt-repository ppa:karl-qdh/ppa
sudo apt-get update
sudo apt-get upgrade</pre>
<p>还有一个因素就是个人电脑或者一些比较另类的问题了；<span id="more-609"></span><br />
我按照上面的方法修复了python以后cpu以后不减；所以你就必须用其他的手段；</p>
<li>按cpu利用率从大到小排列进程</li>
<pre>ps -eo "%C  : %p : %z : %a"|sort  -nr</pre>
<li>按内存从大到小排列进程</li>
<pre>ps -eo "%C  : %p : %z : %a"|sort -k5 -nr</pre>
<p>使用这两条命令久可以轻松查看是什么占用了N多cpu..<br />
我kill了两个进程之后，电脑回复正常，也没有什么副作用，但是这俩进程到底做什么的.现在我也还不清楚/= =#</p>
<pre>sudo killall ipconfig
sudo killall whiptail</pre>
<p>如果你忘记你kill什么进程，你可以查看你的shell/终端操作记录；</p>
<pre>cat ~/.bash_history</pre>
</ul>
<h5>ubuntu10.10使用pcmanfm 代替 nautilus 管理桌面</h5>
<pre>$ sudo cp /usr/share/applications/nautilus-computer.desktop ~
$ sudo cp /usr/share/applications/nautilus-folder-handler.desktop ~</pre>
<p>先备份两个接下来要修改的文件 .. 上面的指令把文件备份在你的$HOME目录下了<br />
接下来修改文件吧</p>
<pre>$ sudo vi /usr/share/applications/nautilus-computer.desktop</pre>
<p>在nautilus-computer.desktop 文件中找到Exec= 把内容替换为 pcmanfm /</p>
<pre>$ sudo gvim /usr/share/applications/nautilus-folder-handler.desktop</pre>
<p>找到Exec= 段 把内容替换为 pcmanfm %U<br />
Via <a rel="external nofollow" href="http://wdstudio.blogbus.com/logs/40784083.html">link</a></p>
<h5>ubuntu10.10试用gnome-shell</h5>
<p><strong>注意:劝大家先临时启用;觉得好在永久更换;</strong><br />
以ubuntu10.10为例,临时启用gnome-shell</p>
<pre>gnome-shell --replace</pre>
<p>就可以替换当前的metacity窗口管理器，不过需要注意的是返回时不要直接关闭终端，而应ctrl+c终止gnome-shell,否则就没有窗口管理器了。<br />
若想设置为默认管理器，运行命令</p>
<pre>gconftool-2  --set  /desktop/gnome/session/required_components/windowmanager --type  string  gnome-shell</pre>
<p>恢复默认的gnome窗口管理，运行命令</p>
<pre>gconftool-2 --unset   /desktop/gnome/session/required_components/windowmanager</pre>
<p>可能遇到的bug,在gnome-shell窗体栏中没有捕捉到鼠标。解决方法是alt+f2输入restart命令重新启动gnome-shell，一切正常<br />
如果更换不回gnome,请在终端下</p>
<pre>killall gnome-settings-daemon
killall gnome-session</pre>
<p>我kill完这俩才又能回到gnome..<br />
哈哈，不过也留了<a rel="external" href="http://www.flickr.com/photos/oomm/tags/gnomeshell/">几张截图</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用ubuntu上支付宝最简单的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-go-alipay-no-wine.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899523.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用ubuntu上支付宝最简单的方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="ubuntu下安装google earth以及解决中文乱码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html&from=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903532.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ubuntu下安装google earth以及解决中文乱码</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/ubuntu-linux-system-optimization.html" title="Ubuntu系统优化">Ubuntu系统优化</a></li><li><a href="http://www.openboy.net/repair-windows-desktop-ie-icon.html" title="解决桌面上的IE图标没了">解决桌面上的IE图标没了</a></li><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li><li><a href="http://www.openboy.net/ubuntu-windows-date-error.html" title="Ubuntu和windows的时间日期不对的解决方法">Ubuntu和windows的时间日期不对的解决方法</a></li><li><a href="http://www.openboy.net/memorial-to-my-hard-drive.html" title="杯具了,但是我很淡定">杯具了,但是我很淡定</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何修改sudo命令输入密码的时间</title>
		<link>http://www.openboy.net/set-sudo-timeout.html</link>
		<comments>http://www.openboy.net/set-sudo-timeout.html#comments</comments>
		<pubDate>Tue, 02 Nov 2010 04:52:58 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[命令]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=606</guid>
		<description><![CDATA[等我换到ubuntu上我一定修改了它. 每次sudo什么都要输入密码。。好麻烦。所以我要把它的密码记住时间修改的好长、好长。 先输入命令 sudo visudo 找到下面行 defaults env_reset 改变此行为下面这样 Defaults env_reset , timestamp_timeout=x x 就是代表时间，你可以设置为 10 或 30 ，表示10分钟或半小时。 我准备设置成。。600.哈哈！ 另外也可以设置为 -1 ，这样当你在注销或退出 terminal 之前，都会记住密码。当这样做的时候，有时为了安全考虑，你也可以运行以下命令来强制退出sudo sudo -K 原文参考@riku的Wow! Ubuntu Ubuntu/linux下最强大的下载工具－aria2linux/ubuntu下pidgin无法登录msn提速ubuntu&#038;试了下gnome-shell用iso镜像升级ubuntuUbuntu和windows的时间日期不对的解决方法杯具了,但是我很淡定编译安装pidgin以及一些错误解决<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Ubuntu/linux下最强大的下载工具－aria2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-download-tool-aria2.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899020.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu/linux下最强大的下载工具－aria2</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="总结一些linux目录结构和终端命令" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flinux-directory-structure-and-ssh-order.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/27/8130502.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">总结一些linux目录结构和终端命令</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下的一些SSH常用命令总结" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flinux-ssh-order.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904420.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下的一些SSH常用命令总结</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu和windows的时间日期不对的解决方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900063.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu和windows的时间日期不对的解决方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>等我换到ubuntu上我一定修改了它.<br />
每次sudo什么都要输入密码。。好麻烦。所以我要把它的密码记住时间修改的好长、好长。<br />
<span id="more-606"></span></p>
<ul>
<li>先输入命令</li>
<pre>sudo visudo</pre>
<li>找到下面行</li>
<pre>defaults env_reset</pre>
<li>改变此行为下面这样</li>
<pre>Defaults env_reset , timestamp_timeout=x</pre>
<p><strong>x 就是代表时间，你可以设置为 10 或 30 ，表示10分钟或半小时。</strong><br />
我准备设置成。。600.哈哈！</p>
<li>另外也可以设置为 -1 ，这样当你在注销或退出 terminal 之前，都会记住密码。当这样做的时候，有时为了安全考虑，你也可以运行以下命令来强制退出sudo</li>
<pre>sudo -K</pre>
</ul>
<p>原文参考@riku的<a href="http://wowubuntu.com/sudo-timeout.html" rel="external nofollow">Wow! Ubuntu</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Ubuntu/linux下最强大的下载工具－aria2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-download-tool-aria2.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899020.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu/linux下最强大的下载工具－aria2</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="总结一些linux目录结构和终端命令" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flinux-directory-structure-and-ssh-order.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/27/8130502.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">总结一些linux目录结构和终端命令</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下的一些SSH常用命令总结" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flinux-ssh-order.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904420.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下的一些SSH常用命令总结</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu和windows的时间日期不对的解决方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html&from=http%3A%2F%2Fwww.openboy.net%2Fset-sudo-timeout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900063.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu和windows的时间日期不对的解决方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/ubuntu-linux-download-tool-aria2.html" title="Ubuntu/linux下最强大的下载工具－aria2">Ubuntu/linux下最强大的下载工具－aria2</a></li><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li><li><a href="http://www.openboy.net/ubuntu-windows-date-error.html" title="Ubuntu和windows的时间日期不对的解决方法">Ubuntu和windows的时间日期不对的解决方法</a></li><li><a href="http://www.openboy.net/memorial-to-my-hard-drive.html" title="杯具了,但是我很淡定">杯具了,但是我很淡定</a></li><li><a href="http://www.openboy.net/configure-make-install-pidgin.html" title="编译安装pidgin以及一些错误解决">编译安装pidgin以及一些错误解决</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/set-sudo-timeout.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vps ssh管理mysql</title>
		<link>http://www.openboy.net/used-vps-ssh-management-mysql.html</link>
		<comments>http://www.openboy.net/used-vps-ssh-management-mysql.html#comments</comments>
		<pubDate>Mon, 25 Oct 2010 16:47:31 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=604</guid>
		<description><![CDATA[感叹一句,ssh真强大! 有ssh管理主机，特别是对于比较大的文件网络之间操作，会便捷很多～ 其实对于我这样的菜鸟来说，也谈不上什么管理mysql,基本上最多就是几个主机中转移一下mysql.下面就以任何一个网站程序搬家为例好了。。 嗯。 ssh如何导出mysql 先登入原主机ssh.进入你想存放导出mysql的路径。 比如 cd public_html/vps/wp-content/backup mysqldump -u 数据库用户名 -p 数据库名>导出的文件名.sql ssh如何导入mysql 登入mysql 先登入另一主机ssh,是进入mysql 先在另一主机登录数据库。 以mysql数据库管理员root，密码为123456为例； mysql -uroot -p123456 查看mysql mysql&#62; SHOW DATABASES; +--------------------+ &#124; DATABASE &#124; +--------------------+ &#124; information_schema &#124; &#124; blog_example_com &#124; &#124; enblog &#124; &#124; com &#124; &#124; mysql &#124; &#124; testmysql &#124; &#124; wiki &#124; +--------------------+ 7 ROWS [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps备份网站mysql数据到邮箱/ftp" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899110.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps备份网站mysql数据到邮箱/ftp</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>感叹一句,ssh真强大!</p>
<p>有ssh管理主机，特别是对于比较大的文件网络之间操作，会便捷很多～</p>
<p>其实对于我这样的菜鸟来说，也谈不上什么管理mysql,基本上最多就是几个主机中转移一下mysql.下面就以任何一个网站程序搬家为例好了。。</p>
<p>嗯。<span id="more-604"></span></p>
<h3>ssh如何导出mysql</h3>
<ul>
<li>先登入原主机ssh.进入你想存放导出mysql的路径。<br />
比如
<pre>cd public_html/vps/wp-content/backup</pre>
</li>
<li>
<pre>mysqldump -u 数据库用户名 -p 数据库名>导出的文件名.sql</pre>
</li>
</ul>
<h3>ssh如何导入mysql</h3>
<ul>
<li>登入mysql</li>
<p>先登入另一主机ssh,是进入mysql<br />
先在另一主机登录数据库。<br />
以mysql数据库管理员root，密码为123456为例；</p>
<pre>mysql -uroot -p123456</pre>
<li>查看mysql</li>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">DATABASES</span>;
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">--------------------+</span>
<span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">DATABASE</span>           <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">--------------------+</span>
<span style="color: #66cc66;">|</span> information_schema <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> blog_example_com   <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> enblog             <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> com    <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> mysql              <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> testmysql          <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span> wiki               <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">--------------------+</span>
<span style="color: #cc66cc;">7</span> <span style="color: #993333; font-weight: bold;">ROWS</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.04</span> sec<span style="color: #66cc66;">&#41;</span></pre></div></div>

<li>创建新的数据库</li>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #66cc66;">&#91;</span>数据库名<span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<li>删除数据库</li>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #66cc66;">&#91;</span>数据库名<span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<li>查看是否创建/删除成功：</li>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">DATABASES</span>;</pre></div></div>

<li>下载原主机的mysql</li>
<pre>wget http://www.openboy.net/mysql.sql</pre>
<li>导入下载的mysql到刚才新建的数据库</li>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql <span style="color: #66cc66;">-</span>u root <span style="color: #66cc66;">-</span>p 数据库名<span style="color: #66cc66;">&lt;</span>mysql<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SQL</span></pre></div></div>

<p>Ok～</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps备份网站mysql数据到邮箱/ftp" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-backup-to-mail-or-ftp.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899110.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps备份网站mysql数据到邮箱/ftp</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html" title="vps备份网站mysql数据到邮箱/ftp">vps备份网站mysql数据到邮箱/ftp</a></li><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html" title="nginx301重定向">nginx301重定向</a></li><li><a href="http://www.openboy.net/vps-wordpress-upgrade-plugins-need-to-write-ftp.html" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</a></li><li><a href="http://www.openboy.net/nginx-install-mediawiki-and-url-rewrite.html" title="nginx下安装mediawiki以及url rewrite">nginx下安装mediawiki以及url rewrite</a></li><li><a href="http://www.openboy.net/lowendbox-lnmp-tips.html" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/used-vps-ssh-management-mysql.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</title>
		<link>http://www.openboy.net/lowendbox-lnmp-tips.html</link>
		<comments>http://www.openboy.net/lowendbox-lnmp-tips.html#comments</comments>
		<pubDate>Tue, 12 Oct 2010 14:37:49 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=601</guid>
		<description><![CDATA[啊哦～之前写过买vps玩，也记录下不少折腾vps的经验啊！为这次配置也算打下了不小的基础。不过说下这次安装那个lnmp.org的又失败了，这是怎么了？= =# 经dianso提醒，找到了lowendbox的lnmp.这个安装包还是相当的不错啊！安装更简便时间更短了！不过其中也有一些曲折，嗯，每次都出在mysql上。记录下： vps安装lowendbox的lnmp # wget http://github.com/lowendbox/lowendscript/raw/master/setup-debian.sh # bash setup-debian.sh system # bash setup-debian.sh exim4 # bash setup-debian.sh nginx # bash setup-debian.sh mysql # bash setup-debian.sh php # bash setup-debian.sh wordpress blog.example.com 基本上这些都没问题。。 就是安装完以后，找不到mysql的密码了！哎呀。google了一堆都是叫查看root下的my.cnf，我查看了白天毛也没有啊！ 后来得知。。少了个点。 vps查看lowendbox的lnmp的mysql密码 cat /root/.my.cnf vps修改lowendbox的lnmp的mysql密码 /usr/bin/mysqladmin -u root -p password mysqlmima Enter password:#$^%^%% 就是把你查看的密码修改成mysqlmima 除了bash setup-debian.sh wordpress blog.example.com外添加虚拟主机 vim /etc/nginx/sites-enabled/www.hostloc.com.conf server [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>啊哦～<a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html">之前写过买vps玩</a>，也记录下<a href="http://www.openboy.net/tag/vps">不少折腾vps的经验</a>啊！为这次配置也算打下了不小的基础。不过说下这次安装那个lnmp.org的又失败了，这是怎么了？= =#<br />
经<a href="http://014.cc" rel="external nofollow">dianso</a>提醒，找到了<a href="http://www.lowendbox.com/blog/wordpress-cheap-vps-lowendscript/" rel="external nofollow">lowendbox的lnmp</a>.这个安装包还是相当的不错啊！安装更简便时间更短了！不过其中也有一些曲折，嗯，每次都出在mysql上。记录下：<br />
<span id="more-601"></span></p>
<h5>vps安装lowendbox的lnmp</h5>
<pre>
# wget http://github.com/lowendbox/lowendscript/raw/master/setup-debian.sh
# bash setup-debian.sh system
# bash setup-debian.sh exim4
# bash setup-debian.sh nginx
# bash setup-debian.sh mysql
# bash setup-debian.sh php
# bash setup-debian.sh wordpress blog.example.com
</pre>
<p>基本上这些都没问题。。<br />
就是安装完以后，找不到mysql的密码了！哎呀。google了一堆都是叫查看root下的my.cnf，我查看了白天毛也没有啊！</p>
<p>后来得知。。少了个点。</p>
<h5>vps查看lowendbox的lnmp的mysql密码</h5>
<pre>cat /root/.my.cnf</pre>
<h5>vps修改lowendbox的lnmp的mysql密码</h5>
<pre>
/usr/bin/mysqladmin -u root -p password mysqlmima
Enter password:#$^%^%%
</pre>
<p>就是把你查看的密码修改成mysqlmima</p>
<h5>除了bash setup-debian.sh wordpress blog.example.com外添加虚拟主机</h5>
<pre>
vim /etc/nginx/sites-enabled/www.hostloc.com.conf

    server {
        server_name www.hostloc.com;
        root /var/www/www.hostloc.com;
        include /etc/nginx/fastcgi_php;
           }
</pre>
<p>都弄好。top一下看才占用44MB内存。哈哈！</p>
<h5>64mb小内存vps安装drupal的一些相关命令</h5>
<p>重启php命令</p>
<p>invoke-rc.d php-cgi restart</p>
<p>重启nginx命令</p>
<p>invoke-rc.d nginx restart</p>
<p>安装Drupal 6.19 权限设置很必要！</p>
<pre>
# wget http://ftp.drupal.org/files/projects/drupal-6.19.tar.gz
# tar -zxvf drupal-6.6.tar.gz
# mv drupal-6.6/* drupal-6.6/.htaccess /var/www/vhosts/YOURDOMAIN/httpdocs
# rm drupal-6.6.tar.gz
# cd sites/default
# mkdir files
# chmod 777 files
# cp default.settings.php settings.php
# chmod 777 settings.php
# cd ../all
# mkdir modules
# mkdir themes
# exit
</pre>
<p>lowendscript的nginx的配置路径</p>
<pre>/etc/nginx</pre>
<p>而他的每个网站都有单独的配置文件。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="vps安装lnmp一些问题以及putty管理vps" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/17/8663035.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">vps安装lnmp一些问题以及putty管理vps</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps安装phpmyadmin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-install-phpmyadmin.html&from=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903614.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps安装phpmyadmin</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/centos4-install-lnmp-and-sendmail.html" title="centos配置lnmp外加sendmail">centos配置lnmp外加sendmail</a></li><li><a href="http://www.openboy.net/centos-vps-set.html" title="centos vps深入探究">centos vps深入探究</a></li><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html" title="vps备份网站mysql数据到邮箱/ftp">vps备份网站mysql数据到邮箱/ftp</a></li><li><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html" title="nginx301重定向">nginx301重定向</a></li><li><a href="http://www.openboy.net/vps-wordpress-upgrade-plugins-need-to-write-ftp.html" title="vps上WordPress升级/安装插件时需要填写FTP信息的解决办法">vps上WordPress升级/安装插件时需要填写FTP信息的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/lowendbox-lnmp-tips.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>用iso镜像升级ubuntu</title>
		<link>http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html</link>
		<comments>http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html#comments</comments>
		<pubDate>Thu, 07 Oct 2010 15:34:20 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=599</guid>
		<description><![CDATA[话说,玩ubuntu这么久，这是我第一次把ubuntu升级成功。够郁闷把。 以后知道了，什么命令升级图形升级的，真不如这个下载iso稳当;因为其他方法我至少都试过2.3次，结果此次失败。。= =＃ 用iso镜像升级ubuntu的方法 去ubuntu官网下载ubuntu的镜像,我是ubuntu9.10升级ubuntu10.04.所以下载ubuntu-10.04.1-alternate-i386.iso 这是本升级最重要的:那就是一定要alternate!!别下载成别的iso.下载好我放在我的用户文件夹根目录:/home/openboy/ubuntu-10.04.1-alternate-i386.iso 接着~ sudo mount -t iso9660 -o loop ~/ubuntu-10.04.1-alternate-i386.iso /media/cdrom0 sudo gksu "sh /cdrom/cdromupgrade" OK! linux/ubuntu下pidgin无法登录msn提速ubuntu&#038;试了下gnome-shell如何修改sudo命令输入密码的时间Ubuntu和windows的时间日期不对的解决方法杯具了,但是我很淡定编译安装pidgin以及一些错误解决ubuntu下安装google earth以及解决中文乱码<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu/linux下最强大的下载工具－aria2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-download-tool-aria2.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899020.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu/linux下最强大的下载工具－aria2</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决Ubuntu下中文flash乱码问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899200.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决Ubuntu下中文flash乱码问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>话说,玩ubuntu这么久，这是我第一次把ubuntu升级成功。够郁闷把。</p>
<p>以后知道了，什么命令升级图形升级的，真不如这个下载iso稳当;因为其他方法我至少都试过2.3次，结果此次失败。。= =＃</p>
<h5>用iso镜像升级ubuntu的方法</h5>
<p>去ubuntu官网下载ubuntu的镜像,我是ubuntu9.10升级ubuntu10.04.所以下载ubuntu-10.04.1-alternate-i386.iso<span id="more-599"></span></p>
<p>这是本升级最重要的:那就是一定要<strong>alternate</strong>!!别下载成别的iso.下载好我放在我的用户文件夹根目录:/home/openboy/ubuntu-10.04.1-alternate-i386.iso</p>
<p>接着~</p>
<pre>sudo mount -t iso9660 -o loop ~/ubuntu-10.04.1-alternate-i386.iso /media/cdrom0</pre>
<pre>sudo gksu "sh /cdrom/cdromupgrade"</pre>
<p>OK!</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu/linux下最强大的下载工具－aria2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-download-tool-aria2.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899020.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu/linux下最强大的下载工具－aria2</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决Ubuntu下中文flash乱码问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899200.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决Ubuntu下中文flash乱码问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux/ubuntu下安装MPlayer播放高清电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-mplayer.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900140.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux/ubuntu下安装MPlayer播放高清电影</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/ubuntu-windows-date-error.html" title="Ubuntu和windows的时间日期不对的解决方法">Ubuntu和windows的时间日期不对的解决方法</a></li><li><a href="http://www.openboy.net/memorial-to-my-hard-drive.html" title="杯具了,但是我很淡定">杯具了,但是我很淡定</a></li><li><a href="http://www.openboy.net/configure-make-install-pidgin.html" title="编译安装pidgin以及一些错误解决">编译安装pidgin以及一些错误解决</a></li><li><a href="http://www.openboy.net/ubuntu-install-google-earth.html" title="ubuntu下安装google earth以及解决中文乱码">ubuntu下安装google earth以及解决中文乱码</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ubuntu和windows的时间日期不对的解决方法</title>
		<link>http://www.openboy.net/ubuntu-windows-date-error.html</link>
		<comments>http://www.openboy.net/ubuntu-windows-date-error.html#comments</comments>
		<pubDate>Thu, 02 Sep 2010 11:21:28 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=539</guid>
		<description><![CDATA[硬盘杯具以后，我购买了1TB的移动硬盘来备份。。。哈哈～这下OK了，继续折腾ubuntu.. 安装完出现个小问题.就是ubuntu的时间和日期不对。。接着就调整ubuntu的时间和日子，之后提示叫安装utc才能网络同步.我就装了，安装完以后ubuntu的时间对了，回来在进windows时间却错乱了，lastfm提示因为时间不对也不会记录歌曲了。。唉。麻烦。 找到个简单的解决方法。 摘自网络 可让 Ubuntu 不使用 UTC 时间与 Windows 保持一致。 ubuntu默认开启UTC,即协调世界时，而win7是使用这种计时方式，这将导致的结果就是Windows和Ubuntu时间计算有差异 你 可以使用以下方法得到一致的时间： sudo gedit /etc/default/rcS 找到一行UTC=yes 把 yes改为no 问题后续在记录吧～ 杯具了,但是我很淡定windows xp/windows vista/windows7安装ipv6Windows Xp安装ipv6 + Ubuntu/linux安装ipv6linux/ubuntu下pidgin无法登录msn提速ubuntu&#038;试了下gnome-shell如何修改sudo命令输入密码的时间用iso镜像升级ubuntu<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="windows xp/windows vista/windows7安装ipv6" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fwindows-xp-vista-win7-install-ipv6.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8902064.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">windows xp/windows vista/windows7安装ipv6</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows Xp安装ipv6 + Ubuntu/linux安装ipv6" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fwindows-xp-install-ipv6.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8939854.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows Xp安装ipv6 + Ubuntu/linux安装ipv6</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用ubuntu上支付宝最简单的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-go-alipay-no-wine.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899523.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用ubuntu上支付宝最简单的方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提速ubuntu&amp;试了下gnome-shell" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899841.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提速ubuntu&amp;试了下gnome-shell</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a title="杯具了,但是我很淡定" href="http://www.openboy.net/memorial-to-my-hard-drive.html">硬盘杯具</a>以后，我购买了1TB的移动硬盘来备份。。。哈哈～这下OK了，继续折腾ubuntu..</p>
<p>安装完出现个小问题.就是ubuntu的时间和日期不对。。接着就调整ubuntu的时间和日子，之后提示叫安装utc才能网络同步.我就装了，安装完以后ubuntu的时间对了，回来在进windows时间却错乱了，<a title="我的听歌记录" rel="external nofollow" href="http://cn.last.fm/user/openboy">lastfm</a>提示因为时间不对也不会记录歌曲了。。唉。麻烦。</p>
<p>找到个简单的解决方法。<span id="more-539"></span></p>
<p>摘自网络</p>
<blockquote><p>
可让 Ubuntu 不使用 UTC 时间与 Windows 保持一致。<br />
ubuntu默认开启UTC,即协调世界时，而win7是使用这种计时方式，这将导致的结果就是Windows和Ubuntu时间计算有差异<br />
你 可以使用以下方法得到一致的时间：
</p></blockquote>
<pre>sudo gedit /etc/default/rcS</pre>
<p>找到一行UTC=yes</p>
<p>把 yes改为no</p>
<p>问题后续在记录吧～</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="windows xp/windows vista/windows7安装ipv6" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fwindows-xp-vista-win7-install-ipv6.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8902064.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">windows xp/windows vista/windows7安装ipv6</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows Xp安装ipv6 + Ubuntu/linux安装ipv6" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fwindows-xp-install-ipv6.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8939854.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows Xp安装ipv6 + Ubuntu/linux安装ipv6</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用ubuntu上支付宝最简单的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-go-alipay-no-wine.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899523.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用ubuntu上支付宝最简单的方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提速ubuntu&amp;试了下gnome-shell" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899841.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提速ubuntu&amp;试了下gnome-shell</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-windows-date-error.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><ul class="related_post"><li><a href="http://www.openboy.net/memorial-to-my-hard-drive.html" title="杯具了,但是我很淡定">杯具了,但是我很淡定</a></li><li><a href="http://www.openboy.net/windows-xp-vista-win7-install-ipv6.html" title="windows xp/windows vista/windows7安装ipv6">windows xp/windows vista/windows7安装ipv6</a></li><li><a href="http://www.openboy.net/windows-xp-install-ipv6.html" title="Windows Xp安装ipv6 + Ubuntu/linux安装ipv6">Windows Xp安装ipv6 + Ubuntu/linux安装ipv6</a></li><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-windows-date-error.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

