nginx安装第三方模块
Nginx安装其他模块
安装fastdfs
准备环境
解压
tar -zxvf fastdfs-6.06.tar.gz
tar -zxvf fastdfs-nginx-module-1.22.tar.gz
tar -zxvf libfastcommon-1.0.43.tar.gz
安装fastdfs环境
cd ~/fastdfs-6.06
/make.sh
/make.sh install
安装common
cd ~/libfastcommon-1.0.43
/make.sh
/make.sh install
进入nginx的解压目录
cd ~/nginx-1.16.1
./configure --add-module=/opt/nginx_modules/fastdfs-nginx-module-1.22/src --with-http_stub_status_module --with-http_ssl_module
make
make install
把fastdfs中的2个文件http.conf和mime.types
复制到/etc/fdfs/目录中
把fastdfs-nginx-module-1.22中的mod_fastdfs.conf
也复制到/etc/fdfs/目录中
修改mod_fastdfs.conf中的内容