<?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>星箭SEO博客 &#187; Linux</title>
	<atom:link href="http://www.starow.net/category/linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.starow.net</link>
	<description>致力于SEO、SEM、在线营销、产品的研究，关注运营和电子商务</description>
	<lastBuildDate>Tue, 19 Apr 2011 17:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>linux下mysql自动备份</title>
		<link>http://www.starow.net/linuxunix/mysql-auto-backup/</link>
		<comments>http://www.starow.net/linuxunix/mysql-auto-backup/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 15:44:21 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.starow.net/linuxunix/mysql-auto-backup.html</guid>
		<description><![CDATA[今天看到老雕说，过年放假如果没人备份数据库怎么办，心里想这确实是个头疼的问题。于是想了一个办法，干脆写一个小脚本让每天<strong>mysql自动备份</strong>好了。其实这个mysql自动备份的小脚本非常简单，下面是这个小脚本的步骤。]]></description>
			<content:encoded><![CDATA[<p>今天看到老雕说，过年放假如果没人备份数据库怎么办，心里想这确实是个头疼的问题。于是想了一个办法，干脆写一个小脚本让每天<strong>mysql自动备份</strong>好了。</p>
<p>其实这个mysql自动备份的小脚本非常简单，下面是这个小脚本的步骤。<br />
#cd /www<br />
#mkdir mysqlbackup<br />
#vi mysqlautobackup.sh<br />
这个mysqlautobackup.sh的文件里写入以下内容：<br />
filename=`date +%Y%m%d`<br />
mysql_bin_dir/mysqldump --opt datename -u dateuser -pdatepassword | gzip > /www/mysqlbackup/datename$filename.gz<br />
保存退出，然后把这个文件赋予可执行的权限：<br />
#chmod 777 mysqlautobackup.sh</p>
<p>然后编辑crontab：<br />
#vi /etc/crontab<br />
在最后一行加入以下内容：<br />
01 5 * * * root /www/mysqlautobackup.sh<br />
然后重启一下crontab：<br />
# /etc/rc.d/init.d/crond restart<br />
这样就搞定了，以后每天临晨的5点就会自动执行一次mysql自动备份的命令。</p>
<p>注：mysql_bin_dir是指mysql的bin路径。datename是指数据库名称。dateuser是指数据库用户名。datepassword是指数据库用户密码。</p>
<p>这就是在<strong>linux下执行mysql自动备份</strong>的小技巧，是不是很简单呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/mysql-auto-backup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fedora Linux 7 Test 4下载</title>
		<link>http://www.starow.net/linuxunix/fedora-7-test-4-linux-download/</link>
		<comments>http://www.starow.net/linuxunix/fedora-7-test-4-linux-download/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 16:16:31 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/linuxunix/fedora-7-test-4-linux-download.html</guid>
		<description><![CDATA[<a href="http://www.starow.net">渡虎谷</a>是一个Fedora linux爱好者，今天发现Fedora Linux 7 Test 4的下载地址：]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.starow.net">渡虎谷</a>是一个Fedora linux爱好者，今天发现Fedora Linux 7 Test 4的下载地址：<br />
Fedora 是一个操作系统和平台，基于 Linux。它允许任何人自由地使用、修改和重发布，无论现在还是将来。它由一个庞大的社群开发，这个社群的成员以自己的不懈努力，提供并维护自由、开放 源码的软件和开放的标准。Fedora Core 是 Fedora Project 的一部分，得到了 Red Hat, Inc. 的支持。</p>
<p>Fedora Linux 7 Test 4 FTP下载地址：<br />
<a href="http://rhold.fedoraproject.org/Download/mirrors.html">http://rhold.fedoraproject.org/Download/mirrors.html</a></p>
<p>Fedora Linux 7 Test 4 BT下载：<br />
<a href="http://torrent.fedoraproject.org/">http://torrent.fedoraproject.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/fedora-7-test-4-linux-download/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fedora Linux 7 Test 1下载</title>
		<link>http://www.starow.net/linuxunix/fedora_linux_7_test_1_download/</link>
		<comments>http://www.starow.net/linuxunix/fedora_linux_7_test_1_download/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 12:16:07 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/linuxunix/fedora_linux_7_test_1_download.html</guid>
		<description><![CDATA[Fedora 是一个操作系统和平台，基于 Linux。它允许任何人自由地使用、修改和重发布，无论现在还是将来。它由一个庞大的社群开发，这个社群的成员以自己的不懈努力，提供并维护自由、开放源码的软件和开放的标准。Fedora Core 是 Fedora Project 的一部分，得到了 Red Hat, Inc. 的支持。放出下载地址：]]></description>
			<content:encoded><![CDATA[<p>Fedora 是一个操作系统和平台，基于 Linux。它允许任何人自由地使用、修改和重发布，无论现在还是将来。它由一个庞大的社群开发，这个社群的成员以自己的不懈努力，提供并维护自由、开放源码的软件和开放的标准。Fedora Core 是 Fedora Project 的一部分，得到了 Red Hat, Inc. 的支持。</p>
<p>Fedora Linux 7 Test 1于2007年1月29日发布，由于测试版的不稳定性，建议安装要慎重。。不过玩linux的都是爱好者，应该对测试版很感兴趣。</p>
<p>放出下载地址：</p>
<p>Fedora Linux 7 Test 1 DVD版：http://mirror.linux.duke.edu/pub/fedora/linux/core/test/6.90/Desktop/i386/iso/FD-6.90-i386-DVD.iso</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/fedora_linux_7_test_1_download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh远程控制Redhat AS4时中文乱码问题</title>
		<link>http://www.starow.net/linuxunix/redhat_as4_zhongwenluanma/</link>
		<comments>http://www.starow.net/linuxunix/redhat_as4_zhongwenluanma/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 15:01:29 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/index.php/20070108/redhat_as4_zhongwenluanma.html</guid>
		<description><![CDATA[ssh远程控制Redhat AS4时中文乱码问题：不知道这是不是redhat as4的一个bug，在使用ssh远程控制redhat服务器时，中文显示为乱码。这个问题困扰了好久，后来发现修改i18n这个文件能够修正乱码]]></description>
			<content:encoded><![CDATA[<div id="art" style="margin: 15px">不知道这是不是redhat as4的一个bug，在使用ssh远程控制redhat服务器时，中文显示为乱码。这个问题困扰了好久，后来发现修改i18n这个文件能够修正乱码。</p>
<p>方法如下：修改/etc/sysconfig/i18n文件，将其改成以下内容：</p>
<p>LANG="zh_CN.GB18030"<br />
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"<br />
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"<br />
SYSFONT="lat0-sun16"</p>
<p>重启机器，问题应该解决了。</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/redhat_as4_zhongwenluanma/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>又配了一次apache-2.2.3(httpd-2.2.3)和php-5.2.0</title>
		<link>http://www.starow.net/linuxunix/apache-223_httpd-223_php-520_mod_rewrite/</link>
		<comments>http://www.starow.net/linuxunix/apache-223_httpd-223_php-520_mod_rewrite/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 14:35:22 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/index.php/20070108/apache-223_httpd-223_php-520_mod_rewrite.html</guid>
		<description><![CDATA[又配置了一次apache-2.2.3(httpd-2.2.3)和php-5.2.0，这次是要把apache的mod_rewrite.so模块默认安装。就不用那么麻烦使用gdm再编译一次了。--with-mysql=/usr/bin/mysql这个选项是加载php_mysql模块，一定要填上哦。如果你不知道mysql安装在哪，可以使用which mysql命令来查询。]]></description>
			<content:encoded><![CDATA[<p>又配置了一次apache-2.2.3(httpd-2.2.3)和php-5.2.0，这次是要把apache的mod_rewrite.so模块默认安装。就不用那么麻烦使用gdm再编译一次了。</p>
<p>安装apache：<br />
#tar -zxvf httpd-2.2.3.tar.gz<br />
#cd httpd-2.2.3<br />
#./configure --prefix=/opt/apache2 --enable-so --enable-rewrite --enable-rewrite=shared （这里是默认编译加载mod_rewrite.so模块）<br />
#make<br />
#make install</p>
<p>安装php：<br />
#./configure --prefix=/opt/php --with-apxs2=/opt/apache2/bin/apxs -enable-track-vars --with-mysql=/usr/bin/mysql --with-libxml-dir --with-gd-dir --with-jpeg-dir --with-zlib-dir --with-png-dir --with-freetype-dir<br />
#cp php.ini-dist /opt/php/lib/php.ini<br />
# vi /opt/apache2/conf/httpd.conf<br />
找到 AddType application/x-gzip .gz .tgz 在其下添加如下内容<br />
AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php-source .phps</p>
<p>--with-mysql=/usr/bin/mysql这个选项是加载php_mysql模块，一定要填上哦。如果你不知道mysql安装在哪，可以使用which mysql命令来查询。</p>
<p>--with-apxs2=/opt/apache2/bin/apxs是开启apxs的模块，这个一般来说也是必须的。如果是apache 1x系列，那么应该改为--with-apxs=/opt/apache/bin/apxs。</p>
<p>大功告成~安装过程还是很简单的，只是安装完成后配置虚拟主机稍微麻烦一些。希望能给大家参考。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/apache-223_httpd-223_php-520_mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>搜索引擎优化之url重写：apache-2.0.59开启mod_rewrite模块</title>
		<link>http://www.starow.net/seo-tech/apache_2_mod_rewrite_seo/</link>
		<comments>http://www.starow.net/seo-tech/apache_2_mod_rewrite_seo/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 11:59:44 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SEO技术]]></category>

		<guid isPermaLink="false">http://www.starow.net/index.php/20070102/apache_2_mod_rewrite_seo.html</guid>
		<description><![CDATA[apache的rewrite模块能够很好的支持url的重构，使之对搜索引擎友好，现在许多的程序都已经支持rewrite功能，比如大名鼎鼎的博客程序wordpress和国内的bo-blog，论坛程序如phpwind和discuz!，还有一些cms程序比如dedecms,supesite, VeryCMS等等。要使用rewrite功能，还要启用apache的rewrite模块，本来php自身也支持rewrite，但是功能有限，根强大的apache比起来还是有很大差别的。]]></description>
			<content:encoded><![CDATA[<p>apache的rewrite模块能够很好的支持url的重构，使之对搜索引擎友好，现在许多的程序都已经支持rewrite功能，比如大名鼎鼎的博客程序wordpress和国内的bo-blog，论坛程序如phpwind和discuz!，还有一些cms程序比如dedecms,supesite, VeryCMS等等。要使用rewrite功能，还要启用apache的rewrite模块，本来php自身也支持rewrite，但是功能有限，根强大的apache比起来还是有很大差别的。</p>
<p>下面介绍一下怎样打开apache的mod_rewrite功能。</p>
<p><span id="more-71"></span></p>
<p>首先来重新编译安装apache-2.0.59</p>
<p>#tar -zxvf httpd-2.0.59.tar.gz<br />
#cd httpd-2.0.59<br />
#./configure --prefix=/opt/apache2 --enable-modules=so --enable-module=rewrite --enable-shared=rewrite --enable-shared=max<br />
#make<br />
#make install</p>
<p>apache安装完毕，下面来加载编译mod_rewrite.so这个模块。</p>
<p>#cd /soft/httpd-2.0.59/modules/mappers<br />
#/opt/apache2/bin/apxs -c mod_rewrite.c -lgdbm<br />
#gcc -shared -o mod_rewrite.so mod_rewrite.o -lgdbm<br />
#/opt/apache2/bin/apxs -i -A -n rewrite mod_rewrite.so</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/seo-tech/apache_2_mod_rewrite_seo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mysql 5.0.27安装（包括支持中文字符集）</title>
		<link>http://www.starow.net/linuxunix/mysql_5_0_27_anzhuang_gbk_zifuji/</link>
		<comments>http://www.starow.net/linuxunix/mysql_5_0_27_anzhuang_gbk_zifuji/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 08:20:24 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/index.php/20070102/mysql_5_0_27_anzhuang_gbk_zifuji.html</guid>
		<description><![CDATA[mysql 5.0.27安装（包括支持中文字符集）：#groupadd mysql #useradd -g mysql mysql #tar -zxvf mysql-5.0.27.tar.gz #cd mysql-5.0.27 #./configure --prefix=/opt/mysql --with--charset=gbk --with-extra-charsets=all #make #make install]]></description>
			<content:encoded><![CDATA[<p>#groupadd mysql<br />
#useradd -g mysql mysql<br />
#tar -zxvf mysql-5.0.27.tar.gz<br />
#cd mysql-5.0.27<br />
#./configure --prefix=/opt/mysql --with--charset=gbk --with-extra-charsets=all<br />
#make<br />
#make install<br />
#cp support-files/my-medium.cnf /etc/my.cnf或者cp /opt/mysql/share/mysql/my-medium.cnf /etc/my.cnf</p>
<p><span id="more-69"></span></p>
<p>#/opt/mysql/bin/mysql_install_db<br />
#chown -R root .<br />
#chown -R mysql var<br />
#chgrp -R mysql .<br />
#./bin/mysqld_safe --user=root --default-character-set=gbk &#038;<br />
#./bin/mysqladmin -u root password 'new-password'<br />
#./bin/mysql -u root --default-character-set=gbk -p<br />
#status<br />
看见characterset全是gbk就算成功了.</p>
<p>#./bin/mysqld_safe --user=root --default-character-set=gbk &#038;这一条是启动mysql的命令。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/mysql_5_0_27_anzhuang_gbk_zifuji/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apache2.2.3+php-5.1.4+vsftpd-2.0.5安装</title>
		<link>http://www.starow.net/linuxunix/apache2059_php514_vsftpd205_anzhuang/</link>
		<comments>http://www.starow.net/linuxunix/apache2059_php514_vsftpd205_anzhuang/#comments</comments>
		<pubDate>Tue, 26 Dec 2006 13:50:05 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/index.php/20061226/apache2059_php514_vsftpd205_anzhuang.html</guid>
		<description><![CDATA[1,安装apache2.0.59.,2，安装php5.1.4,3,安装vsftpd-2.0.5,启动vsftpd:,启动apache:修改mysql默认密码]]></description>
			<content:encoded><![CDATA[<p><strong>1,安装apache2.0.59.</strong></p>
<p>先下载最新的安装包:<a href="http://apache.justdn.org/httpd/httpd-2.0.59.tar.gz">http://apache.justdn.org/httpd/httpd-2.0.59.tar.gz</a></p>
<p>下面开始编译安装apache:<br />
# tar httpd-2.0.59.tar.gz<br />
# mkdir /opt/apache2<br />
# ./configure --prefix=/opt/apache2 --enable-module=so --enable-rewrite<br />
# make<br />
# make install<br />
启动apache看是否安装成功: #./opt/apache2/bin/apachectl start 如果出现It works!,则表示安装成功。</p>
<p>2，安装php5.1.4</p>
<p>#tar -zxvf php-5.1.4.tar.gz<br />
#cd php-5.1.4<br />
#./configure --prefix=/opt/php --with-apxs2=/opt/apache2/bin/apxs -enable-track-vars --with-mysql-dir --with-libxml-dir --with-gd-dir --with-jpeg-dir --with-zlib-dir --with-png-dir --with-freetype-dir<br />
#make<br />
#make install<br />
#cp php.ini-dist /opt/php/lib/php.ini</p>
<p><span id="more-50"></span></p>
<p># vi /opt/apache2/conf/httpd.conf<br />
找到 AddType application/x-gzip .gz .tgz 在其下添加如下内容<br />
AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php-source .phps</p>
<p><strong>3,安装vsftpd-2.0.5：</strong><br />
#tar -zxvf vsftpd-2.0.5.tar.gz<br />
#make<br />
#make install<br />
#cp vsftpd.conf /etc<br />
#cp RedHat/vsftpd.pam /etc/pam.d/ftp<br />
#vi /etc/vsftpd.conf<br />
anonymous_enable=NO<br />
local_enable=YES<br />
write_enable=YES<br />
chroot_local_user=YES</p>
<p><strong>启动vsftpd:</strong></p>
<p>#/etc/init.d/xinetd restart</p>
<p><strong>启动apache:</strong></p>
<p>#/opt/apache2/bin/apachectl start</p>
<p><strong>修改mysql默认密码</strong><br />
mysql>set password for 'root'@'localhost'=password('newpasswd');</p>
<p>知道原密码：<br />
mysqladmin -u root "old password" "new password"</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/apache2059_php514_vsftpd205_anzhuang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux：cat命令相关</title>
		<link>http://www.starow.net/linuxunix/linux_cat_mingling/</link>
		<comments>http://www.starow.net/linuxunix/linux_cat_mingling/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 12:10:02 +0000</pubDate>
		<dc:creator>星箭</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.starow.net/linuxunix/linux_cat_mingling.html</guid>
		<description><![CDATA[linux cat相关命令：查看一个文件的内容。查看一个文件的内容，用cat比较简单，就是cat 后面直接接文件名。语法结构：cat [选项] [文件]]]></description>
			<content:encoded><![CDATA[<p>linux cat相关命令：查看一个文件的内容<br />
查看一个文件的内容，用cat比较简单，就是cat 后面直接接文件名。<br />
语法结构：cat [选项] [文件]<br />
选项<br />
-A, –show-all 等价于 -vET<br />
-b, –number-nonblank 对非空输出行编号<br />
-e 等价于 -vE<br />
-E, –show-ends 在每行结束处显示 $<br />
-n, –number 对输出的所有行编号[separator]<br />
-s, –squeeze-blank 不输出多行空行<br />
-t 与 -vT 等价<br />
-T, –show-tabs 将跳格字符显示为 ^I<br />
-u (被忽略)<br />
-v, –show-nonprinting 使用 ^ 和 M- 引用，除了 LFD 和 TAB 之外<br />
–help 显示此帮助信息并离开<br />
例子：# starow.txt 注：我们查看一下starow.txt文件的内容；<br />
我来测试cat 创建文件，并且为文件输入内容；<br />
cat 的创建、连接文件功能<br />
语法结构：cat > [文件名+拓展名]<br />
例子：# cat > starow.txt < < EOF 注：创建starow.txt文件；<br />
> 我来测试 cat 创建文件，并且为文件输入内容； 注：这是为starow.txt文件输入内容；<br />
> 北南南北 测试； 注：这是为starow.txt文件输入内容；<br />
> EOF 注：退出编辑状态</p>
]]></content:encoded>
			<wfw:commentRss>http://www.starow.net/linuxunix/linux_cat_mingling/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

