[Dreamhai - 친 측] Ubuntu 16.04.1 Nginx 설치
Nginx (engine x) 는 고성능 HTTP 와 역방향 프 록 시 서버 이자 IMAP / POP 3 / SMTP 프 록 시 서버 이다.Nginx 는 Igor Sysoev 가 러시아 방 문 량 2 위인 Rambler. ru 사이트 에서 개발 한 것 으로 첫 번 째 공개 버 전 0.1.0 은 2004 년 10 월 4 일 발표 됐다.이 는 소스 코드 를 클래스 BSD 라이선스 형식 으로 발표 하 는데 안정성, 풍부 한 기능 집합, 예시 설정 파일 과 낮은 시스템 자원 의 소모 로 유명 하 다.
Nginx 의존 라 이브 러 리 설치
 
            
            # 1.  gcc g++    
      #A.Ubuntu    
          >> apt-get install build-essential
          >> apt-get install libtool
      #B.Centos    
          #1).  make
          >> yum -y install gcc automake autoconf libtool make
          #2).  g++
          >> yum install gcc gcc-c++ 
   
  # 2.   pcre   (http://www.pcre.org/)
      >> sudo apt-get update
      >> sudo apt-get install libpcre3 libpcre3-dev
  
  # 3.   zlib   (http://www.zlib.net)
      >> apt-get install zlib1g-dev
      
  # 4.   ssl   
      >> apt-get install openssl
  
Nginx 설치 (http://nginx.org) 
   
            
            #       :
      >> wget http://.org/download/-1.11.3.tar.gz
  #   :
      >> tar -zxvf -1.11.3.tar.gz
  #       :
      >> cd -1.11.3
  #   :
      >> ./configure --prefix=/usr/local/ 
  #   :
      >> make
  #   :       ,  “pcre.h No such file or directory”,    :http://stackoverflow.com/questions/22555561/error-building-fatal-error-pcre-h-no-such-file-or-directory
  #      libpcre3-dev,   :sudo apt-get install libpcre3-dev
  #   :
      >> sudo make install
  #  :
      >> sudo /usr/local//sbin/ -c /usr/local//conf/.conf
  #   :-c          ,    ,              ,     -h      。
  #    :
      >> ps -ef|grep 
  
Nginx 상용 명령
   
            
            #    
      >> /usr/local//sbin/
      >> ./sbin/ 
  #    
      >> ./sbin/ -s stop
      >> ./sbin/ -s quit
  # -s              。
  #       
      >> ./sbin/ -s reload
  #       
      >> ./sbin/ -c /usr/local//conf/.conf
  # -c  configuration,      
  #       
  #                  。     :
      >> ./sbin/ -v
      :  version: /1.0.0
  #               :
      >> ./sbin/ -V
      :  version: /1.0.0
      : built by gcc 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
      : TLS SNI support enabled
      : configure arguments: --with-http_ssl_module --with-openssl=/home/luming/openssl-1.0.0d/
  #           
      >> ./sbin/ -t
      : [alert] could not open error log file: open() "/usr/local//logs/error.log" failed (13: Permission denied)
      : the configuration file /usr/local//conf/.conf syntax is ok
      2012/01/09 16:45:09 [emerg] 23898#0: open() "/usr/local//logs/.pid" failed (13: Permission denied)
      : configuration file /usr/local//conf/.conf test failed
  #            ,               ,  sudo(super user do)  :
      >> sudo ./sbin/ -t
      : the configuration file /usr/local//conf/.conf syntax is ok
      : configuration file /usr/local//conf/.conf test is successful
  #       ,         。  ,      。
  #       
      >> ./sbin/ -h
  #   :
      >> ./sbin/ -?
                이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
바이너리 파일cat 또는tail, 터미널 디코딩 시 처리 방법cat으로 바이너리 파일을 보려고 할 때 코드가 엉망이 되어 식은땀이 났다. 웹에서 스크롤된 정보의 처리 방법과alias의 설정을 요약합니다. reset 명령을 사용하여 터미널을 재설정합니다.이렇게 하면 고치지 못하...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.