CentOS-6系统安装

安装CentOS系统


选项说明:

  • Install or upgrade an existing system :安装或升级现有的系统

  • Install system with basic video driver :安装过程中采用基本的显卡驱动

  • Rescue installed system :进入系统修复模式

  • Boot from local drive :退出安装从硬盘启动

  • Memory test :内存检测

这里选中第一项回车,出现是否检测光盘镜像,选择“skip”跳过。

出现以下界面,选择Next。

推荐选择英文;

键盘选择

选择第一项:基本存储设备

选择第一项:忽略所有数据

设置主机名,然后Next;

设置时区;

设置root密码,如果密码简单会提示,选择use anyway;

选择最后一项自定义分区;

选中Free,点击Create,选择第一项标准分区,点击Create;

设置boot分区;

设置swap分区;

设置根分区;

点击Next;

进行格式化;

将修改写入磁盘;

默认Next;

选择最小化安装,自定义安装软件;

选择安装的软件(也可以不用选择,以后自行安装)

进行安装;

点击reboot重启;

配置网络

使用用户和密码登录

进入网卡文件配置:

vi  /etc/sysconfig/network-scripts/ifcfg-eth0

网卡内容:

[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0
HWADDR=00:0C:29:EC:4F:F3
TYPE=Ethernet
UUID=cfe3e53a-b5f2-4f62-aa7f-677d7147e85d
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.0.100
NETMASK=255.255.255.0
GATEWAY=10.0.0.253
DNS1=114.114.114.114

重启网卡并查看地址:

[root@localhost ~]# service network restart
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:ec:4f:f3 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.100/24 brd 10.0.0.255 scope global eth0
    inet6 fe80::20c:29ff:feec:4ff3/64 scope link 
       valid_lft forever preferred_lft forever

最后可以实现PING通外网即可:

[root@localhost ~]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.121) 56(84) bytes of data.
64 bytes from 61.135.169.121: icmp_seq=1 ttl=128 time=6.33 ms
64 bytes from 61.135.169.121: icmp_seq=2 ttl=128 time=6.35 ms
64 bytes from 61.135.169.121: icmp_seq=3 ttl=128 time=6.10 ms
^C
--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2360ms
rtt min/avg/max/mdev = 6.109/6.268/6.358/0.130 ms
posted @ 2020-10-23 15:39  忘川的彼岸  阅读(199)  评论(0编辑  收藏  举报