How to change the Hostname on CentOS 8

The easiest way to change the hostname on CentOS 8 is to use the hostnamectl command. First I will check the current hostname by running "hostnamectl status" on the shell of my server: hostnamectl status The output on my system is: [[email protected] ~]# hostnamectl status Static hostname: Icon name: computer-vm Chassis: vm Machine ID: ... Read more

Optimize MySQL Performance with Mysqltuner

MySQL Optimization

This short tutorial describes the steps to optimize the performance of a MySQL database with the mysqltuner script. This tool can be used for MySQL and MariaDB. Install mysqltuner The mysqltuner High-Performance MySQL Tuning Script is available as a package on Debian 10 and Ubuntu 20.04, install it with at: sudo apt install mysqltuner For ... Read more

How to block access to a server by IP address on Linux

Block access using route command

Sometimes you might want to block connects to your server by IP address. E.g. when someone tries to attack your system. This can be done in several different ways, e.g. with iptables (firewall) rules or by setting up a reject route. Reject access with Linux route command Using iptables sometimes causes conflicts with installed firewalls ... Read more