安装centos

Centos 7 安装记录

  1. 加载镜像,选择Install Centos Linux 7
    image

  2. 选择语言,建议选择English
    image

  3. 分区、新增swap和根分区(根分区格式选择ext4)
    image
    image
    image
    image
    image
    image
    image

  4. 选择最小化安装
    image
    image

  5. 修改密码
    image

  6. Reboot
    image

  7. 进行登录
    image

  1. 修改IP
1
2
3
4
5
6
7
8
vi  /etc/sysconfig/network-scripts/ifcfg-*
BOOTPROTO=static#启用静态IP地址
  ONBOOT=yes #开启自动启用网络连接
  IPADDR=192.168.1.73 #设置网关
  GATEWAY=192.168.1.1
  NETMASK=255.255.255.0
  DNS1=114.114.114.114
  DNS2=8.8.8.8

image

  1. 重启网卡
    image

  2. 大功告成