Introduction: Moving a MySQL data directory to a new location can be necessary when the original storage is limited, or we want to optimize database performance by using faster storage. Precautions: Step 1: To prevent data corruption, stop the MySQL service before moving files sudo systemctl stop mysql Step 2:… Continue Reading How To Move a MySQL Data Directory to a New Location on Ubuntu 20.04?

Introduction Nagios, a widely used open-source monitoring system, provides robust tools to monitor the health of various IT services, including web services. By setting up website monitoring in Nagios, we can proactively detect issues, ensure uptime, and optimize performance. This guide will walk through the steps required to configure Nagios… Continue Reading How to set up the website monitoring on Nagios?

Introduction: Amazon Web Services (AWS) provides a comprehensive set of cloud computing services that allow users to launch and manage virtual servers, known as instances, through the AWS Management Console, AWS CLI, and other tools. Using the AWS Command Line Interface (CLI) is a powerful way to automate the management… Continue Reading How to launch a new AWS instance via CLI?

Introduction: Ubuntu 20.04, codenamed “Focal Fossa,” is the latest Long Term Support (LTS) release of one of the most popular Linux distributions in the world. Released in April 2020, Ubuntu 20.04 builds upon the strengths of its predecessors while introducing several new features and improvements. Step1: Login to the server… Continue Reading How to set up a welcome message for Ubuntu 20.04?

Introduction: The file system of a Linux server plays a crucial role in managing data storage and retrieval efficiently. Among the various file system types available, ext3 and ext4 are widely used due to their stability, reliability, and compatibility with Linux distributions. Step 1: First, We should verify the current… Continue Reading How to convert file system type from ext3 to ext4 for Linux servers?

Introduction: Monitoring memory cache utilization is crucial for maintaining optimal system performance and resource utilization in your IT infrastructure. Nagios, a powerful monitoring system, allows you to track various metrics, including memory cache usage. Prerequisite: Server root login credentials. Step 1: Log in to the Ubuntu or Centos server as… Continue Reading How to set up the custom memory cache monitor on Nagios and clear the memory cache with cronjob?

Introduction: Making the entire filesystem or a specific partition read-only on Ubuntu 20.04 can be a useful security measure or a precautionary step to prevent unintended modifications. The read-only setting ensures that no write operations can be performed on the designated filesystem, safeguarding its integrity and reducing the risk of… Continue Reading How to set up the entire filesystem or a specific partition read-only on Ubuntu 20.04?

Introduction: Password management and policy enforcement are critical aspects of maintaining robust security on an Ubuntu Server 20.04. Establishing strong password policies helps safeguard against unauthorized access and security breaches. Step 1: Set an expiration date on a user’s passwordType chage -l username command to display the expiration date on a user’s… Continue Reading How to Manage passwords and password policies on Ubuntu server 20.04?

Introduction: Logical Volume Management (LVM) is a powerful tool in Linux that allows for dynamic resizing and management of storage space. As data requirements grow, the need to extend Logical Volumes becomes common to accommodate increasing storage demands without disruption. Step 1: Check there is enough free space in the… Continue Reading How to Extend a Logical Volume?

Introduction: Swap space, an extension of physical memory, enables instances to manage memory resources efficiently, preventing performance degradation in situations of high demand. This guide outlines the steps to add swap space to an Amazon EC2 instance Step 1: Connect to EC2 Instance. Step 2: Before adding a swap, check… Continue Reading How do to add a swap space to an EC2 instance?