How to Configure Time Server (NTP Server) on Centos 7?

Prerequisites: VM/ Physical – It is recommended to have the time server as a physical server, but VMs should be okay depending on your setup and requirement. My virtual lab environment is VMware based so here’s the guide for a VM. Once the CentOS Minimal is installed on the VM make sure to install open-vm-tools. … Read more

Delete Files and Folders Older Than X Days

Often times admin have to creates tasks like removing log files or some other files on a regular schedule. Here is an automated way of removing files / folders older than X days. Create a Batch file or Powershell script and add it to scheduled task. Batch File:

Powershell:

 

How to Start and Enable Firewalld on CentOS 7

It is highly recommended that you have a firewall protecting your server. Pre-Flight Check These instructions are intended specifically for enabling and starting firewalld CentOS 7. I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root. Check the Status of Firewalld To check the status of … Read more