본문 바로가기

Web_Application

[nginx]10013: An attempt was made to access a socket in a way forbidden by its access permissions



2017/01/12 09:01:41 [emerg] 7444#9312: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

80포트가 점유 상태 일 때

확인

D:\dev\nginx-1.11.6>netstat -ano |find /i "listening"|find /i ":80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP [::]:80 [::]:0 LISTENING 4


뒤에 4 번이 PID 프로세스 번호 입니다.

4번 프로세스를 중지시키면 80포트 점유가 풀립니다.

C:\Windows\system32>tasklist | find /i "4 Services"
이미지 이름 PID 세션 이름 세션# 메모리 사용
========================= ======== ================ =========== ============
System 4 Services 0 12,876 K
smss.exe 424 Services 0 348 K
svchost.exe 504 Services 0 14,896 K
svchost.exe 1884 Services 0 2,260 K
I3GMainSvc.exe 2244 Services 0 1,520 K
IpOverUsbSvc.exe 2604 Services 0 3,048 K
remoting_host.exe 2624 Services 0 1,424 K
svchost.exe 9084 Services 0 1,680 K
svchost.exe 12184 Services 0 5,384 K


system 이 점유 상태에 있습니다.

해당 프로세스를 작업관리자에서 중단 시키면 점유가 풀립니다.