ubuntu 20 nginx 설치

1076 단어 nginx
소스 코드 설치
~/app/nginx/nginx-1.16.1
실행:
configure sudo. / configure -- prefix = / usr / nginx 최종 출력: 구성 요약
  • using system PCRE library
  • OpenSSL library is not used
  • using system zlib library

  • nginx path prefix: “/usr/nginx” nginx binary file: “/usr/nginx/sbin/nginx” nginx modules path: “/usr/nginx/modules” nginx configuration prefix: “/usr/nginx/conf” nginx configuration file: “/usr/nginx/conf/nginx.conf” nginx pid file: “/usr/nginx/logs/nginx.pid” nginx error log file: “/usr/nginx/logs/error.log” nginx http access log file: “/usr/nginx/logs/access.log” nginx http client request body temporary files: “client_body_temp” nginx http proxy temporary files: “proxy_temp” nginx http fastcgi temporary files: “fastcgi_temp” nginx http uwsgi temporary files: “uwsgi_temp” nginx http scgi temporary files: “scgi_temp”
  • make
  • make install

  • 예외 처리
  • ./configure: error: the HTTP rewrite module requires the PCRE library
     sudo apt-get install libpcre3  libpcre3-dev
    
  • 좋은 웹페이지 즐겨찾기