安装centOS7要注意的地方

1. GNOMEGNOME 2. 1)/boot400Mdevice TypeFile Systemext4

2)swap2048MPC16GFile Systemswap

3)/ File Systemext4

3.KDUMP

4. # systemctl stop atd.service libvirtd.service network.service NetworkManager.service postfix.service Bluetooth.service

# systemctl disable atd.service libvirtd.service network.service NetworkManager.service postfix.service Bluetooth.service

:

# systemctl list-units

# systemctl list-unit-files

5./etc/selinux/config SELINUXdisabledselinux

6.yumyum install, 1)centOS7isoLinux/opt,isoyum 2)/mntisoiso;

mount -o loop /opt/CentOS-7-x86_64-DVD-1503-01.iso /mnt/iso

/mnt/isoiso 3)/etc/yum.repos.d/ # cp CentOS-Base.repo CentOS-DVD.repo

# vi CentOS-DVD.repo

[iso]

name=CentOS DVD ISO

baseurl=file:///mnt/iso/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

       # rename .repo .repo.bak *.repo

       将该目录下的所有后缀名为repo的文件重命名为repo.bak,repo

# yum clean all

# yum repolist

# yum list available

7. cd /etc/sysconfig/network-scripts/  8.IP ifconfig enp4s0 192.168.1.105

ifconfig enp4s0 netmask 255.255.255.0

ifconfig enp4s0 up

route add -net 0.0.0.0 gw 192.168.1.1

/etc/resolv.conf文件,添加DNS设置,就可以上 了,这里我们的配置如下:

nameserver 10.9.7.247

nameserver 202.103.24.68

9./etc/rc.drc.localisorc.localrc.local ifconfig enp4s0 down

ifconfig enp4s0 192.168.1.105

ifconfig enp4s0 netmask 255.255.255.0

ifconfig enp4s0 up

route add -net 0.0.0.0 gw 192.168.1.1

 

mount -o loop /opt/CentOS-7-x86_64-DVD-1503-01.iso /mnt/iso


声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年2月26日
下一篇 2017年2月26日

相关推荐