首先我们想git下,Ngx-Fancyindex模块 git clone https://github.com/aperezdc/ngx-fancyindex.git ls cd ngx-fancyindex pwd 进入模块目录pwd 查看路径 进入nginx中编译模块 进入你的nginx根目录 ./configure --prefix=/usr/local/nginx