nginx编译安装

  • 编译安装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

posted @ 2018-03-01 10:37  xgmxm  阅读(151)  评论(0编辑  收藏  举报