Mac 에서 전단 프로젝트 를 알 리 클 라 우 드 centos (nginx 서비스) 에 배치 합 니 다.

1561 단어 centosnginxmacos
  • 로 컬 터미널 입력 ssh -l root ip
  • 비밀번호 입력
  • nginx 서비스 설치 에 필요 한 환경 A. yum install gcc-c++ B. yum install -y pcre pcre-devel C. yum install -y zlib zlib-devel D. yum install -y openssl openssl-devel E. wget -c https://nginx.org/download/nginx-1.12.0.tar.gz (wget 이 설치 되 어 있 지 않 으 면 사용 yum install wget 설치)
  • 스트레스 해소 tar -zxvf nginx-1.12.0.tar.gz cd nginx-1.12.0
  • nginx 설정 기본 설정 사용 ./configure
  • 컴 파일 설치 make make install
  • nginx 설치 디 렉 터 리 보기: whereis nginx
        nginx:
    cd /usr/local/nginx/sbin/
    ./nginx 
    ./nginx -s stop
    ./nginx -s quit
    ./nginx -s reload
        :   ,  80     
        :
        net-tool  :yum install net-tools
        ps aux|grep nginx    
         nginx    , quit   nginx
             , sill pid     
          80      ,        nginx     :
      cd /usr/local/nginx/conf/
      vi nginx.conf   
        i,      
        80 83       
      esc      :wq            
        nginx  
      ./nginx -s quit
      ./nginx
    nginx        :
        listen 83;
        server_name localhost;
        location / {
            root         ( :/data/html/);
            index  index.html;
        }
              :
        location /system {
            alias        ( :/data/html-sys/);
            index  index.html;
        }

    참고:
    https://www.cnblogs.com/boony...

    좋은 웹페이지 즐겨찾기