<?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; 精武门</title>
	<atom:link href="http://www.54chen.com/tag/%e7%b2%be%e6%ad%a6%e9%97%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.54chen.com</link>
	<description>PHP、JAVA、缓存、架构、经验、分享</description>
	<lastBuildDate>Sat, 11 Feb 2012 17:09:00 +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>清华万博-精武门 lamp环境内容回顾</title>
		<link>http://www.54chen.com/php-tech/tsinghua-huambo-fist-of-fury-review-environmental-elements-lamp.html</link>
		<comments>http://www.54chen.com/php-tech/tsinghua-huambo-fist-of-fury-review-environmental-elements-lamp.html#comments</comments>
		<pubDate>Sat, 24 Oct 2009 13:01:28 +0000</pubDate>
		<dc:creator>cc0cc</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[清华万博]]></category>
		<category><![CDATA[精武门]]></category>

		<guid isPermaLink="false">http://www.54chen.com/php-tech/tsinghua-huambo-fist-of-fury-review-environmental-elements-lamp.html</guid>
		<description><![CDATA[<a href="http://www.54chen.com"><img border="0" src="http://www.54chen.com/wp-content/themes/54chen2011/images/54chen-logo.gif"></a><br>以下内容由<a href="http://www.54chen.com">[五四陈科学院]</a>提供<br>精武门版权所有，复制请标明：http://www.54chen.com/c/809 第一部分：Linux基础 因为大多数同学没有任何基础，此课程不得不放慢脚步，但不要担心，所涉及到的东西都会在课程中反复讲解。 1.Linux指令： 1.1 SecureCRT连Linux接服务器后，默认进入自己的用户目录下。--/home/xxxx/ 题外： 目录的概念：.（一个点）当前目录 ..(两个点)上一级目录 &#60;以后不能再分不清楚这两个东西了哈&#62; 相对目录和绝对目录：/home/zzz/相对于/home/来说就是zzz目录，就可以cd /home/后再cd zzz进入到/home/zzz （其中滋味要慢慢体会，只能体会，一定要体会清楚） 1.2 Linux命令行 命令[空格]参数1[空格]参数2[空格]。。。 2.常用命令： cp a b --copy的简写 复制文件的意思，从a复制到b mkdir xxx --make directory的简写，新建文件夹的意思，建立一个叫xxx的文件夹 ls --list的简写，显示当前文件夹下所有文件 精武门版权所有，复制请标明：http://www.54chen.com/c/809 第二部分：LAMP环境 2.1 编译程序中的三板斧： configure 检测硬件，配置MakeFile文件 make 编译 make install 安装 &#8230;<br><br>想快点找到作者也可以到Twitter上留言: <a href="https://www.twitter.com/54chen" target="_blank">@54chen</a><br>或者你懒得带梯子上墙，请到新浪微博：<a href="http://t.sina.com.cn/54chen" target="_blank">@54chen</a>]]></description>
			<content:encoded><![CDATA[<a href="http://www.54chen.com"><img border="0" src="http://www.54chen.com/wp-content/themes/54chen2011/images/54chen-logo.gif"></a><br>以下内容由<a href="http://www.54chen.com">[五四陈科学院]</a>提供<br><p>精武门版权所有，复制请标明：<a href="http://www.54chen.com/c/809">http://www.54chen.com/c/809</a></p>
<p>第一部分：Linux基础</p>
<p>因为大多数同学没有任何基础，此课程不得不放慢脚步，但不要担心，所涉及到的东西都会在课程中反复讲解。</p>
<p>1.Linux指令：</p>
<p>1.1 SecureCRT连Linux接服务器后，默认进入自己的用户目录下。--/home/xxxx/</p>
<p>题外：</p>
<p>目录的概念：.（一个点）当前目录 ..(两个点)上一级目录 &lt;以后不能再分不清楚这两个东西了哈&gt;</p>
<p>相对目录和绝对目录：/home/zzz/相对于/home/来说就是zzz目录，就可以cd /home/后再cd zzz进入到/home/zzz （其中滋味要慢慢体会，只能体会，一定要体会清楚）</p>
<p>1.2 Linux命令行</p>
<p>命令[空格]参数1[空格]参数2[空格]。。。</p>
<p>2.常用命令：</p>
<p>cp a b --copy的简写 复制文件的意思，从a复制到b</p>
<p>mkdir xxx --make directory的简写，新建文件夹的意思，建立一个叫xxx的文件夹</p>
<p>ls --list的简写，显示当前文件夹下所有文件</p>
<p>精武门版权所有，复制请标明：<a href="http://www.54chen.com/c/809">http://www.54chen.com/c/809</a></p>
<p>第二部分：LAMP环境</p>
<p>2.1 编译程序中的三板斧：</p>
<p>configure 检测硬件，配置MakeFile文件</p>
<p>make 编译</p>
<p>make install 安装</p>
<p>2.2 apache编译示例</p>
<p>tar -zxvf 1.tar.gz  --解压源码包</p>
<p>cd httpd-2.2/ --进入解压出来的目录</p>
<p>./configure --prefix=/home/zz/apache</p>
<p>make &amp;&amp; make install</p>
<p>2.3 nginx + fast-cgi环境</p>
<p>PHP编译安装：</p>
<p>tar zxvf php-5.2.10.tar.gz<br />
gzip -cd php-5.2.10-fpm-0.5.11.diff.gz | patch -d php-5.2.10 -p1<br />
cd php-5.2.10<br />
****<br />
./configure --prefix=/home/zhen.chen/php --with-config-file-path=/home/zhen.chen/php/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-gd --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --without-pear</p>
<p>make &amp;&amp; make install<br />
=========================================================================================================<br />
nginx编译安装：</p>
<p>tar -zxvf pcre-7.9.tar.gz<br />
cd pcre-7.9<br />
./configure<br />
make &amp;&amp; make install<br />
====================<br />
cd ..<br />
tar zxvf nginx-0.7.61.tar.gz<br />
cd nginx-0.7.61<br />
./configure --user=www --group=www --prefix=/home/xxx/nginx --with-http_stub_status_module --with-http_ssl_module<br />
make &amp;&amp; make install<br />
@@@@@@@@@@@@@@@@@@@@@@@@<br />
增加www用户：<br />
groupadd www<br />
useradd -g www www</p>
<p>=========================================<br />
nginx+php fast cgi配置</p>
<p>1. cp /home/zhen.chen/fcgi.conf /home/zzz/nginx/conf/<br />
2. vi /home/zzzz/nginx/conf/nginx.conf<br />
3.<br />
 location ~ .*\.(php|php5)?$<br />
    {<br />
      #fastcgi_pass  unix:/tmp/php-cgi.sock;<br />
      fastcgi_pass  127.0.0.1:9000;<br />
      fastcgi_index index.php;<br />
      include fcgi.conf;<br />
    }<br />
4.<br />
sudo /home/zzz/nginx/sbin/nginx</p>
<p>精武门版权所有，复制请标明：<a href="http://www.54chen.com/c/809">http://www.54chen.com/c/809</a></p>
<br><br>想快点找到作者也可以到Twitter上留言: <a href="https://www.twitter.com/54chen" target="_blank">@54chen</a><br>或者你懒得带梯子上墙，请到新浪微博：<a href="http://t.sina.com.cn/54chen" target="_blank">@54chen</a>]]></content:encoded>
			<wfw:commentRss>http://www.54chen.com/php-tech/tsinghua-huambo-fist-of-fury-review-environmental-elements-lamp.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

