Skip to main content

Posts

Showing posts with the label Centos 7

ElasticSearch 7.x not working after upgrade

In case you have upgraded elastic search by mistake and want to rollback to the previous working version, here are the steps. In my case, I upgraded the ElasticSearch to 7.9.2-1 and wanted to rollback to 7.6.2-1 1. yum downgrade elasticsearch-7.6.2-1 2. Restart elasticsearch sudo service elasticsearch start I hope it will work but in case you are facing any of the following issues, please run respective comments. Errors: Problem . Unable to create temporary keystore at [/etc/elasticsearch/elasticsearch.keystore.tmp] Solution : sudo -u elasticsearch -s /usr/share/elasticsearch/bin/elasticsearch-keystore create Problem : Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch Solution : chmod g+w /etc/elasticsearch Thanks!! Enjoy Programming! Reference Links ==================================== https://discuss.elastic.co/t/unable-to-create-temporary-keystore-at-etc-elasticsearch-elasticsearch-keystore-tmp/136411

How to Install PostgreSQL 12 on CentOS/RHEL/OEL 7

This article will help you to install PostgreSQL 12 on CentOS/RHEL/OEL 7 system. 1.  Configure Yum Repository # rpm -Uvh https://yum.postgresql.org/12/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2. Install PostgreSQL 12 on CentOS # yum install postgresql12-server 3. Initialize PGDATA # /usr/pgsql-12/bin/postgresql-12-setup initdb PostgreSQL 12 default data directory location is /var/lib/pgsql/12/data 4. Enable PostgreSQL Server on reboot # systemctl enable postgresql-12.service 5. Start PostgreSQL Server # systemctl start postgresql-12.service 6. Verify PostgreSQL Installation # su - postgres -c "psql" psql (12.0) Type "help" for help. postgres=#   You may create a password for user Postgres for security purposes. postgres=# \password postgres Thanks!!!!!!!!!! Enjoy Programming!!! :) Referecnce: https://tecadmin.net/install-postgresql-11-on-centos/