openresty 编译安装

./configure –c.

./configure –conf-path=/etc/nginx/nginx.conf –sbin-path=/usr/sbin/nginx –error-log-path=/home/logs/nginx/error.log –http-log-path=/home/logs/nginx/access.log –pid-path=/home/logs/nginx/nginx.pid –with-http_image_filter_module

make -j2

#安装并打包成deb文件,以便其它机器安装, 此打包方法不含配置文件, 需要解压DEB包后手动编辑control文件加入

checkinstall -D make install

dpkg-deb –extract nginx.deb nginx

dpkg-deb –control nginx.deb

mv DEBIAN nginx/

#修改….

dpkg -b nginx nginx_new.deb