![]() How do I accept connections from the Windows host for PostgreSQL on WSL2? ![]() allow authentication from remote hosts.īy the way, let me recommend my friend Lætitia Avrot’s blog to you, where all these topics are covered.accept connections from the Windows host.Now we need to set up PostgreSQL so it will: System has not been booted with systemd as init system (PID 1). Please take note: we are not using systemctl because WSL2 doesn’t use systemd to operate: $ sudo apt-get -y install postgresql postgresql-contrib $ sudo sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt//pgdg.list' Please follow the instructions on the official site: I strongly suggest using Windows Terminal to work with console sessions. ⚠️ All further commands are supposed to be executed in the Ubuntu WSL2 session. Here in this post, I will use the Ubuntu distribution for demonstration purposes. The following is a list of valid distributions that can be installed.Īfter that, you can install the chosen Linux distribution on WSL2 by running the command: Supposing you prefer to change the distribution installed, you have the option to choose among those available. ![]() All future launches should take less than a second.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |