AlmaLinux8.8 ; Initial setup after OS installation

1.Disable SELinux

First, disable selinux. selinux is a feature that improves auditing and security in Linux, but when enabled, it places considerable restrictions on the behavior of services and on what can be configured. Therefore, it is basically disabled in many cases. If you build a server while browsing a website and it does not work as expected, it may be due to the fact that selinux is enabled. Therefore, do not forget to disable it after installation.
You can disable it by doing the following

As it is, seinux will return to be enabled once the server is restarted, so to permanently disable selinux, modify the /etc/sysconfig/selinux file.

Change "SELINUX=enforcing" to "SELINUX=disabled"

2.System Modernization

Package updates are performed as soon as possible immediately after OS installation.
However, when a dnf update is performed, a kernel update is also performed at the same time.
A kernel update may require rebooting the system or stopping services, or worse, a kernel panic may occur and the system may not boot. It is wiser to exclude the kernel from the update.
By running dnf -y update with "--exclude=kernel*" after
kernel*" after "update" to exclude the kernel from updates.

3.Services to be stopped due to security measures

Stop the following services that you deem unnecessary.

4.Adding Repositories

4.1 Add EPEL repository

4.2 Added Remi's RPM repository

5.Network Settings

5.1 Host Name Change

Change the host name to Lepard to try it out

5.2 Static IP address setting

If the default setting is to obtain an IP address via DHCP during OS installation, change the network settings to a fixed IP address if necessary.
This time, the IPv4 static address is 192.168.11.83
Router address 192.168.11.1
First find out the name of your network interface with the following command
In this case, it is "ens160".

①How to edit and change network configuration files

To reflect the settings, do one of the following

➁How to change with nmcli command

Reboot interface to reflect settings

6.Vim Configuration

①Vim install

Apply and reflect Vim

Configure Vim as a user-specific environment

Copied title and URL