TFS模块使用了一个开源的JSON库来支持JSON,请先安装yajl-2.0.1。
wget https://codeload.github.com/lloyd/yajl/legacy.zip/2.1.0
mv 2.1.0 yajl-2.1.0.zip
unzip yajl-2.1.0.zip
cd lloyd-yajl-66cb08c/
./configure
make
make install
升级或者安装nginx
wget https://codeload.github.com/alibaba/nginx-tfs/zip/master
mv master nginx-tfs-master.zip
unzip nginx-tfs-master.zip
查看现有nginx编译参数 nginx -V
升级
./configure --add-module=/opt/nginx-tfs(nginx-tfs目录)
make
cp objs/nginx/nginx /opt/modules/nginx/sbin
转载于:https://blog.51cto.com/pencild/1441049