Example Configuration:例子配置文件Directives 指令 index 首页 The ngx_http_index_module module processes requests ending with the slash character (‘/’). Such requests can also be processed by the ngx_http_autoindex_module and ngx_http_random_index_module m
(1) 下载并安装nginx mkdir nginx-src && cd nginx-src wget http://nginx.org/download/nginx-1.7.3.tar.gz tar xzf nginx-1.7.3.tar.gz cd nginx-1.7.3 ./configure --prefix=/home/cyw/tools/nginx/source make make install 其中,--prefix表示了安装的目录.就像在window中选择安装文件的路径一