windows nginx-php 설치

2023. 11. 5. 18:10웹/백엔드-php

728x90
반응형

nginx 설치

https://nginx.org/en/download.html

 

nginx: download

 

nginx.org

위 사이트로 이동후 다운로드 후 압축해제 후 원하는 폴더로 이동

nginx 설치된 폴더로 cmd창을 열어 "nginx"명령어 입력하면 구동 시작.

php 8 설치

https://www.php.net/downloads

 

PHP: Downloads

Current Stable PHP 8.2.12 (Changelog) php-8.2.12.tar.gz (sig) [18,670Kb] 26 Oct 2023 b2b74a91f5fac14ce10ece0ac210f6f5d72f4367a3cb638e80d117d183750a21 php-8.2.12.tar.bz2 (sig) [14,997Kb] 26 Oct 2023 704325f56b1b4c17f9f951e1ffef5c64e148896053f34e2626152cbaa2

www.php.net

위에 페이지로 간 다음, winodws downloads 클릭하여 사이트 이동 되면 " Thread Safe로 다운받아서 실행 함."

 

압축 해제 후 php8버전 이름으로 폴더 이름 변경후 C에 옮긴 후에 "시스템 환경 변수"에 경로 지정을 해줌.

해주는 김에 nginx도 경로 설정 해줌.

파워셀에선 ".\"을 붙여서 실행해야 함.

 

 

 

설치 후 버전 확인::

 

 

참고사이트:

https://citronbanana.tistory.com/97

 

[Nginx] Nginx 설치 및 구동 (Windows 버전)

Windows 버전은 불완전 버전이다(2022.1.1 기준) Version of nginx for Windows uses the native Win32 API (not the Cygwin emulation layer). Only the select() and poll() (1.15.9) connection processing methods are currently used, so high performance a

citronbanana.tistory.com

https://harrydony.tistory.com/665

 

Windows에 nginx 설치해서 사용하는 방법

nginx설치 사이트 : http://nginx.org/en/download.html [ nginx: download nginx.org ](http://nginx.org/en/download.html) C: 에 압축 해제를 한다. 압축해제된 nginx-1.8.1 디렉토리로 들어가보면 nginx.exe 파일이 있다. 더블클릭

harrydony.tistory.com

https://www.youtube.com/watch?v=DKXdkXCgtCQ

https://nginx.org/en/docs/switches.html

 

Command-line parameters

Command-line parameters nginx supports the following command-line parameters: -? | -h — print help for command-line parameters. -c file — use an alternative configuration file instead of a default file. -e file — use an alternative error log file

nginx.org

 

반응형

' > 백엔드-php' 카테고리의 다른 글

변수  (0) 2023.11.05
PHP 페이지에 HTML과 PHP 코드를 혼합하는 방법  (0) 2023.11.05