Installing Server

  • Install the httpd daemon and restart

sudo yum install httpd -y
sudo systemctl start httpd.service

Check Status

sudo systemctl status httpd.service
sudo systemctl enable httpd.service

Configure Swappiness and Installing NTP

Configure VM Swappiness

sudo vi /etc/sysctl.conf

Add this line:

vm.swappiness=0

​Reboot the machine to make the changes effective

Install the ntp package​

sudo yum install ntp -y

Start the service and verify its status.

sudo systemctl start ntpd.service 
sudo systemctl status ntpd.service

Ensure that the service starts automatically on reboot.

sudo systemctl enable ntpd.service

Last updated