nginx windwos 관련 조작
nginx for Windows
Known issuesPossible future enhancements
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 and scalability should not be expected. Due to this and some other known issues version of nginx for Windows is considered to be a beta version. At this time, it provides almost the same functionality as a UNIX version of nginx except for XSLT filter, image filter, GeoIP module, and embedded Perl language. To install nginx/Windows, download the latest mainline version distribution (1.17.3), since the mainline branch of nginx contains all known fixes. Then unpack the distribution, go to the nginx-1.17.3 directory, and run
nginx
. Here is an example for the drive C: root directory: cd c:\
unzip nginx-1.17.3.zip
cd nginx-1.17.3
start nginx
Run the
tasklist
command-line utility to see nginx processes: C:
ginx-1.17.3>tasklist /fi "imagename eq nginx.exe"
Image Name PID Session Name Session# Mem Usage
=============== ======== ============== ========== ============
nginx.exe 652 Console 0 2 780 K
nginx.exe 1332 Console 0 3 112 K
One of the processes is the master process and another is the worker process. If nginx does not start, look for the reason in the error log file
logs\error.log
. If the log file has not been created, the reason for this should be reported in the Windows Event Log. If an error page is displayed instead of the expected page, also look for the reason in the logs\error.log
file. nginx/Windows uses the directory where it has been run as the prefix for relative paths in the configuration. In the example above, the prefix is
C:
ginx-1.17.3\
. Paths in a configuration file must be specified in UNIX-style using forward slashes: access_log logs/site.log;
root C:/web/html;
nginx/Windows runs as a standard console application (not a service), and it can be managed using the following commands:
nginx -s stop
fast shutdown
nginx -s quit
graceful shutdown
nginx -s reload
changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen
re-opening log files
Known is
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.