CentOS is a community-driven free Linux Distribution which happens to be a very capable alternative to Red Hat Enterprise Linux. It is derived from Red Hat Enterprise Linux sources. After installing CentOS 7, you may go ahead and start using the OS, but there are many things we can do to the new core system to get the most out of it. Most of these are also applicable to Red Hat Enterprise Linux since CentOS shares most of its features with it.
So let us look at “ 10 Things to Do After Installing CentOS 7” that you may consider doing to get your server ready. This is not a comprehensive list but hopefully will be quite helpful in setting up your new server.
1. Configure the static ip on the server
The first thing we will do is to configure Static IP address, Route and DNS to the CentOS Server. We will be using ip command the replacement of ifconfig command.
Edit the interface file under /etc/sysconfig/network-scripts/ directory:
# vi /etc/sysconfig/network-scripts/ifcfg-eth016
IPADDR = “[Enter your static IP here]”
GATEWAY = “[Enter your Default Gateway]”
DNS1 = “[Your Domain Name System 1]”
DNS2 = “[Your Domain Name System 2]”
# systemctl stop NetworkManager --------->stop NetworkManager
# systemctl disable NetworkManager --------->not needed on server
# service network restart --------->restart network service
2. Update the kernel & Upgrade CentOS
We will then go ahead and update our already installed packages to the latest versions as well as install the latest security updates.