Skip to main content

How to Remove Old Kernel from RHEL Server

Submitted by nidheesh on Fri, 01/13/2023 - 22:50

[root@testsvr01~]# rpm -q kernel
kernel-3.10.0-1160.15.2.el7.x86_64
kernel-3.10.0-1160.21.1.el7.x86_64
kernel-3.10.0-1160.24.1.el7.x86_64
kernel-3.10.0-1160.36.2.el7.x86_64
kernel-3.10.0-1160.71.1.el7.x86_64
[root@ehapp01 ~]# package-cleanup --oldkernels --count=1
Loaded plugins: fastestmirror, langpacks
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-1160.15.2.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased

Docker Installation on Centos 7

Submitted by nidheesh on Wed, 12/28/2022 - 22:55

[root@testsvr01~]# yum-config-manager   --add-repo   https://download.docker.com/linux/centos/docker-ce.repo
[root@testsvr01~]# yum install docker-ce
Retrieving key from https://download.docker.com/linux/centos/gpg
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c9 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test

How to Create Linux Service for Python Flask app - RHEL

Submitted by nidheesh on Thu, 12/08/2022 - 23:05
  • Create New flaskapp.service File Under /etc/systemd/system/ Directory

[root@pythonsvr01 ~]# vi /etc/systemd/system/flaskapp.service
[Unit]
Description=Flask Python Application Container
After=network.target

[Service]
Type=idle

Environment=CONFIGURATION_SETUP=config.ProductionConfig
Environment=FLASK_ENV=production

ExecStart=/bin/bash -c '/usr/bin/python3.6 /opt/flaskapp/app.py'
ExecStop=/bin/kill -15 $MAINPID

How to add PHPMailer Library in Drupal 9

Submitted by nidheesh on Thu, 12/08/2022 - 22:43

 

This step should have been completed upon the installation of Drupal 8 for getting PHPMailer function

Install Composer

# curl -sS https://getcomposer.org/installer | php

 

Move Composer binary to usr bin path

# mv composer.phar /usr/bin/composer

 

Check Composer Version

# composer --version

 

Go to Drupal root Directory and execute

Drupal Installation Directory - /var/www/html

How to install MySQL 5.7 in Centos 7 Server

Submitted by nidheesh on Sun, 12/06/2020 - 01:11

 

This step should have been completed upon the installation of MySQL 5.7, but if you haven’t, you can complete it with:

System Updates

yum update

 

Install Repository

yum -y install yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

 

Now you are ready to install MySQL 5.7 with:

yum -y install mysql-community-server

 

Firewall Configuration

PostgreSQL 12 Installation in RHEL8 Server

Submitted by nidheesh on Wed, 12/21/2022 - 23:32

[root@testdbsvr01~]# dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[root@testdbsvr01~]# dnf -qy module disable postgresql

 

[root@testdbsvr01~]# dnf install -y postgresql12-server

[root@testdbsvr01~]# dnf install -y postgresql12-contrib

[root@testdbsvr01~]# /usr/pgsql-12/bin/postgresql-12-setup initdb
Initializing database ... OK