WSL2: Localhost 표시 방법
절차.
Step1
참고여기.제작
c:\Users\<ユーザ名>\.wslconfig
.wslconfiglocalhostForwarding=True
Step2
WSL: Ubuntu 재시작
Windows 명령 프롬프트에서 wsl을 닫습니다(이후 자동으로 시작).
$ wsl --shutdown
이상 wsl:Ubuntu에localhost를 표시합니다.보충:postgresql을 통해 환경을 구축하는 상황
postgresql을 통해 환경을 구축할 때localhost를 표시할 때
"
PG::ConnectionBad
"오류가 표시됩니다.그때postgresql 서비스를 시작합니다.
$ sudo service postgresql status # 状態確認: ダウンしている
12/main (port 5432): down
$ sudo service postgresql start # postgres起動
* Starting PostgreSQL 12 database server
$ sudo service postgresql status # 起動されている
12/main (port 5432): online
postgresql을 사용하는 사람은localhost를 표시할 수 있습니다.
Reference
이 문제에 관하여(WSL2: Localhost 표시 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/masa20210102/articles/001439eb4ad301텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)