liunx最小化安装记录

来源:互联网 发布:手机钉钉 请检查网络 编辑:程序博客网 时间:2024/06/15 17:37
1.最小化安装centos
  配置/etc/resolr.xx   nameserver 8.8.8.8
  dmesg |grep -i eth
  ifconfig eth0/em1 up
  dhclient
2.yum install openssh-server 
  /etc/init.d/sshd start
3.修改网卡名称
  /etc/udev/rules.d/70-persistent-net.rules
  增加 /etc/sysconfig/network-scripts/ifcfg-eth0 如下4
  记得网卡重新启动 ifconfig eth0 up
4. DEVICE=eth0
   ONBOOT=yes
   BOOTPROTO=static
   IPADDR=10.254.220.245
   NETMASK=255.255.255.0
5./home分区拆分,拆分出来的合并回根目录
0 0