Linux 초기 setting/윈도우 wsl

wsl2 / nginx 설치 후, systemctl ~

에혀 2022. 8. 20.

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

 

어떤 이에게는 systemctl 을 이용하면, 기존 서비스 뿐 아니라, 자동 시작되게 서비스를 등록할 수 도 있고, 시작,중지 등을 쉽게 사용할 수 있는 장점이 있다.

 

난 python django Gunicorn , nginx 설정만 하려했는데....

1) 막아놓은 서비스를 다시 살려서 하든가.  https://parkbrother.tistory.com/entry/WSL2-%EC%97%90%EC%84%9C-systemdsystemctl-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95

 

WSL2 에서 systemd(systemctl) 사용하는 방법

systemctl 명령어 사용시 아래와 같은 메시지로, 어떤 서비스든 사용 할 수가 없는 상태로 됨 System has not been booted with systemd as init system (PID 1). Can't operate. wsl에서 systemd를 지원하지 않기..

parkbrother.tistory.com

2. service 명령어로 이용하면 되겠다.

service status nginx 

요렇게

댓글