文章目录
在虚拟机上安装linux操作系统
这个之前写过
https://blog.youkuaiyun.com/yangyuCISCO/article/details/84309516
有的电脑给40G硬盘内存不够用,就比如我,所以我给的50-60G。看个人电脑。
操作系统安装好后的准备工作
使用root登陆,获取IP地址
[root@localhost ~]# dhclient
[root@localhost ~]# vim /etc/ssh/sshd_config
#UseDNS yes
UseDNS no 关闭域名解析
[root@localhost ~]# systemctl restart sshd
编辑yum配置文件
[root@localhost ~]# vim /etc/yum.repos.d/base.repo
[base]
name=base
baseurl=file:///mnt
enable=1
gpgcheck=0
[root@localhost ~]# mount /dev/sr0 /mnt
mount: /dev/sr0 is write-protected, mounting read-only
安装软件包
[root@localhost ~]#yum install -y compat-libcap1 glibc-devel ksh libaio-devel libstdc+±devel gcc gcc-c++ unixODBC
添加组和用户
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# echo oracle | passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
[root@localhost ~]# id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)
检查内核参数
共享内存
[root@localhost ~]# vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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