安装nginx及fastdfs-nginx-module
sudo ./configure --prefix=/usr/local/nginx/ --add-module=/home/ling/fastdfs-nginx-module-master/src
# = 后边为fastdfs-nginx-module-master解压后的目录的绝对路径/src
报错:./configure: error: the HTTP rewrite module requires the PCRE library.
安装Nginx时需要先安装依赖包,Ubuntu中不像centOS等使用yum直接在线安装,在网上找了好多方法,最后发现以下方法好用:
首先使用dpkg命令查看自己需要的软件是否安装。
例如查看zlib是否安装:
dpkg -l |