centos7.6安装Oracle11g过程记录(上)

Last login: Fri Mar 1 06:44:27 2019 from 10.0.0.3
-------------关闭防火墙和selinux
[root@vmhzporacle ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

[root@vmhzporacle ~]# systemctl stop firewalld.service
[root@vmhzporacle ~]# systemctl disable firewalld.service

[root@vmhzporacle ~]# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted


"/etc/selinux/config" 14L, 542C written
[root@vmhzporacle ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

---------解决/目录的空间不足问题----
[root@vmhzporacle ~]# reboot
Last login: Fri Mar 1 06:45:56 2019 from 10.0.0.3
[root@vmhzporacle ~]# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 4.4G 1.4G 3.1G 31% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.8M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 1014M 169M 846M 17% /boot
tmpfs 379M 0 379M 0% /run/user/0
[root@vmhzporacle ~]# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1
[root@vmhzporacle ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root centos -wi-ao---- 4.39g
swap centos -wi-ao---- 616.00m
[root@vmhzporacle ~]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 2 0 wz--n- <5.00g 0
[root@vmhzporacle ~]# reboot
Last login: Fri Mar 1 06:49:47 2019 from 10.0.0.3
[root@vmhzporacle ~]# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdc
[root@vmhzporacle ~]# pvcreate /dev/sdc
Physical volume "/dev/sdc" successfully created.
[root@vmhzporacle ~]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 2 0 wz--n- <5.00g 0
[root@vmhzporacle ~]# vgextend centos /dev/sdc
Volume group "centos" successfully extended
[root@vmhzporacle ~]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 2 0 wz--n- 12.99g <8.00g
[root@vmhzporacle ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root centos -wi-ao---- 4.39g
swap centos -wi-ao---- 616.00m
[root@vmhzporacle ~]# lvextend -L +7.98G /dev/mapper/centos-root
Rounding size to boundary between physical extents: 7.98 GiB.
Size of logical volume centos/root changed from 4.39 GiB (1125 extents) to <12.38 GiB (3168 extents).
Logical volume centos/root successfully resized.
[root@vmhzporacle ~]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 2 0 wz--n- 12.99g 16.00m
[root@vmhzporacle ~]# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 4.4G 1.4G 3.1G 31% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.8M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 1014M 169M 846M 17% /boot
tmpfs 379M 0 379M 0% /run/user/0
[root@vmhzporacle ~]# xfs_growfs /dev/mapper/centos-root
meta-data=/dev/mapper/centos-root isize=512 agcount=4, agsize=288000 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0 spinodes=0
data = bsize=4096 blocks=1152000, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 1152000 to 3244032
[root@vmhzporacle ~]# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 13G 1.4G 12G 11% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.8M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 1014M 169M 846M 17% /boot
tmpfs 379M 0 379M 0% /run/user/0

------------------------安装ftp服务
[root@vmhzporacle ~]# yum install -y vsftpd

Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): extras/7/x86_64/primary_db | 180 kB 00:01
(2/2): updates/7/x86_64/primary_db | 2.4 MB 00:02
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-25.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
vsftpd x86_64 3.0.2-25.el7 base 171 k

Transaction Summary
========================================================================
Install 1 Package

Total download size: 171 k
Installed size: 353 k
Downloading packages:
vsftpd-3.0.2-25.el7.x86_64.rpm | 171 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : vsftpd-3.0.2-25.el7.x86_64 1/1
Verifying : vsftpd-3.0.2-25.el7.x86_64 1/1

Installed:
vsftpd.x86_64 0:3.0.2-25.el7

Complete!
[root@vmhzporacle ~]#
[root@vmhzporacle ~]# systemctl start vsftpd.service
[root@vmhzporacle ~]# systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2019-03-01 06:55:34 CST; 9s ago
Process: 5713 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 5714 (vsftpd)
CGroup: /system.slice/vsftpd.service
└─5714 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Mar 01 06:55:34 vmhzporacle systemd[1]: Starting Vsftpd ftp daemon...
Mar 01 06:55:34 vmhzporacle systemd[1]: Started Vsftpd ftp daemon.
[root@vmhzporacle ~]# yum install -y psmisc net-tools systemd-devel libdb-devel perl-DBI
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package net-tools-2.0-0.24.20131004git.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libdb-devel.x86_64 0:5.3.21-24.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: perl-DBI-1.627-4.el7.x86_64
---> Package psmisc.x86_64 0:22.20-15.el7 will be installed
---> Package systemd-devel.x86_64 0:219-62.el7_6.5 will be installed
--> Processing Dependency: systemd-libs = 219-62.el7_6.5 for package: systemd-devel-219-62.el7_6.5.x86_64
--> Processing Dependency: systemd = 219-62.el7_6.5 for package: systemd-devel-219-62.el7_6.5.x86_64
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
---> Package systemd.x86_64 0:219-62.el7 will be updated
--> Processing Dependency: systemd = 219-62.el7 for package: systemd-sysv-219-62.el7.x86_64
---> Package systemd.x86_64 0:219-62.el7_6.5 will be an update
---> Package systemd-libs.x86_64 0:219-62.el7 will be updated
---> Package systemd-libs.x86_64 0:219-62.el7_6.5 will be an update
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
---> Package systemd-sysv.x86_64 0:219-62.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-62.el7_6.5 will be an update
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository
Size
========================================================================
Installing:
libdb-devel x86_64 5.3.21-24.el7 base 38 k
perl-DBI x86_64 1.627-4.el7 base 802 k
psmisc x86_64 22.20-15.el7 base 141 k
systemd-devel x86_64 219-62.el7_6.5 updates 200 k
Installing for dependencies:
perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k
perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-IO-Compress noarch 2.061-2.el7 base 260 k
perl-Net-Daemon noarch 0.48-5.el7 base 51 k
perl-PlRPC noarch 0.2020-14.el7 base 36 k
Updating for dependencies:
systemd x86_64 219-62.el7_6.5 updates 5.1 M
systemd-libs x86_64 219-62.el7_6.5 updates 407 k
systemd-sysv x86_64 219-62.el7_6.5 updates 84 k

Transaction Summary
========================================================================
Install 4 Packages (+6 Dependent packages)
Upgrade ( 3 Dependent packages)

Total download size: 7.2 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/13): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 | 32 kB 00:00
(2/13): libdb-devel-5.3.21-24.el7.x86_64.rpm | 38 kB 00:00
(3/13): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64. | 57 kB 00:00
(4/13): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00
(5/13): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:01
(6/13): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00
(7/13): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00
(8/13): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00
(9/13): psmisc-22.20-15.el7.x86_64.rpm | 141 kB 00:00
(10/13): systemd-devel-219-62.el7_6.5.x86_64.rpm | 200 kB 00:00
(11/13): systemd-sysv-219-62.el7_6.5.x86_64.rpm | 84 kB 00:00
(12/13): systemd-libs-219-62.el7_6.5.x86_64.rpm | 407 kB 00:01
(13/13): systemd-219-62.el7_6.5.x86_64.rpm | 5.1 MB 00:05
------------------------------------------------------------------------
Total 1.1 MB/s | 7.2 MB 00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : systemd-libs-219-62.el7_6.5.x86_64 1/16
Updating : systemd-219-62.el7_6.5.x86_64 2/16
Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 3/16
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 4/16
Installing : perl-Net-Daemon-0.48-5.el7.noarch 5/16
Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 6/16
Installing : perl-IO-Compress-2.061-2.el7.noarch 7/16
Installing : perl-PlRPC-0.2020-14.el7.noarch 8/16
Installing : perl-DBI-1.627-4.el7.x86_64 9/16
Installing : systemd-devel-219-62.el7_6.5.x86_64 10/16
Updating : systemd-sysv-219-62.el7_6.5.x86_64 11/16
Installing : psmisc-22.20-15.el7.x86_64 12/16
Installing : libdb-devel-5.3.21-24.el7.x86_64 13/16
Cleanup : systemd-sysv-219-62.el7.x86_64 14/16
Cleanup : systemd-219-62.el7.x86_64 15/16
Cleanup : systemd-libs-219-62.el7.x86_64 16/16
Verifying : systemd-219-62.el7_6.5.x86_64 1/16
Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 2/16
Verifying : perl-Net-Daemon-0.48-5.el7.noarch 3/16
Verifying : systemd-libs-219-62.el7_6.5.x86_64 4/16
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 5/16
Verifying : systemd-devel-219-62.el7_6.5.x86_64 6/16
Verifying : libdb-devel-5.3.21-24.el7.x86_64 7/16
Verifying : systemd-sysv-219-62.el7_6.5.x86_64 8/16
Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 9/16
Verifying : psmisc-22.20-15.el7.x86_64 10/16
Verifying : perl-DBI-1.627-4.el7.x86_64 11/16
Verifying : perl-IO-Compress-2.061-2.el7.noarch 12/16
Verifying : perl-PlRPC-0.2020-14.el7.noarch 13/16
Verifying : systemd-libs-219-62.el7.x86_64 14/16
Verifying : systemd-219-62.el7.x86_64 15/16
Verifying : systemd-sysv-219-62.el7.x86_64 16/16

Installed:
libdb-devel.x86_64 0:5.3.21-24.el7
perl-DBI.x86_64 0:1.627-4.el7
psmisc.x86_64 0:22.20-15.el7
systemd-devel.x86_64 0:219-62.el7_6.5

Dependency Installed:
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-IO-Compress.noarch 0:2.061-2.el7
perl-Net-Daemon.noarch 0:0.48-5.el7
perl-PlRPC.noarch 0:0.2020-14.el7

Dependency Updated:
systemd.x86_64 0:219-62.el7_6.5
systemd-libs.x86_64 0:219-62.el7_6.5
systemd-sysv.x86_64 0:219-62.el7_6.5

Complete!
[root@vmhzporacle ~]# systemctl restart vsftpd.service
[root@vmhzporacle ~]# systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2019-03-01 06:56:53 CST; 7s ago
Process: 5826 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 5827 (vsftpd)
CGroup: /system.slice/vsftpd.service
└─5827 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Mar 01 06:56:53 vmhzporacle systemd[1]: Stopped Vsftpd ftp daemon.
Mar 01 06:56:53 vmhzporacle systemd[1]: Starting Vsftpd ftp daemon...
Mar 01 06:56:53 vmhzporacle systemd[1]: Started Vsftpd ftp daemon.
[root@vmhzporacle ~]# systemctl enable vsftpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@vmhzporacle ~]# cd /etc/vsftpd
[root@vmhzporacle vsftpd]# ls
ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh
[root@vmhzporacle vsftpd]# vim ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
"ftpusers" 15L, 126C written
[root@vmhzporacle vsftpd]# ls
ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh
[root@vmhzporacle vsftpd]# vim user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
"user_list" 20L, 362C written
[root@vmhzporacle vsftpd]# systemctl restart vsftpd.service

------------利用ftp服务上传Oracle安装包
[root@vmhzporacle vsftpd]# cd /home
[root@vmhzporacle home]# ls
oracle-11.2.0.4.rar
[root@vmhzporacle home]# ls -l
total 16320
-rw-r--r-- 1 root root 13732308 Mar 1 07:01 oracle-11.2.0.4.rar
[root@vmhzporacle home]# ls -l
total 32704
-rw-r--r-- 1 root root 22674055 Mar 1 07:01 oracle-11.2.0.4.rar

------------安装解压缩软件WinRAR
[root@vmhzporacle home]# wget https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz
--2019-03-01 07:01:53-- https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz
Resolving www.rarlab.com (www.rarlab.com)... 5.135.104.98
Connecting to www.rarlab.com (www.rarlab.com)|5.135.104.98|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 536028 (523K) [application/x-gzip]
Saving to: ‘rarlinux-x64-5.5.0.tar.gz’

100%[==============================>] 536,028 7.30KB/s in 63s

2019-03-01 07:02:59 (8.26 KB/s) - ‘rarlinux-x64-5.5.0.tar.gz’ saved [536028/536028]

[root@vmhzporacle home]# ls -l
total 262604
-rw-r--r-- 1 root root 149663103 Mar 1 07:03 oracle-11.2.0.4.rar
-rw-r--r-- 1 root root 536028 Aug 11 2017 rarlinux-x64-5.5.0.tar.gz
[root@vmhzporacle home]# tar -xzvf rarlinux-x64-5.5.0.tar.gz
rar/
rar/order.htm
rar/acknow.txt
rar/readme.txt
rar/default.sfx
rar/license.txt
rar/rarfiles.lst
rar/whatsnew.txt
rar/makefile
rar/rar
rar/unrar
rar/rar.txt
[root@vmhzporacle home]# ls
oracle-11.2.0.4.rar rar rarlinux-x64-5.5.0.tar.gz
[root@vmhzporacle home]# cd rar
[root@vmhzporacle rar]# ls
acknow.txt makefile rarfiles.lst unrar
default.sfx order.htm rar.txt whatsnew.txt
license.txt rar readme.txt
[root@vmhzporacle rar]# make
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib

--------------安装xclock服务,以便后续图形化安装Oracle
[root@vmhzporacle rar]# cd ..
[root@vmhzporacle home]# ls
oracle-11.2.0.4.rar rar rarlinux-x64-5.5.0.tar.gz
[root@vmhzporacle home]# yum -y install xclock
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.7-7.el7 will be installed
--> Processing Dependency: libxkbfile.so.1()(64bit) for package: xorg-x11-apps-7.7-7.el7.x86_64
--> Processing Dependency: libXmuu.so.1()(64bit) for package: xorg-x11-apps-7.7-7.el7.x86_64
--> Processing Dependency: libXmu.so.6()(64bit) for package: xorg-x11-apps-7.7-7.el7.x86_64
--> Processing Dependency: libXaw.so.7()(64bit) for package: xorg-x11-apps-7.7-7.el7.x86_64
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.13-4.el7 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: libXaw-1.0.13-4.el7.x86_64
---> Package libXmu.x86_64 0:1.1.2-2.el7 will be installed
---> Package libxkbfile.x86_64 0:1.0.9-3.el7 will be installed
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
xorg-x11-apps x86_64 7.7-7.el7 base 307 k
Installing for dependencies:
libXaw x86_64 1.0.13-4.el7 base 192 k
libXmu x86_64 1.1.2-2.el7 base 71 k
libXpm x86_64 3.5.12-1.el7 base 55 k
libxkbfile x86_64 1.0.9-3.el7 base 83 k

Transaction Summary
========================================================================
Install 1 Package (+4 Dependent packages)

Total download size: 708 k
Installed size: 1.7 M
Downloading packages:
(1/5): libXmu-1.1.2-2.el7.x86_64.rpm | 71 kB 00:00
(2/5): libXaw-1.0.13-4.el7.x86_64.rpm | 192 kB 00:01
(3/5): libxkbfile-1.0.9-3.el7.x86_64.rpm | 83 kB 00:00
(4/5): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00
(5/5): xorg-x11-apps-7.7-7.el7.x86_64.rpm | 307 kB 00:00
------------------------------------------------------------------------
Total 417 kB/s | 708 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libXmu-1.1.2-2.el7.x86_64 1/5
Installing : libxkbfile-1.0.9-3.el7.x86_64 2/5
Installing : libXpm-3.5.12-1.el7.x86_64 3/5
Installing : libXaw-1.0.13-4.el7.x86_64 4/5
Installing : xorg-x11-apps-7.7-7.el7.x86_64 5/5
Verifying : libXaw-1.0.13-4.el7.x86_64 1/5
Verifying : libXpm-3.5.12-1.el7.x86_64 2/5
Verifying : libXmu-1.1.2-2.el7.x86_64 3/5
Verifying : libxkbfile-1.0.9-3.el7.x86_64 4/5
Verifying : xorg-x11-apps-7.7-7.el7.x86_64 5/5

Installed:
xorg-x11-apps.x86_64 0:7.7-7.el7

Dependency Installed:
libXaw.x86_64 0:1.0.13-4.el7 libXmu.x86_64 0:1.1.2-2.el7
libXpm.x86_64 0:3.5.12-1.el7 libxkbfile.x86_64 0:1.0.9-3.el7

Complete!
[root@vmhzporacle home]# export DISPLAY=172.16.1.153:0.0
[root@vmhzporacle home]# xclock

--------------建立Oracle安装用户及组、安装目录和路径,及权限设置
[root@vmhzporacle home]# groupadd oinstall
[root@vmhzporacle home]# groupadd dba
[root@vmhzporacle home]# useradd -g oinstall -g dba -m oracle
[root@vmhzporacle home]# groups oracle
oracle : dba
[root@vmhzporacle home]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@vmhzporacle home]# id oracle
uid=1000(oracle) gid=1001(dba) groups=1001(dba)
[root@vmhzporacle home]# mkdir -p /data/oracle
[root@vmhzporacle home]# mkdir -p /data/oraInventory
[root@vmhzporacle home]# mkdir -p /data/database
[root@vmhzporacle home]# cd /data
[root@vmhzporacle data]# ls
database oracle oraInventory

[root@vmhzporacle data]# ls
database oraInventory
[root@vmhzporacle data]# mkdir -p /data/oracle
[root@vmhzporacle data]# ls
database oracle oraInventory
[root@vmhzporacle data]# chown -R oracle:oinstall /data/oracle
[root@vmhzporacle data]# chown -R oracle:oinstall /data/oraInventory
[root@vmhzporacle data]# chown -R oracle:oinstall /data/database

--------------修改系统内核
[root@vmhzporacle data]# vi /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
"/etc/redhat-release" 1L, 10C written
[root@vmhzporacle data]# cat /etc/redhat-release
redhat-7

----------------安装Oracle软件所需的软件包和依赖包
[root@vmhzporacle data]# yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package binutils-2.27-34.base.el7.x86_64 already installed and latest version
Package elfutils-libelf-0.172-2.el7.x86_64 already installed and latest version
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Package libgcc-4.8.5-36.el7.x86_64 already installed and latest version
Package libstdc++-4.8.5-36.el7.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
No package sysstat-7.* available.
No package pdksh* available.
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
---> Package elfutils-libelf-devel.x86_64 0:0.172-2.el7 will be installed
--> Processing Dependency: pkgconfig(zlib) for package: elfutils-libelf-devel-0.172-2.el7.x86_64
---> Package elfutils-libelf-devel-static.x86_64 0:0.172-2.el7 will be installed
---> Package gcc.x86_64 0:4.8.5-36.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-36.el7 for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-36.el7.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-36.el7 will be installed
---> Package glibc.x86_64 0:2.17-260.el7 will be updated
---> Package glibc.x86_64 0:2.17-260.el7_6.3 will be an update
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-260.el7_6.3 will be an update
---> Package glibc-devel.x86_64 0:2.17-260.el7_6.3 will be installed
---> Package glibc-headers.x86_64 0:2.17-260.el7_6.3 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.3.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.3.x86_64
---> Package ksh.x86_64 0:20120801-139.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-36.el7 will be installed
---> Package unixODBC.x86_64 0:2.3.1-11.el7 will be installed
---> Package unixODBC-devel.x86_64 0:2.3.1-11.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-36.el7 will be installed
---> Package kernel-headers.x86_64 0:3.10.0-957.5.1.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository
Size
========================================================================
Installing:
compat-libstdc++-33 x86_64 3.2.3-72.el7 base 191 k
elfutils-libelf-devel x86_64 0.172-2.el7 base 39 k
elfutils-libelf-devel-static x86_64 0.172-2.el7 base 75 k
gcc x86_64 4.8.5-36.el7 base 16 M
gcc-c++ x86_64 4.8.5-36.el7 base 7.2 M
glibc-devel x86_64 2.17-260.el7_6.3 updates 1.1 M
glibc-headers x86_64 2.17-260.el7_6.3 updates 683 k
ksh x86_64 20120801-139.el7 base 885 k
libaio-devel x86_64 0.3.109-13.el7 base 13 k
libstdc++-devel x86_64 4.8.5-36.el7 base 1.5 M
unixODBC x86_64 2.3.1-11.el7 base 413 k
unixODBC-devel x86_64 2.3.1-11.el7 base 55 k
Updating:
glibc x86_64 2.17-260.el7_6.3 updates 3.7 M
glibc-common x86_64 2.17-260.el7_6.3 updates 12 M
Installing for dependencies:
cpp x86_64 4.8.5-36.el7 base 5.9 M
kernel-headers x86_64 3.10.0-957.5.1.el7 updates 8.0 M
libmpc x86_64 1.0.1-3.el7 base 51 k
mpfr x86_64 3.1.1-4.el7 base 203 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k

Transaction Summary
========================================================================
Install 12 Packages (+5 Dependent packages)
Upgrade 2 Packages

Total download size: 58 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/19): elfutils-libelf-devel-0.172-2.el7.x86_64.r | 39 kB 00:01
(2/19): compat-libstdc++-33-3.2.3-72.el7.x86_64.rp | 191 kB 00:02
(3/19): elfutils-libelf-devel-static-0.172-2.el7.x | 75 kB 00:08
(4/19): gcc-c++-4.8.5-36.el7.x86_64.rpm | 7.2 MB 00:18
(5/19): glibc-devel-2.17-260.el7_6.3.x86_64.rpm | 1.1 MB 00:02
(6/19): cpp-4.8.5-36.el7.x86_64.rpm | 5.9 MB 00:22
(7/19): glibc-headers-2.17-260.el7_6.3.x86_64.rpm | 683 kB 00:06
(8/19): ksh-20120801-139.el7.x86_64.rpm | 885 kB 00:02
(9/19): libaio-devel-0.3.109-13.el7.x86_64.rpm | 13 kB 00:00
(10/19): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00
(11/19): libstdc++-devel-4.8.5-36.el7.x86_64.rpm | 1.5 MB 00:03
(12/19): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00
(13/19): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:01
(14/19): unixODBC-devel-2.3.1-11.el7.x86_64.rpm | 55 kB 00:00
(15/19): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00
(16/19): glibc-2.17-260.el7_6.3.x86_64.rpm | 3.7 MB 00:39
(17/19): gcc-4.8.5-36.el7.x86_64.rpm | 16 MB 00:43
(18/19): glibc-common-2.17-260.el7_6.3.x86_64.rpm | 12 MB 00:56
(19/19): kernel-headers-3.10.0-957.5.1.el7.x86_64. | 8.0 MB 00:48
------------------------------------------------------------------------
Total 837 kB/s | 58 MB 01:10
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : glibc-common-2.17-260.el7_6.3.x86_64 1/21
Updating : glibc-2.17-260.el7_6.3.x86_64 2/21
Installing : mpfr-3.1.1-4.el7.x86_64 3/21
Installing : libmpc-1.0.1-3.el7.x86_64 4/21
Installing : cpp-4.8.5-36.el7.x86_64 5/21
Installing : unixODBC-2.3.1-11.el7.x86_64 6/21
Installing : libstdc++-devel-4.8.5-36.el7.x86_64 7/21
Installing : kernel-headers-3.10.0-957.5.1.el7.x86_64 8/21
Installing : glibc-headers-2.17-260.el7_6.3.x86_64 9/21
Installing : glibc-devel-2.17-260.el7_6.3.x86_64 10/21
Installing : gcc-4.8.5-36.el7.x86_64 11/21
Installing : zlib-devel-1.2.7-18.el7.x86_64 12/21
Installing : elfutils-libelf-devel-0.172-2.el7.x86_64 13/21
Installing : elfutils-libelf-devel-static-0.172-2.el7.x86_64 14/21
Installing : gcc-c++-4.8.5-36.el7.x86_64 15/21
Installing : unixODBC-devel-2.3.1-11.el7.x86_64 16/21
Installing : ksh-20120801-139.el7.x86_64 17/21
Installing : compat-libstdc++-33-3.2.3-72.el7.x86_64 18/21
Installing : libaio-devel-0.3.109-13.el7.x86_64 19/21
Cleanup : glibc-common-2.17-260.el7.x86_64 20/21
Cleanup : glibc-2.17-260.el7.x86_64 21/21
Verifying : elfutils-libelf-devel-0.172-2.el7.x86_64 1/21
Verifying : glibc-devel-2.17-260.el7_6.3.x86_64 2/21
Verifying : elfutils-libelf-devel-static-0.172-2.el7.x86_64 3/21
Verifying : zlib-devel-1.2.7-18.el7.x86_64 4/21
Verifying : glibc-2.17-260.el7_6.3.x86_64 5/21
Verifying : kernel-headers-3.10.0-957.5.1.el7.x86_64 6/21
Verifying : ksh-20120801-139.el7.x86_64 7/21
Verifying : gcc-4.8.5-36.el7.x86_64 8/21
Verifying : glibc-common-2.17-260.el7_6.3.x86_64 9/21
Verifying : mpfr-3.1.1-4.el7.x86_64 10/21
Verifying : compat-libstdc++-33-3.2.3-72.el7.x86_64 11/21
Verifying : libaio-devel-0.3.109-13.el7.x86_64 12/21
Verifying : libmpc-1.0.1-3.el7.x86_64 13/21
Verifying : unixODBC-devel-2.3.1-11.el7.x86_64 14/21
Verifying : gcc-c++-4.8.5-36.el7.x86_64 15/21
Verifying : cpp-4.8.5-36.el7.x86_64 16/21
Verifying : libstdc++-devel-4.8.5-36.el7.x86_64 17/21
Verifying : unixODBC-2.3.1-11.el7.x86_64 18/21
Verifying : glibc-headers-2.17-260.el7_6.3.x86_64 19/21
Verifying : glibc-2.17-260.el7.x86_64 20/21
Verifying : glibc-common-2.17-260.el7.x86_64 21/21

Installed:
compat-libstdc++-33.x86_64 0:3.2.3-72.el7
elfutils-libelf-devel.x86_64 0:0.172-2.el7
elfutils-libelf-devel-static.x86_64 0:0.172-2.el7
gcc.x86_64 0:4.8.5-36.el7
gcc-c++.x86_64 0:4.8.5-36.el7
glibc-devel.x86_64 0:2.17-260.el7_6.3
glibc-headers.x86_64 0:2.17-260.el7_6.3
ksh.x86_64 0:20120801-139.el7
libaio-devel.x86_64 0:0.3.109-13.el7
libstdc++-devel.x86_64 0:4.8.5-36.el7
unixODBC.x86_64 0:2.3.1-11.el7
unixODBC-devel.x86_64 0:2.3.1-11.el7

Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7
kernel-headers.x86_64 0:3.10.0-957.5.1.el7
libmpc.x86_64 0:1.0.1-3.el7
mpfr.x86_64 0:3.1.1-4.el7
zlib-devel.x86_64 0:1.2.7-18.el7

Updated:
glibc.x86_64 0:2.17-260.el7_6.3
glibc-common.x86_64 0:2.17-260.el7_6.3

Complete!

-----------------修改系统内核参数和限制-----------
[root@vmhzporacle data]# vi /etc/sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
fs.file-max = 6815744 #设置最大打开文件数
kernel.shmall = 2097152 #共享内存的总量,8G内存设置:2097152*4k/1024/102kernel.shmmni = 4096 #整个系统共享内存端的最大数
net.core.wmem_default= 262144
"/etc/sysctl.conf" 24L, 1024C written

[root@vmhzporacle data]# vi /etc/security/limits.conf
# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4

# End of file
# End of file

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024
oracle hard nofile 65536
"/etc/security/limits.conf" 65L, 2518C written

[root@vmhzporacle data]# vi /home/oracle/.bash_profile
# .bash_profile

# Get the aliases and functions
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
# .bash_profile

# Get the aliases and functions
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export ORACLE_SID=orcl #oracle启动数据库实例名
export LANG=C #防止安装过程出现乱码
"/home/oracle/.bash_profile" 21L, 764C written
[root@vmhzporacle data]# source /home/oracle/.bash_profile
[root@vmhzporacle data]# cat /home/oracle/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

export ORACLE_BASE=/data/oracle #oracle数据库安装目录
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 #oracle数据库路径
export ORACLE_SID=orcl #oracle启动数据库实例名
export ORACLE_TERM=xterm #xterm窗口模式安装
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH #添加系统环境变量
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib #添加系统环境变量
export LANG=C #防止安装过程出现乱码
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK #设置Oracle客户端字符集,必须与Oracle安装时设置的字符集保持一致

------------查看系统默认启动方式(图形或多用户命令行)
[root@vmhzporacle home]# cd /usr/share/xsessions/
[root@vmhzporacle xsessions]# ls
[root@vmhzporacle xsessions]# systemctl get-default
multi-user.target

--------------安装系统tab自动补全命令包
[root@vmhzporacle home]# rpm -qa|grep bash-completion
[root@vmhzporacle home]# yum -y install bash-completion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:2.1-6.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
bash-completion noarch 1:2.1-6.el7 base 85 k

Transaction Summary
========================================================================
Install 1 Package

Total download size: 85 k
Installed size: 259 k
Downloading packages:
bash-completion-2.1-6.el7.noarch.rpm | 85 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:bash-completion-2.1-6.el7.noarch 1/1
Verifying : 1:bash-completion-2.1-6.el7.noarch 1/1

Installed:
bash-completion.noarch 1:2.1-6.el7

Complete!
[root@vmhzporacle home]# yum install -y epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
epel-release noarch 7-11 extras 15 k

Transaction Summary
========================================================================
Install 1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1

Installed:
epel-release.noarch 0:7-11

Complete!
Last login: Fri Mar 1 06:52:05 2019 from 10.0.0.3
[root@vmhzporacle ~]# systemctl re
reboot reload-or-restart reset-failed
reenable reload-or-try-restart restart
reload rescue

------------------安装系统桌面,不一定必须要按照的
[root@vmhzporacle ~]# systemctl get-default
multi-user.target
[root@vmhzporacle ~]# yum grouplist
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile

[root@vmhzporacle ~]# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* epel: mirror01.idc.hinet.net
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
*

Complete!
[root@vmhzporacle ~]# cat /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#
[root@vmhzporacle ~]# reboot

原文地址:https://www.cnblogs.com/tiantom/p/10454845.html