linux下安装nginx

  1. 下载:http://nginx.org/en/download.html   
  2. 解压:tar -zxvf nginx-1.12.2.tar
  3. ./configure
  4. 根据错误提示安装以下文件
  5. yum -y install gcc gcc-c++ autoconf automake
  6. yum -y install pcre pcre-devel
  7. yum -y install zlib zlib-devel
  8. ./configure成功后
  9. make
  10. make install
  11. 查看是否安装完成 cd /usr/local目录下是否有nginx
posted @ 2017-11-28 15:26  ybyi  阅读(120)  评论(0编辑  收藏  举报