安装依赖库:

sudo apt-get install libgd2-xpm
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libgeoip-dev
sudo apt-get install libpcre3
sudo apt-get install libpcre3-dev
sudo apt-get install libssl-dev
sudo apt-get install openssl
sudo apt-get install libxslt-dev

编译配置:

./configure \
--prefix=/data/service/nginx \
--sbin-path=/data/service/nginx/sbin/nginx \
--conf-path=/data/service/nginx/conf/nginx.conf \
--pid-path=/data/service/nginx/logs/nginx.pid \
--lock-path=/data/service/nginx/lock/nginx.lock \
--error-log-path=/data/service/nginx/logs/error.log \
--http-log-path=/data/service/nginx/logs/access.log \
--http-scgi-temp-path=/data/service/nginx/scgi \
--http-uwsgi-temp-path=/data/service/nginx/uwsgi \
--http-proxy-temp-path=/data/service/nginx/proxy \
--http-fastcgi-temp-path=/data/service/nginx/fastcig \
--http-client-body-temp-path=/data/service/nginx/body \
--user=www-data \
--group=www-data \
--with-ipv6 \
--with-debug \
--with-file-aio \
--with-rtsig_module \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_xslt_module \
--with-http_geoip_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_gzip_static_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_random_index_module \
--with-http_image_filter_module

编译安装:

make && make install

最新文章

  1. typeof和instanceof
  2. Codeforces Round #389 Div.2 B. Santa Claus and Keyboard Check
  3. JAVA的Date类与Calendar类【转】
  4. Qt中通过ui怎么引用不了pushbutton呢? 原来是这样…
  5. document.cookie打不出来cookies
  6. c#中操作word文档-一、模板方式写入
  7. iTiTa再次回归,这一年我们都在干什么?
  8. CENTOS6上禁用IPV6和DHCP
  9. 【转】Qt 事件处理机制 (下篇)
  10. 02_IO操作的基本规律(InputStream,OutputStream,Reader,Writer,FileReader,FileWriter,BufferedReader,BufferedWri
  11. ubuntu 16.04 更改默认Python版本
  12. Spring Boot Actuator [监控与管理]
  13. Error merging: refusing to merge unrelated histories
  14. React中的的JSX
  15. 项目经验总结-twice
  16. Python基础 - 系统进程调用
  17. Codeforces Round #283 (Div. 2) B. Secret Combination 暴力水题
  18. [转]Web 调试工具之 Advanced REST client
  19. js中字符串全部替换
  20. ACM数学

热门文章

  1. 爱快AP-H1使用方法及排错
  2. lvm 新建一个vg 逻辑卷 配置启动
  3. VMware 14 Pro 安装 CentOS 7
  4. Windoows窗口程序一
  5. openfire 详细介绍一
  6. Read from socket failed: Connection reset by peer 问题
  7. bowtie2-inspect 根据bowtie2的索引取得fasta 序列
  8. asp.net mvc清空指定cookies
  9. 属性编辑器,即PropertyEditor-->Spring IoC
  10. centos7下配置免密码登录