### nginx在windows上的安裝
寫一下簡單的安裝方法
1.下載軟件
需要的軟件有nginx,php,mysql(如不需要可不安裝)
nginx.org,[www.php.net](http://www.php.net/)上面有得下
全部解壓出來
php基本不用做任何修改(下載直接解壓版本的)
2.配置nginx
只需修改一行(nginx/conf/nginx.conf)
```
??fastcgi_param??SCRIPT_FILENAME??d:/nginx/html/$fastcgi_script_name;
```
找到大概這一行修改路徑最好是絕對路徑(相對路徑可以自行探討)
3.運行軟件
先運行php
程序》運行》cmd
到php所在目錄運行下面代碼
```
php-cgi.exe -b 127.0.0.1:9000 -c php\php.ini
```
再運行nginx
到nginx所在目錄
```
nginx.exe -c conf\nginx.conf
```
這樣就ok了。
win下可以使用NPMserv更強大
by afen.cn
- 主要文檔
- Nginx功能概述
- 為什么選擇Nginx
- Nginx安裝
- 運行和控制Nginx
- 配置符號參考
- 優化 Nginx
- 常見問題(FAQ)
- 調試 nginx
- 核心模塊
- Nginx主模塊
- Nginx事件模塊
- 基本模塊
- http核心模塊
- HttpIndex模塊
- HttpAccess模塊
- HttpAuthBasic模塊
- HttpAutoindex模塊
- Browser模塊
- Charset模塊
- HttpEmptyGif模塊
- HttpFcgi模塊
- Geo模塊
- HttpGzip模塊
- HttpHeaders模塊
- HttpIndex模塊
- HttpReferer模塊
- HttpLimit zone
- HttpLimitReqest模塊
- HttpLog模塊
- map
- Memcached
- HttpProxy模塊
- HttpRewrite模塊
- HttpSSI模塊
- HttpUserId
- 其他模塊
- Addition模塊
- EmbeddedPerl
- flv
- HttpGzipStatic
- RandomIndex
- HttpGeoIP
- HttpRealIp
- HttpSSL
- StubStatus模塊
- HttpSubstitution
- HttpDav模塊
- GooglePerftools
- HttpXSLT
- HttpSecureLink
- HttpImageFilter
- mail模塊
- MailCore
- MailAuth
- MailProxy
- MailSSL
- 安裝
- nginx在windows上的安裝
- nginx在freebsd上的安裝
- nginx在ubuntu上的安裝
- nginx在fedora上的安裝
- nginx php-fpm安裝配置
- 配置示例和方法
- 完整例子
- 完整例子2
- 虛擬主機
- 負載均衡
- nginx防盜鏈
- HWLoadbalancerCheckErrors