nginx 安装

一、

  1、安装nginx 先要安装 pcre正则表达库

  2、安装pcre前需要有gcc环境,不然会出现

  

  错误

 

 二、安装gcc

   

  1. sudo apt-get  build-dep  gcc  

 

  2、安装pcre:

  下载:  wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz

  ./configure

  make

  make install

  3、安装

  sudo apt-get install openssl libssl-dev

  4、安装nginx

  #启动nginx:(-h 查询命令)

  sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 

posted on 2018-02-09 11:32  Legend_yan  阅读(147)  评论(0编辑  收藏  举报