Zero to Hero
article thumbnail
Published 2021. 11. 4. 13:57
macOS Monterey의 5000번 포트 Programming
 

What is using Port 5000 on macOS Monterey?

I’ve been fiddling a bit with Wails recently and I gave the unreleased v2 alpha a try. Out of the box, it binds to Port 5000 and I was surprised to receive a 403 Forbidden. Definitely not what I expected. We can use the lsof utility to figure out what’

utf9k.net

시스템 환경설정 -> 공유

요약하면 새로 추가된 기능 중 하나인 airplay to mac을 위한 listener가 디폴트로 켜져 있고, 그 포트가 로컬 5000번 포트를 점유하고 있다는 내용이다.

sudo lsof -i :5000

Airplay 수신 모드를 끄면 점유하고 있단 포트를 내려놓긴 한다.

 

물론 강제로 kill 하면 될 것 같지만(해보진 않음), 점유하고 있는 프로세스 명령어가 좀 무서워서 이걸 강제로 죽여도 되나 싶을 수 있겠다 싶다. 개발할 때 5000번 포트를 사용하고 있는 서비스가 있다면 기능을 끄고 사용하거나 포트번호를 바꿔줘야 될 것 같다.

 

참고로 docker registry의 default 포트 번호가 5000번이라고 한다.

'Programming' 카테고리의 다른 글

IntelliJ와 build.gradle을 사용하는 Spring 프로젝트를 개발할 때 Gradle runner를 사용하는 이유  (0) 2022.02.24
좋은 글  (0) 2021.11.07
k8s commands 04  (0) 2021.10.31
k8s commands 03  (0) 2021.10.26
k8s commands 02  (0) 2021.10.25
profile

Zero to Hero

@Doljae

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!