下載相應版本的nginxnginx
解壓進入該版本的目錄下spa
在命令行執行 命令行
./configure --with-cc-opt="-Wno-deprecated-declarations" --without-http_rewrite_modulecode
--with-cc-opt=
"-Wno-deprecated-declarations" --
執行 make it
執行 make installio
執行 sudo /usr/local/nginx/sbin/nginxmodule