RHEL-7学习环境搭建

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RHEL-7学习环境搭建相关的知识,希望对你有一定的参考价值。

RHEL-7.2学习环境搭建:

(一)安装系统

(二)配置系统基本参数

1、配置网卡参数:

[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736 
TYPE="Ethernet"
BOOTPROTO="static"     ##设置为静态IP
IPADDR=192.168.10.50   ##设置IP地址
NETMASK=255.255.255.0    ##设置子网掩码
GATEWAY=192.168.10.50    ##设置网关
DNS1=114.114.114.114     ##设置DNS
NAME="eno16777736"
DEVICE="eno16777736"
ONBOOT="yes"       ##是否启用

2、永久关闭防火墙和selinux

[[email protected] ~]# systemctl  status  firewalld   ##查看服务运行状态
[[email protected] ~]# systemctl stop firewalld   ##关闭防火墙
[[email protected] ~]# systemctl disable firewalld   ##永久关闭防火墙


[[email protected] ~]# setenforce 0    ##linux是关闭selinux
setenforce: SELinux is disabled


[[email protected] ~]# vim   /etc/sysconfig/selinux    ##永久关闭linux
 将enforcing改成disabled

重启生效


3、设置光盘开机自动挂载

[[email protected] ~]# echo "/dev/sr0 /mnt iso9660 defaults 0 0"  >> /etc/fstab
[[email protected] ~]# mount  -a    ##读/etc/fstab  将文件内容全挂载一下


4、配置yum源

[[email protected] ~]# rm -fr /etc/yum.repos.d/*     ##删除原有的文件
[[email protected] yum.repos.d]# cat rhel7.repo   ##创建文件 文件的格式 必须是.repo    repository仓库
[rhel7]        名称
name=rhel     描述信息
baseurl=file:///mnt     (系统盘)文件路径
enabled=1   启用
gpgcheck=0   取消验证

(三)拍摄快照


本文出自 “11628205” 博客,请务必保留此出处http://11638205.blog.51cto.com/11628205/1919665

以上是关于RHEL-7学习环境搭建的主要内容,如果未能解决你的问题,请参考以下文章

Rhel7.3_Oracle12cR2的RAC搭建安装

RHEL 7.2 搭建配置Zabbix proxy

RHEL 7.2 + Oracle 12cR2 + RAC

[AWS][GUI][VNC]rhel 7 安装GUI ,配置VNC

spring练习,在Eclipse搭建的Spring开发环境中,使用set注入方式,实现对象的依赖关系,通过ClassPathXmlApplicationContext实体类获取Bean对象(代码片段

rhel 7环境配置