redhat 安装系统步骤
选择
1.第一个
2.Tab 键,空格
3.必须选英文
4.basic storage device
5.yes,discard any data
6.Aisa/shanghai 或chongqing
7.设置密码 redhat. —> Use any—>use all space—>write chanes to disk
8.Desktop 选择立即安装软件包,语言支持中文chinese
9.reboot
Welcome: 同意
License: 同意
Information: 同意
Set up software: no
Updates: 下一步
Create user: 下一步
Date and time: 下一步
Kdump: 取消勾选 (是一个内核崩溃保护分析机制)
重启
1.1.1首次登陆
勾选do not show me this again
Init 0是关机命令
1.1.2 root 登陆系统后的设置
1)关闭防火墙
Setup命令
Firewalld 用空格取消enabled的*
2)禁用selinux
vim /etc/selinux/config
修改
SELINUX=disabled
1、安装vmware-tools
点击解压出来的文件vmware-tools-distrib 右键open in terminal
在该终端执行命令:./vmware-install.pl
vmware-tools-distrib/vmware-install.pl
[root@rhel64 cdrom]# cd /tmp/
[root@rhel64 tmp]# ls
keyring-K77cPe virtual-root.cy67g5
orbit-gdm vmware-tools-distrib
orbit-root yum.log
pulse-G8PdLP2Aysww yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
pulse-llNZgEZuKULo yum_save_tx-2023-06-16-18-26zMziwY.yumtx
virtual-root.8mYVea
[root@rhel64 tmp]# ll
total 40
drwx------ 2 root root 4096 Jun 16 17:35 keyring-K77cPe
drwx------ 2 gdm gdm 4096 Jun 16 17:35 orbit-gdm
drwx------ 2 root root 4096 Jun 16 17:39 orbit-root
drwx------. 2 root root 4096 Jun 16 17:35 pulse-G8PdLP2Aysww
drwx------. 2 gdm gdm 4096 Jun 16 17:36 pulse-llNZgEZuKULo
drwx------ 2 root root 4096 Jun 16 17:35 virtual-root.8mYVea
drwx------. 2 root root 4096 Jun 16 17:24 virtual-root.cy67g5
drwxr-xr-x 9 root root 4096 Jun 13 2019 vmware-tools-distrib
-rw-------. 1 root root 0 Jun 16 17:09 yum.log
-rw------- 1 root root 212 Jun 16 18:26 yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
-rw------- 1 root root 212 Jun 16 18:26 yum_save_tx-2023-06-16-18-26zMziwY.yumtx
[root@rhel64 tmp]# ls
keyring-K77cPe virtual-root.cy67g5
orbit-gdm vmware-tools-distrib
orbit-root yum.log
pulse-G8PdLP2Aysww yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
pulse-llNZgEZuKULo yum_save_tx-2023-06-16-18-26zMziwY.yumtx
virtual-root.8mYVea
[root@rhel64 tmp]# cd vmware-tools-distrib/
[root@rhel64 vmware-tools-distrib]# ls
bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl
[root@rhel64 vmware-tools-distrib]# sh vmware-install.pl
vmware-install.pl: line 8: use: command not found
vmware-install.pl: line 9: syntax error near unexpected token `('
vmware-install.pl: line 9: `use IO::Handle qw( ); # For autoflush'
[root@rhel64 vmware-tools-distrib]# ll
total 400
drwxr-xr-x 2 root root 4096 Jun 13 2019 bin
drwxr-xr-x 5 root root 4096 Jun 13 2019 caf
drwxr-xr-x 2 root root 4096 Jun 13 2019 doc
drwxr-xr-x 5 root root 4096 Jun 13 2019 etc
-rw-r--r-- 1 root root 146996 Jun 13 2019 FILES
-rw-r--r-- 1 root root 2538 Jun 13 2019 INSTALL
drwxr-xr-x 2 root root 4096 Jun 13 2019 installer
drwxr-xr-x 14 root root 4096 Jun 13 2019 lib
drwxr-xr-x 3 root root 4096 Jun 13 2019 vgauth
-rwxr-xr-x 1 root root 227024 Jun 13 2019 vmware-install.pl
[root@rhel64 vmware-tools-distrib]# sh vmware-install.pl
vmware-install.pl: line 8: use: command not found
vmware-install.pl: line 9: syntax error near unexpected token `('
vmware-install.pl: line 9: `use IO::Handle qw( ); # For autoflush'
[root@rhel64 vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
INPUT: [/usr/bin] default
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
INPUT: [/etc/rc.d] default
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
INPUT: [/etc/rc.d/init.d] default
In which directory do you want to install the daemon files?
[/usr/sbin]
INPUT: [/usr/sbin] default
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
INPUT: [/usr/lib/vmware-tools] default
The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
INPUT: [yes] default
In which directory do you want to install the common agent library files?
[/usr/lib]
INPUT: [/usr/lib] default
In which directory do you want to install the common agent transient files?
[/var/lib]
INPUT: [/var/lib] default
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
INPUT: [/usr/share/doc/vmware-tools] default
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
INPUT: [yes] default
The installation of VMware Tools 10.3.10 build-13959562 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
INPUT: [yes] default
Initializing...
Making sure services for VMware Tools are stopped.
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes]
INPUT: [yes] default
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment. Do you wish to enable this feature?
[yes]
INPUT: [yes] default
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.
Would you like to enable VMware automatic kernel modules?
[yes]
INPUT: [yes] default
Disabling timer-based audio scheduling in pulseaudio.
Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes]
INPUT: [yes] default
Do you want to enable Common Agent (caf)? [no]
INPUT: [no] default
Detected X server version 1.13.0
Distribution provided drivers for Xorg X server are used.
Skipping X configuration because X drivers are not included.
Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
vmware-tools start/running
The configuration of VMware Tools 10.3.10 build-13959562 for Linux for this
running kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session
3. Restart your X session.
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
Enjoy,
--the VMware team
[root@rhel64 vmware-tools-distrib]# shutdown now -h
Broadcast message from root@rhel64
(/dev/pts/1) at 18:52 ...
The system is going down for halt NOW!
[root@rhel64 vmware-tools-distrib]#
Last login: Fri Jun 16 18:40:20 2023 from 192.168.186.1
2、挂载光盘,配置本地数据源
[root@rhel64 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
20G 4.0G 15G 22% /
tmpfs 2.0G 224K 2.0G 1% /dev/shm
/dev/sda1 485M 38M 422M 9% /boot
/dev/mapper/vg_rhel64-lv_u01
51G 180M 49G 1% /u01
/dev/sr0 3.5G 3.5G 0 100% /media/RHEL_6.4 x86_64 Disc 1
[root@rhel64 ~]# mount /dev/sr0 /mnt/cdrom
mount: mount point /mnt/cdrom does not exist
[root@rhel64 ~]# cd /mnt/
[root@rhel64 mnt]# ls
hgfs
[root@rhel64 mnt]# mkdir cdrom
[root@rhel64 mnt]# mount /dev/sr0 /mnt/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@rhel64 mnt]# ls
cdrom hgfs
[root@rhel64 mnt]# cd /etc/yum.repos.d/
[root@rhel64 yum.repos.d]# ls
packagekit-media.repo rhel-source.repo rhel-source.repo.bak
[root@rhel64 yum.repos.d]# more rhel-source.repo
[rhel64]
name=rhel64
baseurl=file:///mnt/cdrom/Server
gpgcheck=0
3、系统版本、内存检查
[root@rhel64 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]# free -m
total used free shared buffers cached
Mem: 3946 810 3135 0 27 497
-/+ buffers/cache: 286 3660
Swap: 8095 0 8095
[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.0G 224K 2.0G 1% /dev/shm
[root@rhel64 yum.repos.d]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root / ext4 defaults 1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_u01 /u01 ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@rhel64 yum.repos.d]#
4、修改系统内存参数
[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.0G 224K 2.0G 1% /dev/shm
[root@rhel64 yum.repos.d]# cat /etc/fstab
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root / ext4 defaults 1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_u01 /u01 ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
~
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root / ext4 defaults 1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_u01 /u01 ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@rhel64 yum.repos.d]# vi /etc/fstab
[root@rhel64 yum.repos.d]# more /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root / ext4 defaults 1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_u01 /u01 ext4 defaults 1 2
/dev/mapper/vg_rhel64-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=2500M 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@rhel64 yum.repos.d]# mount -o remount /dev/shm
[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.5G 224K 2.5G 1% /dev/shm
[root@rhel64 yum.repos.d]#
5、查看本地主机名解析
[root@rhel64 yum.repos.d]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.186.10 rhel64
[root@rhel64 yum.repos.d]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rhel64
GATEWAY=192.168.186.1
[root@rhel64 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]#
6、磁盘空间检查,临时空间必须大于1G,软件空间必须大于2G,查看系统内核需求
oracle 安装内核必须高于Linux version 2.6.32-71.el6.x86_64 or later
[root@rhel64 yum.repos.d]#
[root@rhel64 yum.repos.d]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
20G 4.0G 15G 22% /
[root@rhel64 yum.repos.d]# df -h /u01
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_u01
51G 180M 49G 1% /u01
[root@rhel64 yum.repos.d]# cat /proc/version
Linux version 2.6.32-358.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013
#高于2.6.32-71
[root@rhel64 yum.repos.d]# lsb_release -id
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]#
[root@rhel64 yum.repos.d]# uname -r
2.6.32-358.el6.x86_64
[root@rhel64 yum.repos.d]#
软件包检查
[root@rhel64 yum.repos.d]# rpm -qa binutilscompat-libcap1compat-libstdc++ gcc gcc-c++glibcglibc-develglibc-devel-libgcclibstdclibstdc++-devellibaiolibaio-develmakesysstat |grep "not installed"
[root@rhel64 yum.repos.d]# rpm -q binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel- libgcc libstdc libstdc++-devel libaio libaio-devel make sysstat |grep "not installed"
package compat-libstdc++ is not installed
package gcc is not installed
package gcc-c++ is not installed
package glibc-devel- is not installed
package libstdc is not installed
package libstdc++-devel is not installed
package libaio-devel is not installed
[root@rhel64 yum.repos.d]#
检查本地源配置
[root@rhel64 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
20G 4.0G 15G 22% /
tmpfs 2.5G 224K 2.5G 1% /dev/shm
/dev/sda1 485M 38M 422M 9% /boot
/dev/mapper/vg_rhel64-lv_u01
51G 180M 49G 1% /u01
/dev/sr0 3.5G 3.5G 0 100% /media/RHEL_6.4 x86_64 Disc 1
/dev/sr0 3.5G 3.5G 0 100% /mnt/cdrom
[root@rhel64 ~]# cat /etc/yum.repos.d/
packagekit-media.repo rhel-source.repo rhel-source.repo.bak
[root@rhel64 ~]# cat /etc/yum.repos.d/rhel-source.repo
[rhel64]
name=rhel64
baseurl=file:///mnt/cdrom/Server
gpgcheck=0
```c
yum安装包
```c
#yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
[root@rhel64 ~]# yum install binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel- libgcc libstdc libstdc++-devel libaio libaio-devel make sysstat -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package compat-libcap1-1.10-1.x86_64 already installed and latest version
No package compat-libstdc++ available.
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
No package glibc-devel- available.
Package libgcc-4.4.7-3.el6.x86_64 already installed and latest version
No package libstdc available.
Package libaio-0.3.107-10.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package sysstat-9.0.4-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: cpp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-3.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-3.el6.x86_64
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-3.el6 will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-3.el6 will be installed
---> Package glibc-devel.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.107.el6.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.12-1.107.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc x86_64 4.4.7-3.el6 rhel64 10 M
gcc-c++ x86_64 4.4.7-3.el6 rhel64 4.7 M
libaio-devel x86_64 0.3.107-10.el6 rhel64 13 k
libstdc++-devel x86_64 4.4.7-3.el6 rhel64 1.6 M
Installing for dependencies:
cloog-ppl x86_64 0.15.7-1.2.el6 rhel64 93 k
cpp x86_64 4.4.7-3.el6 rhel64 3.7 M
glibc-devel x86_64 2.12-1.107.el6 rhel64 974 k
glibc-headers x86_64 2.12-1.107.el6 rhel64 604 k
mpfr x86_64 2.4.1-6.el6 rhel64 156 k
ppl x86_64 0.10.2-11.el6 rhel64 1.3 M
Transaction Summary
================================================================================
Install 10 Package(s)
Total download size: 23 M
Installed size: 56 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 84 MB/s | 23 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mpfr-2.4.1-6.el6.x86_64 1/10
Installing : cpp-4.4.7-3.el6.x86_64 2/10
Installing : glibc-headers-2.12-1.107.el6.x86_64 3/10
Installing : glibc-devel-2.12-1.107.el6.x86_64 4/10
Installing : ppl-0.10.2-11.el6.x86_64 5/10
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 6/10
Installing : gcc-4.4.7-3.el6.x86_64 7/10
Installing : libstdc++-devel-4.4.7-3.el6.x86_64 8/10
Installing : gcc-c++-4.4.7-3.el6.x86_64 9/10
Installing : libaio-devel-0.3.107-10.el6.x86_64 10/10
Verifying : gcc-c++-4.4.7-3.el6.x86_64 1/10
Verifying : gcc-4.4.7-3.el6.x86_64 2/10
Verifying : libaio-devel-0.3.107-10.el6.x86_64 3/10
Verifying : mpfr-2.4.1-6.el6.x86_64 4/10
Verifying : glibc-devel-2.12-1.107.el6.x86_64 5/10
Verifying : cpp-4.4.7-3.el6.x86_64 6/10
Verifying : libstdc++-devel-4.4.7-3.el6.x86_64 7/10
Verifying : ppl-0.10.2-11.el6.x86_64 8/10
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 9/10
Verifying : glibc-headers-2.12-1.107.el6.x86_64 10/10
Installed:
gcc.x86_64 0:4.4.7-3.el6 gcc-c++.x86_64 0:4.4.7-3.el6
libaio-devel.x86_64 0:0.3.107-10.el6 libstdc++-devel.x86_64 0:4.4.7-3.el6
Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-3.el6
glibc-devel.x86_64 0:2.12-1.107.el6 glibc-headers.x86_64 0:2.12-1.107.el6
mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6
Complete!
[root@rhel64 ~]#
yum重新安装包
[root@rhel64 ~]# yum install gcc* binutils* compat* glibc* ksh* libgcc* libstdc* libaio* make* sysstat* unixODBC* -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package gcc-4.4.7-3.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-3.el6.x86_64 already installed and latest version
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package compat-db-4.6.21-15.el6.x86_64 already installed and latest version
Package compat-opensm-libs-3.3.5-3.el6.x86_64 already installed and latest version
Package compat-libf2c-34-3.4.6-19.el6.x86_64 already installed and latest version
Package compat-openmpi-psm-1.4.3-1.el6.x86_64 already installed and latest version
Package 1:compat-openldap-2.3.43-2.el6.x86_64 already installed and latest version
Package compat-libgfortran-41-4.1.2-39.el6.x86_64 already installed and latest version
Package 1:compat-glibc-headers-2.5-46.2.x86_64 already installed and latest version
Package 1:compat-glibc-2.5-46.2.x86_64 already installed and latest version
Package compat-libstdc++-296-2.96-144.el6.i686 already installed and latest version
Package compat-openmpi-1.4.3-1.el6.x86_64 already installed and latest version
Package compat-libtermcap-2.0.8-49.el6.x86_64 already installed and latest version
Package compat-db42-4.2.52-15.el6.x86_64 already installed and latest version
Package compat-db43-4.3.29-15.el6.x86_64 already installed and latest version
Package compat-expat1-1.95.8-8.el6.x86_64 already installed and latest version
Package compat-readline5-5.2-17.1.el6.x86_64 already installed and latest version
Package compat-libcap1-1.10-1.x86_64 already installed and latest version
Package compat-libstdc++-33-3.2.3-69.el6.x86_64 already installed and latest version
Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-common-2.12-1.107.el6.x86_64 already installed and latest version
Package libgcc-4.4.7-3.el6.x86_64 already installed and latest version
Package libstdc++-4.4.7-3.el6.x86_64 already installed and latest version
Package libstdc++-devel-4.4.7-3.el6.x86_64 already installed and latest version
Package libaio-0.3.107-10.el6.x86_64 already installed and latest version
Package libaio-devel-0.3.107-10.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package sysstat-9.0.4-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package binutils-devel.x86_64 0:2.20.51.0.2-5.36.el6 will be installed
--> Processing Dependency: zlib-devel for package: binutils-devel-2.20.51.0.2-5.36.el6.x86_64
---> Package compat-dapl.x86_64 1:1.2.19-2.el6 will be installed
---> Package compat-gcc-34.x86_64 0:3.4.6-19.el6 will be installed
---> Package compat-gcc-34-c++.x86_64 0:3.4.6-19.el6 will be installed
---> Package compat-gcc-34-g77.x86_64 0:3.4.6-19.el6 will be installed
---> Package gcc-gfortran.x86_64 0:4.4.7-3.el6 will be installed
---> Package gcc-gnat.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libgnat-devel = 4.4.7-3.el6 for package: gcc-gnat-4.4.7-3.el6.x86_64
--> Processing Dependency: libgnat = 4.4.7-3.el6 for package: gcc-gnat-4.4.7-3.el6.x86_64
---> Package gcc-java.x86_64 0:4.4.7-3.el6 will be installed
rhel64/filelists_db | 3.7 MB 00:00 ...
--> Processing Dependency: libgcj-devel = 4.4.7-3.el6 for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj = 4.4.7-3.el6 for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: /usr/share/java/eclipse-ecj.jar for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgij.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj_bc.so.1()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj-tools.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
---> Package gcc-objc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libobjc = 4.4.7-3.el6 for package: gcc-objc-4.4.7-3.el6.x86_64
--> Processing Dependency: libobjc.so.2()(64bit) for package: gcc-objc-4.4.7-3.el6.x86_64
---> Package gcc-objc++.x86_64 0:4.4.7-3.el6 will be installed
---> Package glibc-utils.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: libgd.so.2()(64bit) for package: glibc-utils-2.12-1.107.el6.x86_64
---> Package ksh.x86_64 0:20100621-19.el6 will be installed
---> Package libstdc++-docs.x86_64 0:4.4.7-3.el6 will be installed
---> Package makebootfat.x86_64 0:1.4-10.el6 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
---> Package unixODBC-devel.x86_64 0:2.2.14-12.el6_3 will be installed
--> Running transaction check
---> Package ecj.x86_64 1:3.4.2-6.el6 will be installed
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
---> Package gd.x86_64 0:2.0.35-11.el6 will be installed
---> Package libgcj.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgcj-devel.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgnat.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgnat-devel.x86_64 0:4.4.7-3.el6 will be installed
---> Package libobjc.x86_64 0:4.4.7-3.el6 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed
--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Running transaction check
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed
--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64
--> Running transaction check
---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
binutils-devel x86_64 2.20.51.0.2-5.36.el6 rhel64 686 k
compat-dapl x86_64 1:1.2.19-2.el6 rhel64 98 k
compat-gcc-34 x86_64 3.4.6-19.el6 rhel64 3.7 M
compat-gcc-34-c++ x86_64 3.4.6-19.el6 rhel64 10 M
compat-gcc-34-g77 x86_64 3.4.6-19.el6 rhel64 2.1 M
gcc-gfortran x86_64 4.4.7-3.el6 rhel64 4.7 M
gcc-gnat x86_64 4.4.7-3.el6 rhel64 8.7 M
gcc-java x86_64 4.4.7-3.el6 rhel64 3.7 M
gcc-objc x86_64 4.4.7-3.el6 rhel64 3.6 M
gcc-objc++ x86_64 4.4.7-3.el6 rhel64 4.0 M
glibc-utils x86_64 2.12-1.107.el6 rhel64 160 k
ksh x86_64 20100621-19.el6 rhel64 686 k
libstdc++-docs x86_64 4.4.7-3.el6 rhel64 14 M
makebootfat x86_64 1.4-10.el6 rhel64 42 k
unixODBC x86_64 2.2.14-12.el6_3 rhel64 378 k
unixODBC-devel x86_64 2.2.14-12.el6_3 rhel64 53 k
Installing for dependencies:
ecj x86_64 1:3.4.2-6.el6 rhel64 2.8 M
gd x86_64 2.0.35-11.el6 rhel64 142 k
java-1.5.0-gcj x86_64 1.5.0.0-29.1.el6 rhel64 146 k
java_cup x86_64 1:0.10k-5.el6 rhel64 197 k
libgcj x86_64 4.4.7-3.el6 rhel64 19 M
libgcj-devel x86_64 4.4.7-3.el6 rhel64 1.6 M
libgnat x86_64 4.4.7-3.el6 rhel64 908 k
libgnat-devel x86_64 4.4.7-3.el6 rhel64 3.3 M
libobjc x86_64 4.4.7-3.el6 rhel64 90 k
sinjdoc x86_64 0.5-9.1.el6 rhel64 705 k
zlib-devel x86_64 1.2.3-29.el6 rhel64 44 k
Transaction Summary
================================================================================
Install 27 Package(s)
Total download size: 85 M
Installed size: 330 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 83 MB/s | 85 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgcj-4.4.7-3.el6.x86_64 1/27
Installing : zlib-devel-1.2.3-29.el6.x86_64 2/27
Installing : libgnat-4.4.7-3.el6.x86_64 3/27
Installing : compat-gcc-34-3.4.6-19.el6.x86_64 4/27
Installing : libgnat-devel-4.4.7-3.el6.x86_64 5/27
Installing : libgcj-devel-4.4.7-3.el6.x86_64 6/27
Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 7/27
Installing : 1:java_cup-0.10k-5.el6.x86_64 8/27
Installing : sinjdoc-0.5-9.1.el6.x86_64 9/27
Installing : 1:ecj-3.4.2-6.el6.x86_64 10/27
Installing : unixODBC-2.2.14-12.el6_3.x86_64 11/27
Installing : gd-2.0.35-11.el6.x86_64 12/27
Installing : libobjc-4.4.7-3.el6.x86_64 13/27
Installing : gcc-objc-4.4.7-3.el6.x86_64 14/27
Installing : gcc-objc++-4.4.7-3.el6.x86_64 15/27
Installing : glibc-utils-2.12-1.107.el6.x86_64 16/27
Installing : unixODBC-devel-2.2.14-12.el6_3.x86_64 17/27
Installing : gcc-java-4.4.7-3.el6.x86_64 18/27
Installing : gcc-gnat-4.4.7-3.el6.x86_64 19/27
Installing : compat-gcc-34-g77-3.4.6-19.el6.x86_64 20/27
Installing : binutils-devel-2.20.51.0.2-5.36.el6.x86_64 21/27
Installing : makebootfat-1.4-10.el6.x86_64 22/27
Installing : gcc-gfortran-4.4.7-3.el6.x86_64 23/27
Installing : ksh-20100621-19.el6.x86_64 24/27
Installing : libstdc++-docs-4.4.7-3.el6.x86_64 25/27
Installing : 1:compat-dapl-1.2.19-2.el6.x86_64 26/27
Installing : compat-gcc-34-c++-3.4.6-19.el6.x86_64 27/27
Verifying : sinjdoc-0.5-9.1.el6.x86_64 1/27
Verifying : libobjc-4.4.7-3.el6.x86_64 2/27
Verifying : compat-gcc-34-3.4.6-19.el6.x86_64 3/27
Verifying : 1:compat-dapl-1.2.19-2.el6.x86_64 4/27
Verifying : 1:java_cup-0.10k-5.el6.x86_64 5/27
Verifying : libstdc++-docs-4.4.7-3.el6.x86_64 6/27
Verifying : compat-gcc-34-g77-3.4.6-19.el6.x86_64 7/27
Verifying : gcc-gnat-4.4.7-3.el6.x86_64 8/27
Verifying : gd-2.0.35-11.el6.x86_64 9/27
Verifying : glibc-utils-2.12-1.107.el6.x86_64 10/27
Verifying : gcc-java-4.4.7-3.el6.x86_64 11/27
Verifying : libgnat-4.4.7-3.el6.x86_64 12/27
Verifying : unixODBC-2.2.14-12.el6_3.x86_64 13/27
Verifying : zlib-devel-1.2.3-29.el6.x86_64 14/27
Verifying : ksh-20100621-19.el6.x86_64 15/27
Verifying : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 16/27
Verifying : binutils-devel-2.20.51.0.2-5.36.el6.x86_64 17/27
Verifying : unixODBC-devel-2.2.14-12.el6_3.x86_64 18/27
Verifying : compat-gcc-34-c++-3.4.6-19.el6.x86_64 19/27
Verifying : libgcj-4.4.7-3.el6.x86_64 20/27
Verifying : libgcj-devel-4.4.7-3.el6.x86_64 21/27
Verifying : libgnat-devel-4.4.7-3.el6.x86_64 22/27
Verifying : gcc-objc++-4.4.7-3.el6.x86_64 23/27
Verifying : gcc-gfortran-4.4.7-3.el6.x86_64 24/27
Verifying : gcc-objc-4.4.7-3.el6.x86_64 25/27
Verifying : makebootfat-1.4-10.el6.x86_64 26/27
Verifying : 1:ecj-3.4.2-6.el6.x86_64 27/27
Installed:
binutils-devel.x86_64 0:2.20.51.0.2-5.36.el6
compat-dapl.x86_64 1:1.2.19-2.el6
compat-gcc-34.x86_64 0:3.4.6-19.el6
compat-gcc-34-c++.x86_64 0:3.4.6-19.el6
compat-gcc-34-g77.x86_64 0:3.4.6-19.el6
gcc-gfortran.x86_64 0:4.4.7-3.el6
gcc-gnat.x86_64 0:4.4.7-3.el6
gcc-java.x86_64 0:4.4.7-3.el6
gcc-objc.x86_64 0:4.4.7-3.el6
gcc-objc++.x86_64 0:4.4.7-3.el6
glibc-utils.x86_64 0:2.12-1.107.el6
ksh.x86_64 0:20100621-19.el6
libstdc++-docs.x86_64 0:4.4.7-3.el6
makebootfat.x86_64 0:1.4-10.el6
unixODBC.x86_64 0:2.2.14-12.el6_3
unixODBC-devel.x86_64 0:2.2.14-12.el6_3
Dependency Installed:
ecj.x86_64 1:3.4.2-6.el6 gd.x86_64 0:2.0.35-11.el6
java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 java_cup.x86_64 1:0.10k-5.el6
libgcj.x86_64 0:4.4.7-3.el6 libgcj-devel.x86_64 0:4.4.7-3.el6
libgnat.x86_64 0:4.4.7-3.el6 libgnat-devel.x86_64 0:4.4.7-3.el6
libobjc.x86_64 0:4.4.7-3.el6 sinjdoc.x86_64 0:0.5-9.1.el6
zlib-devel.x86_64 0:1.2.3-29.el6
Complete!
[root@rhel64 ~]#
修改资源限制
[root@rhel64 ~]# vi /etc/security/limits.conf
[root@rhel64 ~]# more /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an 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 files
# - 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
# - msgqueue - max memory used by POSIX message queues (bytes)
# - 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
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
# End of file
[root@rhel64 ~]#
[root@rhel64 ~]# tail -8 /etc/security/limits.conf
#ftp hard nproc 0
#@student - maxlogins 4
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
# End of file
修改内核参数
[root@rhel64 ~]# vi /etc/sysctl.conf
[root@rhel64 ~]# tail -10 /etc/sysctl.conf
fs.aio-max-nr = 1048567
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@rhel64 ~]#
创建组和用户,设置密码
[root@rhel64 ~]# groupadd oinstall
[root@rhel64 ~]# groupadd dba
[root@rhel64 ~]# groupadd oper
[root@rhel64 ~]# useradd -g oinstall -G dba,oper oracle
[root@rhel64 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@rhel64 ~]# su - oracle
[oracle@rhel64 ~]$ id
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper)
[oracle@rhel64 ~]$
创建目录 ,修改属主权限
[root@rhel64 ~]# mkdir -p /u01/app/oracle
[root@rhel64 ~]# chown -R oracle:oinstall /u01
[root@rhel64 ~]# chmod -R 775 /u01/app/oracle/
[root@rhel64 ~]#
登录oracle 用户,修改oracle 环境变量并刷新环境变量:
[oracle@rhel64 ~]$ vi .bash_profile
[oracle@rhel64 ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin export PATH
umask 022
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=PROD
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8 export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
[oracle@rhel64 ~]$
[oracle@rhel64 ~]$ source .bash_profile
[oracle@rhel64 ~]$ source ~/.bash_profile
上传软件oracle,做好安装准备
[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_1of7.zip
[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_2of7.zip
[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_3of7.zip
[root@rhel64 software]# ls
database p13390677_112040_Linux-x86-64_2of7.zip
grid p13390677_112040_Linux-x86-64_3of7.zip
p13390677_112040_Linux-x86-64_1of7.zip
[root@rhel64 software]# cd database/
[root@rhel64 database]# ll
total 60
drwxr-xr-x 4 root root 4096 Aug 27 2013 install
-rw-r--r-- 1 root root 30016 Aug 27 2013 readme.html
drwxr-xr-x 2 root root 4096 Aug 27 2013 response
drwxr-xr-x 2 root root 4096 Aug 27 2013 rpm
-rwxr-xr-x 1 root root 3267 Aug 27 2013 runInstaller
drwxr-xr-x 2 root root 4096 Aug 27 2013 sshsetup
drwxr-xr-x 14 root root 4096 Aug 27 2013 stage
-rw-r--r-- 1 root root 500 Aug 27 2013 welcome.html[root@rhel64 software]# chown -R oracle:oinstall database/
[root@rhel64 software]# ll
total 3664220
drwxr-xr-x 7 oracle oinstall 4096 Aug 27 2013 database
drwxr-xr-x 7 root root 4096 Aug 27 2013 grid
-rw-r--r-- 1 root root 1395579832 Oct 17 2022 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root root 1151304589 Oct 17 2022 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root root 1205251894 Oct 17 2022 p13390677_112040_Linux-x86-64_3of7.zip
[root@rhel64 software]#