본문 바로가기

ETC

[LINUX] 초기 설정으로 80포트 사용 시 나오는 에러

728x90

https://askubuntu.com/questions/338218/why-am-i-getting-permission-denied-make-sock-could-not-bind-to-address-when

 

Why am I getting "Permission denied: make_sock: could not bind to address" when starting Apache2?

I can stop it using /etc/init.d/apache2 stop But when I want to start it again using: /etc/init.d/apache2 start I get this error: Starting web server apache2 ...

askubuntu.com

In Linux ports from 0 to 1024 are reserved for system use. This means that in order to use one, you must have the authority to change - access basic system settings. The root user has such privileges and can actually use a port from the range 0 - 1024.

 

리눅스에서는 0번 부터 1024번 범위의 포트는 시스템이 사용하기 위한 포트이다. 그래서 0번 부터 1024번 범위의 포트를 사용하기 위해서는 권한을 변경해 주어야 한다. root 권한을 가진 유저는 권한 변경이 가능하다는 특권을 가지며, 즉 root 권한을 가진 자가 사실상 0번 부터 1024 범위를 사용할 수 있다.

'ETC' 카테고리의 다른 글

Forward Proxy & Reverse Proxy  (0) 2024.07.17
문자열 치환  (0) 2023.09.01
Session ID 분석  (0) 2023.08.24