标签:ja
一、主机名
# hostname # vim /etc/hosts ip xxx.xxx.xx # cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=xxx.xxx.xx
二、ip地址固定
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO="static" DHCP_HOSTNAME="xx.xxx.xx" HOSTNAME="xxx.xx.xx" HWADDR="xx:xx:xx:xx:xx:xx" IPV6INIT="no" MTU="1500" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="xxxx-xxx-xxx-xxx-xxxx" IPADDR=xx.xx.xx.xx GATEWAY=xx.xx.x.x NETMASK=255.255.255.0
三、时区、时间同步
# date -R Fri, 10 Feb 2017 04:37:15 -0500 # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # date -R Fri, 10 Feb 2017 17:41:17 +0800 # yum install ntpdate --nogpgcheck -y # crontab -l 10 * * * * /usr/sbin/ntpdate xx.xxx.xx.xxx # reboot 重启生效
四、磁盘和目录规划
本文出自 “小鱼的博客” 博客,谢绝转载!
标签:ja
原文地址:http://395469372.blog.51cto.com/1150982/1897650