码迷,mamicode.com
首页 > 其他好文 > 详细

nginx编译安装

时间:2018-03-01 11:42:57      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:bzip   ref   dev   curl   sbin   use   amp   nbsp   curses   

  • 编译安装pcre

tar -xf pcre-8.36.tar.gz

cd pcre-8.36

./configure

make && make install

  • echo模块

unzip echo-nginx-module-master.zip

  • 编译安装nginx

useradd -M -s /sbin/nologin www

./configure --user="www" --group="www" --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --with-pcre=/opt/tools/pcre-8.36 --add-module=/opt/tools/echo-nginx-module-master

make && make install

  • 总结

nginx编译安装依赖

  yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers make
  yum -y install gd gd2 gd-devel gd2-devel

更多nginx编译参数详解

  查看Nginx教程从入门到精通(运维生存时间TTLSA出品).pdf

nginx编译安装

标签:bzip   ref   dev   curl   sbin   use   amp   nbsp   curses   

原文地址:https://www.cnblogs.com/hanxiaohui/p/8487246.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!