<?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>CanleiSky Blog &#187; 服务器</title>
	<atom:link href="http://www.oioq.com/weblog/category/server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.oioq.com</link>
	<description>生活的理想是为了理想的生活.</description>
	<lastBuildDate>Sun, 30 May 2010 09:14:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS安装wine 1.1.33日记</title>
		<link>http://www.oioq.com/weblog/20091122/centos-install-wine-1-1-33</link>
		<comments>http://www.oioq.com/weblog/20091122/centos-install-wine-1-1-33#comments</comments>
		<pubDate>Sun, 22 Nov 2009 06:31:13 +0000</pubDate>
		<dc:creator>CanleiSky</dc:creator>
				<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.oioq.com/?p=46</guid>
		<description><![CDATA[1.去官网下载wine 1.1.33，下载后解压到/opt/download/wine-1.1.33
下载地址：http://www.winehq.org/announce/1.1.33
2.cd /opt/downloa/wine-1.1.33
3.执行安装前环境检查
[root@localhost wine-1.1.33]# ./configure
如果如现checking error &#8230; please install xxx 字样表示执行这项检查报错，再执行yum install xxx，这里如果报Xlib/Xfree86错误的话要执行
[root@localhost wine-1.1.33]# yum -y groupinstall &#8220;X Software Development&#8221;
或者：
[root@localhost wine-1.1.33]# yum install libxorg-x11-devel
[root@localhost wine-1.1.33]# yum install libxorg-x11-static-devel
执行安装后再次运行
[root@localhost wine-1.1.33]# ./configure
直到完全检查成功为止
4.进行编译安装，这个过程非常长，耐心等待编译完成：
[root@localhost wine-1.1.33]# make depend &#38;&#38; make
]]></description>
			<content:encoded><![CDATA[<p>1.去官网下载wine 1.1.33，下载后解压到/opt/download/wine-1.1.33</p>
<p>下载地址：http://www.winehq.org/announce/1.1.33</p>
<p>2.cd /opt/downloa/wine-1.1.33</p>
<p>3.执行安装前环境检查</p>
<p>[root@localhost wine-1.1.33]# ./configure</p>
<p>如果如现checking error &#8230; please install xxx 字样表示执行这项检查报错，再执行yum install xxx，这里如果报Xlib/Xfree86错误的话要执行</p>
<p>[root@localhost wine-1.1.33]# yum -y groupinstall &#8220;X Software Development&#8221;</p>
<p>或者：</p>
<p>[root@localhost wine-1.1.33]# yum install libxorg-x11-devel<br />
[root@localhost wine-1.1.33]# yum install libxorg-x11-static-devel</p>
<p>执行安装后再次运行</p>
<p>[root@localhost wine-1.1.33]# ./configure</p>
<p>直到完全检查成功为止</p>
<p>4.进行编译安装，这个过程非常长，耐心等待编译完成：</p>
<p>[root@localhost wine-1.1.33]# make depend &amp;&amp; make</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oioq.com/weblog/20091122/centos-install-wine-1-1-33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx支持CI重写</title>
		<link>http://www.oioq.com/weblog/20090910/nginx%e6%94%af%e6%8c%81ci%e9%87%8d%e5%86%99</link>
		<comments>http://www.oioq.com/weblog/20090910/nginx%e6%94%af%e6%8c%81ci%e9%87%8d%e5%86%99#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:50:19 +0000</pubDate>
		<dc:creator>CanleiSky</dc:creator>
				<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.oioq.com/?p=19</guid>
		<description><![CDATA[本人采用NPMserv 0.3.2来运行CI框架，在NPMserv设置里不能给rewrite加条件，所以只能手动改配置文件vhost.conf;
下面是一个功能的例子：
server { #创建一个服务
listen       80; #监听80端口
server_name  www.test.com; #绑定域名
location / { #设置根目录
root   D:/wwwroot/mgdd; #根目录位置
index  index.html index.htm index.php; #文件查找顺序
# 如果文件、目录不存在则执行重写
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
# 设置错误页面
error_page   500 502 503 504  /50x.html;
location = /50x.html {
root   html;
}
# 处理PHP程序
location ~ .*\.php {
root           D:/wwwroot/mgdd;
fastcgi_pass   127.0.0.1:9000; # FastCGI 服务信息
fastcgi_index  index.php;
# 为PHP程序提供一些常用的服务器变量
fastcgi_param  SCRIPT_FILENAME  D:/wwwroot/mgdd$fastcgi_script_name; # 执行的脚本名称
fastcgi_param  PATH_INFO          $request_uri; # 此参数非常重要，无此参数可能导致CI无法静态化
fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  [...]]]></description>
			<content:encoded><![CDATA[<p>本人采用NPMserv 0.3.2来运行CI框架，在NPMserv设置里不能给rewrite加条件，所以只能手动改配置文件vhost.conf;</p>
<p>下面是一个功能的例子：<br />
server { #创建一个服务<br />
listen       80; #监听80端口<br />
server_name  www.test.com; #绑定域名<br />
location / { #设置根目录<br />
root   D:/wwwroot/mgdd; #根目录位置<br />
index  index.html index.htm index.php; #文件查找顺序</p>
<p># 如果文件、目录不存在则执行重写</p>
<p>if (!-e $request_filename) {<br />
rewrite ^/(.*)$ /index.php/$1 last;<br />
}<br />
}<br />
# 设置错误页面<br />
error_page   500 502 503 504  /50x.html;<br />
location = /50x.html {<br />
root   html;<br />
}<br />
# 处理PHP程序<br />
location ~ .*\.php {<br />
root           D:/wwwroot/mgdd;<br />
fastcgi_pass   127.0.0.1:9000; # FastCGI 服务信息<br />
fastcgi_index  index.php;<br />
# 为PHP程序提供一些常用的服务器变量<br />
fastcgi_param  SCRIPT_FILENAME  D:/wwwroot/mgdd$fastcgi_script_name; # 执行的脚本名称<br />
fastcgi_param  PATH_INFO          $request_uri; # 此参数非常重要，无此参数可能导致CI无法静态化<br />
fastcgi_param  QUERY_STRING       $query_string;<br />
fastcgi_param  REQUEST_METHOD     $request_method;<br />
fastcgi_param  CONTENT_TYPE       $content_type;<br />
fastcgi_param  CONTENT_LENGTH     $content_length;</p>
<p>fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;<br />
fastcgi_param  REQUEST_URI        $request_uri;<br />
fastcgi_param  DOCUMENT_URI       $document_uri;<br />
fastcgi_param  DOCUMENT_ROOT      $document_root;<br />
fastcgi_param  SERVER_PROTOCOL    $server_protocol;</p>
<p>fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;<br />
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;</p>
<p>fastcgi_param  REMOTE_ADDR        $remote_addr;<br />
fastcgi_param  REMOTE_PORT        $remote_port;<br />
fastcgi_param  SERVER_ADDR        $server_addr;<br />
fastcgi_param  SERVER_PORT        $server_port;<br />
fastcgi_param  SERVER_NAME        $server_name;</p>
<p># PHP only, required if PHP was built with &#8211;enable-force-cgi-redirect<br />
fastcgi_param  REDIRECT_STATUS    200;<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oioq.com/weblog/20090910/nginx%e6%94%af%e6%8c%81ci%e9%87%8d%e5%86%99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
