nginx 설치
설치 패키지 다운로드
http://nginx.org/en/download.html 최신 nginx-1.9.6.tar.gz 다운로드
centos 7 /usr/local에 넣습니다
tar -zxvf nginx-1.9.6.tar.gz 압축 해제
nginx 디렉터리 생성 mkdir /usr/local/nginx
압축 해제 디렉터리 입력 cd /usr/local/nginx-1.9.6
설치 nginx
다음으로 설치, --prefix 매개변수를 사용하여 nginx가 설치된 디렉터리를 지정하고 make install 설치를 만듭니다.
./configure $기본 설치 위치는 /usr/local/nginx
오류가 있는 경우 팁: ./configure: error: HTTP 캐시 모듈은 OpenSSL 라이브러리에서 md5 함수를 요구합니다
를 사용하여 모듈을 비활성화할 수 있습니다. --without-http-cache 옵션을 사용하거나 OpenSSL 라이브러리를 시스템에 설치하거나
또는
--with-http_ssl_module --with-openssl=<를 사용하여 nginx를 사용하여 소스에서 정적으로 OpenSSL 라이브러리를 빌드합니다. 경로> 옵션.
해결책:
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/usr/local/nginx
설치 계속
만들기
설치하기
다시 로드
위 내용은 필수 내용을 포함하여 centos7에 nginx를 설치하는 방법을 소개하고 있으니 PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되었으면 좋겠습니다.