centos6.5 Ngnix安装

  1. 安装Nginx依赖包
yum install -y pcre pcre-devel
yum install -y openssl openssl-devel
yum install gcc-c++
yum install gd-devel //图片处理模块需要
  1. 获取nginx
    http://nginx.org/en/download.html上可以获取当前最新的版本。
wget http://101.96.8.164/nginx.org/download/nginx-1.12.1.tar.gz

解压缩nginx-xx.tar.gz包。
tar -zxvf nginx-1.12.1.tar.gz
进入解压缩目录
cd nginx-1.12.1/
执行 开启图片过滤 需要安装gd库

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_image_filter_module
make
make install
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容