How to easily encrypt/decrypt a file in Linux with gpg?
No matter what you’re doing on your computer, you need to do so with an eye to security — that means using strong passwords, storing files in safe locations, and…
Some useful commands for Account migrations in Cpanel server
Pre-migration steps (DNS) rsync -avHl /var/named/ /home/named.backup/ sed -i -e "s/14400/600/" /var/named/*.db newserial=$(date +%Y%m%d%H) sed -i -e "s/[0-9]\{10\}/$newserial/" /var/named/*.db rndc reload For customers with a large number of domains you…
How to set max_open_files in MariaDB / MySQL in CentOS 7
Set the system wide open file limit: vi /etc/security/limits.conf Change/Add the following: * soft nofile 1024000 * hard nofile 1024000 * soft nproc 10240 * hard nproc 10240 Now do…
How to Install LXC to Create Linux Containers on RHEL/CentOS/Rocky Linux
In this article, I will take you through the steps to install LXC (Linux containers) on RHEL/CentOS/Rocky Linux but before that let’s understand the first LXD. It is a free…
How to easily encrypt/decrypt a file in Linux with gpg
No matter what you’re doing on your computer, you need to do so with an eye to security — that means using strong passwords, storing files in safe locations, and…
Some useful commands for Account migrations in Cpanel server
Pre migration steps (DNS) rsync -avHl /var/named/ /home/named.backup/ sed -i -e "s/14400/600/" /var/named/*.db newserial=$(date +%Y%m%d%H) sed -i -e "s/[0-9]\{10\}/$newserial/" /var/named/*.db rndc reload For customers with a large number of domains…
How to create cgroups in RHEL/CentOS 7
cgroups allow for system resources to be limited for certain user’s processes, which are defined in configuration files. This is useful e.g. if you wish to limit a compiler’s maximum…
Tuned – Automatic Performance Tuning of CentOS/RHEL Servers
To maximize the end-to-end performance of services, applications and databases on a server, system administrators usually carry out custom performance tunning, using various tools, both generic operating system tools as…