Enable the Windows Subsystem for Linux (WSL).It is not a simulator, rather it is a real Linux OS that runs inside Windows and creates a real file system on the disk. Ubuntu Windows Subsystem for Linux (WSL) is a fully functional Linux terminal app for Windows. How to setup WSL for Ubuntu on Windows: Step 1: Here, we will install PostgreSQL inside Windows Subsystem for Linux ( WSL) on a Windows PC. If you want to use Ubuntu WSL on Windows, then follow Steps 1 to 3 below, then continue with Step 4 If you are on Ubuntu machine, skip to Step 4 below. If we don’t want to use the default installed version of PostgreSQL, then we can use the PostgreSQL Apt Repository to install PostgreSQL of required version. Other versions of PostgreSQL are available through the PostgreSQL apt repository. However, Ubuntu “snapshots” a specific version of PostgreSQL that is then supported throughout the lifetime of that Ubuntu version. PostgreSQL is available in all Ubuntu versions by default. So, we need to do that manually as shown below: For RHEL / CentOS / SL / OL 6 service postgresql initdbĬhkconfig postgresql on For RHEL / Rocky Linux / CentOS / SL / OL 7, 8 Or Fedora 31 And Later Derived Distributions: postgresql-setup -initdb On Red Hat systems, PostgreSQL will not be automatically started or initialized. Install PostgreSQL on Linux (Red Hat/CentOS) We will see later how to Install PostgreSQL inside a WSL on Windows. On a Windows machine, PostgreSQL can also be installed inside an Oracle VirtualBox VM or Windows Subsystem for Linux ( WSL) hosted on Windows OS. Install the database software using Windows Installer given there. PostgreSQL is available to download and install for free from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |