First, host name
# hostname# Vim/etc/hostsip xxx.xxx.xx# cat/etc/sysconfig/networknetworking=yeshostname=xxx.xxx.xx
Second, fixed IP address
# cat/etc/sysconfig/network-scripts/ifcfg-eth0device= "eth0" bootproto= "Static" Dhcp_hostname= "xx.xxx.xx" HOSTNAME= "xxx.xx.xx" hwaddr= "xx:xx:xx:xx:xx:xx" ipv6init= "No" mtu= "$" nm_controlled= "yes" onboot= "yes" type= "Ethernet" UUID = "Xxxx-xxx-xxx-xxx-xxxx" ipaddr=xx.xx.xx.xxgateway=xx.xx.x.xnetmask=255.255.255.0
Three, time zone, timing synchronization
# Date-rfri, 04:37:15-0500# cp/usr/share/zoneinfo/asia/shanghai/etc/localtime# Date-rfri, 2017 1 7:41:17 +0800# Yum Install ntpdate--nogpgcheck-y # CRONTAB-L10 * * * */usr/sbin/ntpdate xx.xxx.xx.xxx# reboot Restart effective
Iv. Disk and directory planning
This article from "Small Fish Blog" blog, declined reprint!
Considerations for newly installed Linux servers