你好,游客 登录 注册 搜索
背景:
阅读新闻

RHEL7.2 系统安装图文详解

[日期:2017-11-04] 来源:Linux社区  作者:Linux [字体:大 中 小]

19)系统成功启动,选择未列出,输入用户进行登录

输入登录密码

20)首次登陆进行Gnome-initial-setup(GNOME初始化设置)

语言选择,默认就可以,直接前进

选择键盘布局,默认前进即可

在线账号设置,如果有可以进行设置,没有的话,直接跳过即可

一切准备就绪,开始使用RHEL7.2系统

弹出使用介绍界面,关闭即可

到此RHEL7.2操作系统安装完成

单击屏幕上任意空白位置

打开终端,通过cat  /etc/RedHat-release查看系统版本,显示为 7.2 版本

注:RHEL 7.2 安装时会自动配置VMware Tools,因此,安装完成后无需配置安装Vmware Tools

系统状态检测

a.查看是否能够正常上网

[root@localhost~]# ping www.baidu.com

PINGwww.baidu.com (119.75.218.70) 56(84) bytes of data.

64bytes from 119.75.218.70: icmp_seq=1 ttl=57 time=254 ms

b.主机名查看和设置

[root@localhost~]# hostname

localhost.localdomain

[root@localhost~]# vim /etc/hostname

xj.cn

[root@localhost~]# hostname

xj.cn

修改完之后,无需重启即可生效

c.关闭防火墙并设置为开机自动关闭

查看防火墙状态

[root@localhost~]# systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon

  Loaded: loaded(/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)

  Active: active (running) since 三 2015-12-16 21:39:49CST; 21min ago

 Main PID: 1097 (firewalld)

  CGroup: /system.slice/firewalld.service

          └─1097 /usr/bin/python -Es/usr/sbin/firewalld --nofork --nopid

12月 17 05:32:44localhost.localdomain systemd[1]: Starting firewalld - dynamic firewalldaemon...

12月 16 21:39:49localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.

关闭防火墙,并设置为开机自动关闭

[root@localhost~]# systemctl stop firewalld

[root@localhost~]# systemctl disable  firewalld

Removedsymlink /etc/systemd/system/dbus-org.Fedoraproject.FirewallD1.service.

Removedsymlink /etc/systemd/system/basic.target.wants/firewalld.service.

d.关闭selinux

1)获取selinux的状态

[root@localhost~]# getenforce

Enforcing

显示为enforcing说明没有关闭,显示为disabled为关闭状态

2)关闭selinux

[root@localhost~]# sed -i  's/SELINUX=enforcing/SELINX=disabled/'/etc/selinux/config

修改之后重启才能生效

e.设置光盘开机自动挂载

先把现有挂载卸载,再进行挂载

[root@localhost~]# umount /dev/sr0

[root@localhost~]# mount /dev/sr0 /mnt/

mount:/dev/sr0 写保护,将以只读方式挂载

f.配置本地yum源

先对yum源目录下的文件进行备份

[root@localhost~]# mv /etc/yum.repos.d/redhat.repo /etc/yum.repos.d/redhat.repo.bak

然后创建本地yum源文件

[root@localhost~]# cat > /etc/yum.repos.d/rhel7.repo <<EOF

>[base-rhel7]

>name=base-rhel7

>baseurl=file:///mnt

>enabled=1

>gpgcheck=0

>EOF

清空yum缓存

[root@localhost~]# yum clean all

重新生成

[root@localhost~]# yum list

至此,RHEL7.2的安装和基本实验环境配置完成,poweroff关机。创建快照,保存实验环境,后期做实验时恢复快照即可

更多RedHat相关信息见RedHat 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=10

本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-11/148237.htm

linux
相关资讯       RHEL7.2  RHEL7.2安装 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款