nginx的编译----ubuntu

nginx的编译

  • wget http://nginx.org/download/nginx-1.18.0.tar.gz && tar -zxf nginx-1.18.0.tar.gz && cd nginx-1.18.0
  • 关键词换皮肤cp -r contrib/vim/* ~/.vim
  • ./configure --prefix=your/path
  • 处理报错: ./configure: error: C compiler cc is not found
    • apt install gcc
  • 处理报错: the HTTP rewrite module requires the PCRE library
    • apt install libpcre3 libpcre3-dev
  • 处理报错: the HTTP gzip module requires the zlib library.
    • apt install zlib1g-dev
  • /configure --prefix=your/path
  • make && make install

PS:我的公众号地址

nginx的编译----ubuntu