
Initialize the database go to the bin folder of the PSQL installation directory (XXXX), xxxx/bin/pg_ctl -D xxxx/data initdb // Initialize the database Sudo yum install postgresql95 postgresql95-devel postgresql95-server postgresql95-libs postgresql95-contrib Install postgresql sudo rpm -Uvh http: / / /9.5/redhat/rhel-6-x86_64/

repo file sudo vi /etc//CentOS-Base.repoĮxclude=postgresql* // Add this line to the and blocks Copy the code To manage the Ruby version, I use Rbenv to manage the installation reference links Install postgresql If you install Ruby using Yum, the version is too low. The pg_config file is usually in /usr/bin, but it is not in. Yum install Libs-devel, yum install libs-devel, yum install Libs-devel, yum install Libs-devel, yum install Libs-devel, yum install Libs-devel I can't find pg_config.

Now that I've sorted it out, IT's not that difficult, so why did it take three weeks? Most probably because of my ignorance and ignorance of centos.įor example, when I started the database, it told me that I could not start as root, and when I switched to the normal account, it told me that I had no write permission on the folder, which made me really conflicted. This process basically took me three weeks to get right, and I copied and pasted some of the deployment files directly from the project.
