how to install Docker on CentOS 8

In this article, we will see how to install Docker on CentOS 8. Docker is available in two versions,

Docker CE (Community Edition)
Enterprise Edition (EE)
In this guide we will learn how to install Docker CE (Community Edition) on CentOS 8 or RHEL 8 Server.

System Requirements for Docker CE:

To install Docker Engine, you need a maintained version of CentOS 7. Archived versions aren’t supported or tested.

Updated Minimal CentOS 8 / RHEL 8
Sudo or root privileges
Internet Connection

SET UP THE REPOSITORY:
Continue reading how to install Docker on CentOS 8

How to install Docker on Ubuntu

In this article, we will see how to install Docker on Ubuntu.

1. Update the apt package index.

sudo apt-get update

2. Install packages to allow apt to use a repository over HTTPS.

sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common

How to install Docker on Ubuntu

Continue reading How to install Docker on Ubuntu

How to install Apache Cassandra on CentOS or Redhat

In this article, we will see how to install Apache Cassandra on CentOS or Redhat.

1. Java should be there on Linux machine to install Apache Cassandra. Lets verify java installed or not.

java -version

How to install Apache Cassandra on Redhat or CentOS
Continue reading How to install Apache Cassandra on CentOS or Redhat

PuTTY Fatal Error Network error: Connection refused Kali Linux

We have received error when connecting to Linux server using Putty client: PuTTY Fatal Error Network error: Connection refused Kali Linux. This error generally occurs if ssh service is down.

PuTTY Fatal Error --------------------------- Network error: Connection refused --------------------------- OK ---------------------------

PuTTY Fatal Error Network error: Connection refused Kali Linux

Solution:
Continue reading PuTTY Fatal Error Network error: Connection refused Kali Linux

How to connect to MySQL using Python on Linux

In this article, we will see how to connect to MySQL using Python on Linux.In this article, we will connect to MySQL Server from python using mysql-connector. Connect to Python contains below steps.

1. Install mysql connector.
2. Create connection variable in python script file.
3. Execute command on MySQL Server using python script file.

Connection to MySQL using Python Steps:

Step1: Install mysql connector.
Continue reading How to connect to MySQL using Python on Linux

MongoDB error connecting to host: could not connect to server: server selection error: server selection timeout

In this article, we will see to troubleshoot the problem for connectivity between different MongoDB servers. I got below error when tried to restore database from local to remote host.

2019-11-20T15:56:59.536-0800 error connecting to host: could not connect to server: server selection error: server selection timeout current topology: Type: Single Servers: Addr: 192.168.152.141:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection(192.168.152.141:27017[-121]) connection is closed

Continue reading MongoDB error connecting to host: could not connect to server: server selection error: server selection timeout

How to find MongoDB log file path

In this article, we will see How to find MongoDB log file path in Linux environment. There are different methods to find MongoDB log file path.

Method1: find MongoDB log file path using mongod.conf file:
By Default, MongoDB creates the log file at this path “/var/log/mongodb/mongodb.log”, if the log file is not found at this path, please check with the MongoDB config file.

more /etc/mongod.conf

Continue reading How to find MongoDB log file path