<?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; bordfServer</title>
	<atom:link href="http://blog.bordf.com/category/server/bordfserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bordf.com</link>
	<description>这个世界注定有人比自己更高，更强，更好，这是不争的事实，但我不能因此而放弃奔跑！有时候贪图安逸、总为以后着想，往往扼杀了 腾飞的 希望！</description>
	<lastBuildDate>Thu, 19 Aug 2010 14:47:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>liunx下配置nginx 环境加php fastcgi 环境－－此文写于ubuntu 系统下</title>
		<link>http://blog.bordf.com/236/</link>
		<comments>http://blog.bordf.com/236/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 10:02:20 +0000</pubDate>
		<dc:creator>bordf</dc:creator>
				<category><![CDATA[bordfServer]]></category>

		<guid isPermaLink="false">http://www.bordf.com.cn/?p=236</guid>
		<description><![CDATA[1.安装Nginx，执行以下命令
sudo apt-get install nginx
2.安装PHP，这里PHP要用CGI模式运行，所以要安装php-cgi
sudo apt-get install php5-cgi
php.ini的位置 /usr/bin/cgi/php.in
同时，修改php.ini文件的cgi.fix_pathinfo数据为1，默认为0 cgi.fix_pathinfo=1; 这样php-cgi方能正常使用SCRIPT_FILENAME这个变量。
3.安装spawn-fcgi spawn-fcgi是lighttpd的一个用来控制php-cgi的工具，如果系统没有安装GCC编译环境，刚需要在安装lighttpd之前要安装build-essential工具包，安装命令如下
sudo apt-get install build-essential
wget http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz
tar -xvf lighttpd-1.4.19.tar.gz
cd lighttpd-1.4.19/
sudo apt-get install libpcre3-dev
./configure –without-zlib –without-bzip2
make
sudo cp src/spawn-fcgi /usr/local/bin/spawn-fcgi
至此，安装工作算是基本结束了。但是现在还不能用，必须对相关程序进行配置才能达到我们的要求。配置如下
1.配置Nginx的default文件，该文件默认位置在 /etc/nginx/sites-enable/default ，用编辑器打开，可以看到已经有了php的相关配置，只是可能部分没有根据我们的实际情况来配置，并且都是注释的，SO，按照如下形式修改
server {
　　listen 80;
　　server_name localhost;
　　access_log /var/log/nginx/localhost.access.log;
　　location / {
　　root /var/www/nginx-default;
　　index index.php;
　　}
　　#error_page 404 /404.html;
　　# redirect server error pages to the static page /50x.html
　　#
　　error_page 500 502 503 504 /50x.html;
　　location = /50x.html {
　　root [...]]]></description>
		<wfw:commentRss>http://blog.bordf.com/236/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>bordfServer绿色组件包首版发布集成nginx+php+mysql+phpmyadmin（windows环境）</title>
		<link>http://blog.bordf.com/228/</link>
		<comments>http://blog.bordf.com/228/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 05:25:20 +0000</pubDate>
		<dc:creator>bordf</dc:creator>
				<category><![CDATA[bordfServer]]></category>

		<guid isPermaLink="false">http://www.bordf.com.cn/?p=228</guid>
		<description><![CDATA[nginx [engine x] 是由 Igor Sysoev开发的一个HTTP 服务器和mail 代理服务器软件
Nginx 因其稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。Nginx 超越Apache的高性能和稳定性，使得国内使用 Nginx 作为 Web 服务器的网站也越来越多，其中有新浪、网易、腾讯等门户网站，六间房、酷6等视频分享网站，Discuz!、水木社区等知名论坛，豆瓣、YUPOO等新兴 Web 2.0网站。
这个是我自己编写的集成nginx+php+mysql+phpmyadmin基于windows环境下的一键服务组件包.
解压缩到D:\server 中
然后运行bat中相应文件 进行管理 
setup.bat 安装组件包到系统中
unsetup.bat 干净卸载
start.bat  首次安装后 可以使用这个启动所有服务
stop.bat   首次安装后 可以使用这个关闭所有服务
http://localhost/phpmyadmin/ 为 phpmyadmin 地址
账号root 密码为空
注意修改密码~ 
组件包中包含：nginx-0.8.4 、php-5.2.10-Win32 、mysql-noinstall-5.0.22-win32 与phpMyAdmin-3.1.2 . 附带discuz的 rewrite 规则！ 方便调试使用~
网站放在doc里就可以了 需要改路径的，自己看nginx的 配置文件去，或者访问http://www.bordf.com.cn 查询相关资料。致力推广nginx在windows上的应用！
此版本为初级使用版本。版本号0702 
下一个版本需要修改的地方很多
下一步要解决php-cgi 的屏幕显示 (已经写了个小程序把他变相加进了服务中去~ 程序是C#写的，服务器得支持.NET2.0) 
然后 写个控制面板 能够自由修改组件包的放置路径~
组件包可以自由修改 ，欢迎到我的博客  http://www.bordf.com.cn 交流 [...]]]></description>
		<wfw:commentRss>http://blog.bordf.com/228/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Nginx 使用在windows下的配置备忘录</title>
		<link>http://blog.bordf.com/214/</link>
		<comments>http://blog.bordf.com/214/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 08:58:28 +0000</pubDate>
		<dc:creator>bordf</dc:creator>
				<category><![CDATA[bordfServer]]></category>

		<guid isPermaLink="false">http://www.bordf.com.cn/?p=214</guid>
		<description><![CDATA[nginx [engine x] 是由 Igor Sysoev开发的一个HTTP 服务器和mail 代理服务器软件
Nginx 因其稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。Nginx 超越Apache的高性能和稳定性，使得国内使用 Nginx 作为 Web 服务器的网站也越来越多，其中有新浪、网易、腾讯等门户网站，六间房、酷6等视频分享网站，Discuz!、水木社区等知名论坛，豆瓣、YUPOO等新兴 Web 2.0网站。
所以我也打算给我手上的服务器们都换上这个。首先解决使用fastcgi的办法去完成php。
下载后直接运行 nginx.exe 就可以开启nginx机制，提供web服务了
需要注意的是要在服务中加上他的 自动启动~
sc create nginx binpath= &#8220;C:\nginx\nginx.exe&#8221;  start= auto displayname= &#8220;bordfServer_nginx&#8221;
sc description nginx &#8220;nginx提供bordfServer中的web服务，bordf制作 欢迎访问www.bordf.com.cn&#8221;
加服务不好用的 就这样干：
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
假设nginx安装在c:\nginx\下:
1.下载微软服务注册工具srvany.exe, instsrv.exe, srvany-instsrv存放到c:\nginx\目录下
2.安装Nginx服务, 将命令行切换到c:\nginx\,执行下列命令
instsrv NGINX c:\nginx\srvany.exe
3.在c:\nginx\下,新建一个nginx.reg文件，输入一下内容：
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NGINX\Parameters]
“Application”=”C:\\nginx\\nginx.exe”
“AppParameters”=”&#8221;
“AppDirectory”=”C:\\nginx\\”
5.让服务与程序关联起来, 命令行执行
regedit /s nginx.reg
6.编辑启动nginx脚本start-nginx.bat(关闭脚本不用变), 让程序以服务方式运行
@ECHO OFF
net stop nginx
net start nginx
EXIT
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
然后修改nginx配置！加载php fastcgi
我使用的 是php-5.2.10-Win32
修改php.ini-dist 为php.ini 打开去掉某些常用的DLL的注释
extension=php_mcrypt.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_gd2.dll
extension_dir = [...]]]></description>
		<wfw:commentRss>http://blog.bordf.com/214/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql绿色(mySql-noinstall)配置使用以及在windows下的安装、设置与启动方法</title>
		<link>http://blog.bordf.com/205/</link>
		<comments>http://blog.bordf.com/205/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 03:21:15 +0000</pubDate>
		<dc:creator>bordf</dc:creator>
				<category><![CDATA[bordfServer]]></category>

		<guid isPermaLink="false">http://www.bordf.com.cn/?p=205</guid>
		<description><![CDATA[我使用的是mysql-noinstall-5.0.22-win32
解压到一个目录去，这个就是mysql的 目录了~
然后就是该删除的删除，精简下，有很多其实是用不到的 ~
第一点：
my-small.ini （内存 &#60;= 64M）
my-medium.ini （内存 128M ）
my-large.ini （内存 512M）
my-huge.ini （内存 1G-2G）
my-innodb-heavy-4G.ini （内存 4GB）
对应自己的配置，自己选择下，我的是my-innodb-heavy-4G.ini，其他的就删除吧~   然后重命名成my.ini.
第二点：
编辑my.ini，在[mysqld]的“port=3306”下面增加如下几句：
# 安装目录的路径
basedir=&#8221;XXXXXXXXXXXXXX&#8221;
# 设置mysql数据库的数据的存放目录
datadir=&#8221;XXXXXXXXXXXXXXXXXX&#8221;
# 设置mysql数据库搜索引擎
default-storage-engine=innodb
注意，在Windows中路径名中使用斜杠“/”而不是反斜杠“\”。 如果使用反斜杠“\”，那么必须双写它们“\\”。 还要注意一定是放到[mysqld]下的！
在[mysql]下面新增：
# 设置mysql服务器的字符集
default-character-set = utf8
修改以下几句：
#max_allowed_packet 参数说明：用来控制其通信缓冲区的最大长度。
max_allowed_packet = 128M
#sort_buffer_size 参数说明：查询排序时所能使用的缓冲区大小。注意：该参数对应的分配内存是每连接独占！
如果有100个连接，那么实际分配的总共排序缓冲区大小为100 × 6 ＝ 600MB。
所以，对于内存在4GB左右的服务器推荐设置为6-8M。
sort_buffer_size =6M  （4G的my.ini中这些数值好像很大.默认512M的&#8230; 按照计算的话，内存全都给MYSQL给占了，先修改成6M的吧，如果不行，再修改呗。6M和512M也差太多了吧&#8230; 汗&#8230; ）
第三点：安装服务
cmd：
cd到 mysql的安装路径下的bin里
mysqld-nt  –install Mysql –defaults-file=&#8221;mysql安装路径\my.ini&#8221;  指定服务与配置文件
–install Mysql – 为安装的 服务名称
简单安装服务办法：mysqld-nt &#8211;install
这样用默认的 MySQL 为名称添加了一个windows服务
sc delete 服务名称   可以删除服务  比如：sc delete Mysql
mysqld-nt [...]]]></description>
		<wfw:commentRss>http://blog.bordf.com/205/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx+php+mysql应用于windows服务器组件包_bordfServer制作计划</title>
		<link>http://blog.bordf.com/202/</link>
		<comments>http://blog.bordf.com/202/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 03:11:23 +0000</pubDate>
		<dc:creator>bordf</dc:creator>
				<category><![CDATA[bordfServer]]></category>

		<guid isPermaLink="false">http://www.bordf.com.cn/?p=202</guid>
		<description><![CDATA[一直以来都是使用的组件包，很推崇amps
最近几年nginx开始流行，个人感觉也不错，所以决定自己写个组件包来使用~
因为只会使用windows服务器，所以使用windows版本的nginx
最初的版本上 只会加载 php（fast cgi）以及mysql5.0
当然我会写好rewrite 规则，因为，我自己会用到的！
phpMyAdmin-3.1.2也会被安装进去的~
开始行动，使用mysql5.022作为数据库。
nginx使用nginx-0.8.4版本
开始行动！
]]></description>
		<wfw:commentRss>http://blog.bordf.com/202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
