Repolist: ~]# yum install postgresql94 ~]# rpm -qa | grep postgres Then go to terminal and install package ~]# yum install ~]# yum repolist Scroll down and find version which we want and copy link address Go to the PostgreSQL vet site and click download įrom downloads page click on Red Hat family Linux (including CentOS/Fedora/Scientific/Oracle variants), then scroll down and click on repository RPM listing link Then I run yum update ~]# yum update Installing PosgreSQL 9.4s You may not log in to PostegreSQL if you didn’t run the above command. ~] setsebool -P httpd_can_network_connect_db 1 Run the following command to make PostgreSQL work if SELinux enabled on your system. Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active(running) since Sun 07:14:14 +04 5min agoĪpr 16 07:14:14 posgresql.localdomain systemd: Starting OpenSSH server daemon.Īpr 16 07:14:14 posgresql.localdomain sshd: Server listening on 0.0.0.0 port 22.Īpr 16 07:14:14 posgresql.localdomain sshd: Server listening on :: port 22.Īpr 16 07:14:14 posgresql.localdomain systemd: Started OpenSSH server daemon.Īpr 16 07:17:25 posgresql.localdomain sshd: Accepted password for root from 192.168.2.180 port 50904 ssh2 To change SELinux’s behavior to the permissive mode you need to edit the configuration file. When you configure SELinux as permissive, it gives you a warning message instead of actually prohibiting the action. Yo can set permissive SELINUX or make PosgreSQL work if SELinux enabled Then edit /etc/hosts file and add IP address and hostname.Ĭheck sshd service if it not works disable change SELinux config and the check ~]# systemctl status rvice Install guest additions and reboot system: Start Virtual Machine and begin installation: Then go to the settings of new created virtual machine and change network and other settings like bellow:Īdd Downloaded CentOS 7 disc image to cdrom You can download iso image of CentOS 7 from First, we will install CentOS 7 on Virtualbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |