Posts

Showing posts with the label yum

Postgres 10 setup and testrun on Redhat Linux 7

This is just a quick guide to get up and running with Postgres 10 on redhat linux 7 As of the writing of this quick guide, yum install postgresql-server does not allow you to install version 10. Instead, we do As root: yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm Install Client Package yum install -y postgresql10 Install Server Package yum install -y postgresql10-server I always seem to have to initialize the database manually, so here it is. /usr/pgsql-10/bin/postgresql-10-setup initdb We need to now switch to os user postgres su - postgres Run psql command line console, aka PostgreSQL interactive terminal -bash-4.2$ psql psql (10.5) Type "help" for help. postgres=

MongoDB upgrade from 3.2 to 3.4, the manual way

This is a quick tutorial on upgrading your existing mongod binary from \mongod 3.2 to mongod 3.4. 1. verifying the version I am currently running [xxxx ~]$ mongod --version db version v3.2.10 git version: 79d9b3ab5ce20f51c272b4411202710a082d0317 OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013 allocator: tcmalloc modules: none build environment: distmod: rhel70 distarch: x86_64 target_arch: x86_64 2. stop the mongod on the server and issue kill of the processes [ xxxx ~]# ps -ef | grep mongod root 4870 25188 0 14:17 pts/0 00:00:00 grep --color=auto mongod root 14222 1 0 Apr25 ? 08:55:52 mongod --port 30000 --dbpath /data/mongodb/arb --logpath /data/mongodb/arblog/arb.log --replSet avlrepdev --fork root 14247 1 0 Apr25 ? 08:51:16 mongod --port 30001 --dbpath /data/mongodb/arb1 --logpath /data/mongodb/arblog/arb1.log --replSet avlrepdev --fork [ xxxx ~]# kill 14222 [xxxx ~]# kill 14247 [xxxx ~]# ps -ef | grep mongod root...

Issue encountered and fix - Installing MongoDB on Redhat 7.x via yum

This is the version of redhat I am running [root@msdlva-dsnops03 ~]# lsb_release -a LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: RedHatEnterpriseServer Description:    Red Hat Enterprise Linux Server release 7.3 (Maipo) Release:        7.3 Codename:       Maipo To start, we need to configure mongodb-enterprise repo https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/ This is the repo I used [root@msdlva-dsnops03 ~]# vi /etc/yum.repos.d/mongodb-enterprise.repo [mongodb-enterprise] name = MongoDB Enterprise Repository baseurl = https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/3.4/$basearch/ gpgcheck = 1 enabled = 1 gpgkey = https://www.mongodb.org/static/pgp/server-3.4.asc [root@msdlva-dsnops0...