<?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>荷包蛋博客 &#187; CentOS5</title>
	<atom:link href="http://www.hebaodans.com/tag/centos5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hebaodans.com</link>
	<description>好的心态是成功的开始</description>
	<lastBuildDate>Tue, 20 Jul 2010 17:32:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>softlayer centos5主机mysql重新安装</title>
		<link>http://www.hebaodans.com/2009/02/softlayer-centos5-install/</link>
		<comments>http://www.hebaodans.com/2009/02/softlayer-centos5-install/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:40:13 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[mysql安装]]></category>
		<category><![CDATA[Softlayer]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=138</guid>
		<description><![CDATA[购买的centos5主机自带的mysql版本是5.0的，很老的版本。准备安装最新的mysql 6.0.首先删除原先mysql，执行yum remove mysql删除。到http://dev.mysql.com/downloads/mysql/6.0.html  Compressed GNU TAR archive (tar.gz)   6.0.7-alpha 30.0M Download &#124; Pick a mirror MD5: 6db5cb7cbcbde8011d129e26091e3fe0 &#124; Signature 下载6.0安装包，执行命令 wget  ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz 解压tar vxzf mysql-6.0.7-alpha.tar.gz 进入目录  cd mysql-6.0.7-alpha 执行 ./configure &#8211;sysconfdir=/etc 然后make（时间比较久）， 安装make install 安装完了之后，我们拷贝一个配置文件，当作以后mysql的配置文件 cp /usr/local/share/mysql/my-large.cnf /etc/my.cnf]]></description>
			<content:encoded><![CDATA[<p>购买的centos5主机自带的mysql版本是5.0的，很老的版本。准备安装最新的mysql 6.0.首先删除原先mysql，执行yum remove mysql删除。到<a href="http://dev.mysql.com/downloads/mysql/6.0.html">http://dev.mysql.com/downloads/mysql/6.0.html</a> </p>
<table border="0" cellspacing="0" cellpadding="2" width="90%">
<tbody>
<tr bgcolor="#eeeeee">
<td class="dlcol1">Compressed GNU TAR archive (tar.gz)</td>
<td class="dlcol2"> </td>
<td class="dlcol3">6.0.7-alpha</td>
<td class="dlcol4">30.0M</td>
<td class="dlcol5" style="white-space: nowrap;" align="right"><a href="http://www.hebaodans.com/get/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz/from/ftp://mirror.anl.gov/pub/mysql/">Download</a> | <a href="http://www.hebaodans.com/get/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz/from/pick">Pick a mirror</a></td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="5" align="right"><small style="color: #777777;"><span style="font-size: x-small;">MD5: <code class="md5">6db5cb7cbcbde8011d129e26091e3fe0</code> | </span><a href="http://www.hebaodans.com/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz.asc"><span style="font-size: x-small;">Signature</span></a></small></td>
</tr>
</tbody>
</table>
<p>下载6.0安装包，执行命令</p>
<p>wget  <a href="ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz">ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-6.0/mysql-6.0.7-alpha.tar.gz</a></p>
<p>解压tar vxzf mysql-6.0.7-alpha.tar.gz</p>
<p>进入目录  cd mysql-6.0.7-alpha</p>
<p>执行 ./configure &#8211;sysconfdir=/etc</p>
<p>然后make（时间比较久），</p>
<p>安装make install</p>
<p>安装完了之后，我们拷贝一个配置文件，当作以后mysql的配置文件<br />
cp /usr/local/share/mysql/my-large.cnf /etc/my.cnf</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/02/softlayer-centos5-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在CentOS5下安装配置nginx+fastcgi php+mysql</title>
		<link>http://www.hebaodans.com/2008/12/centos5-nginx-fastcgi-php-mysql/</link>
		<comments>http://www.hebaodans.com/2008/12/centos5-nginx-fastcgi-php-mysql/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 03:44:17 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[php fastcgi]]></category>
		<category><![CDATA[安装nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=164</guid>
		<description><![CDATA[下载RPM包： wget http://vpsblog.rashost.com/wp-content/uploads/2008/06/nginx-0631-2i386.rpm rpm -ivh nginx-0631-2i386.rpm chkconfig nginx on /etc/init.d/nginx start 然后访问本机的80端口，就可以看到页面了，这表示安装一切正常。 修改/etc/nginx/nginx.conf文件中的server_name部分，修改IP地址为本机IP地址： server_name 192.168.0.104; 修改/etc/nginx/nginx.conf文件的index部分，加入index.php index index.php index.html index.htm; 安装php wget ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/lighttpd-fastcgi-1.4.18-1.el5.rf.i386.rpm wget ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/lighttpd-1.4.18-1.el5.rf.i386.rpm rpm -ivh lighttpd-*.i386.rpm # CentOS不自带lighttpd, 我们只好从别处下载，安装 chkconfig &#8211;del lighttpd #我们只用到lighttpd中的一个文件，不需要lighttpd开机自启动 yum install php-cgi php-mysql spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u nginx -f /usr/bin/php-cgi cd /usr/share/nginx/html/ echo &#8220;< ?phpinfo();?>&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>下载RPM包：</p>
<p>wget http://vpsblog.rashost.com/wp-content/uploads/2008/06/nginx-0631-2i386.rpm<br />
rpm -ivh nginx-0631-2i386.rpm<br />
chkconfig nginx on<br />
/etc/init.d/nginx start</p>
<p>然后访问本机的80端口，就可以看到页面了，这表示安装一切正常。</p>
<p>修改/etc/nginx/nginx.conf文件中的server_name部分，修改IP地址为本机IP地址：</p>
<p>server_name  192.168.0.104;</p>
<p>修改/etc/nginx/nginx.conf文件的index部分，加入index.php</p>
<p>index  index.php index.html index.htm;</p>
<p>安装php</p>
<p>wget ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/lighttpd-fastcgi-1.4.18-1.el5.rf.i386.rpm<br />
wget ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/lighttpd-1.4.18-1.el5.rf.i386.rpm<br />
rpm -ivh lighttpd-*.i386.rpm # CentOS不自带lighttpd, 我们只好从别处下载，安装<br />
chkconfig &#8211;del lighttpd  #我们只用到lighttpd中的一个文件，不需要lighttpd开机自启动<br />
yum install php-cgi php-mysql<br />
spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u nginx -f /usr/bin/php-cgi<br />
cd /usr/share/nginx/html/<br />
echo &#8220;< ?phpinfo();?>&#8221; >i.php</p>
<p>然后修改/etc/nginx/nginx.conf文件的如下部分：</p>
<p>     location ~ \.php$ {<br />
            root           html;<br />
            fastcgi_pass   127.0.0.1:9000;<br />
            fastcgi_index  index.php;<br />
            fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;<br />
            include        fastcgi_params;<br />
        }</p>
<p>重启nginx:</p>
<p>/etc/init.d/nginx stop<br />
/etc/init.d/nginx start</p>
<p>然后访问本机的i.php文件 http://192.168.1.104/i.php 应该能正确的到php的配置信息，这就成功了！</p>
<p>最后要注意的是，在CentOS下nginx的默认html目录是/usr/share/nginx/html，这个和ubuntu下不同</p>
<p>另外，为了让php cgi程序开机自启动，请在/etc/rc.local文件的最后加入下面这行：</p>
<p>spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u nginx -f /usr/bin/php-cgi</p>
<p>如转载，请注明转载自： http://vpsblog.rashost.com/20080602-centos-nginx-php/</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2008/12/centos5-nginx-fastcgi-php-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
