没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
单机版本12c的安装
一、安装centos6.5和修改主名
桌面版,推荐nat模式,简单
1 [root@localhost~]#cat/etc/sysconfig/network
2 NETWORKING=yes
3 HOSTNAME=ora12c
4 [root@localhost~]#cat/etc/hosts
5 #127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdo
main4
6 #::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6
7 127.0.0.1localhost
8 192.168.181.131ora12c
9 [root@localhost~]#hostnameora12c
二、网卡配置
2.1查看网关和DNS
先用dhcp方式获取ip,查相应网关和dns,然后再配置
1 [root@ora12c~]#route‐n
2 KernelIProutingtable
3 DestinationGatewayGenmaskFlagsMetricRefUseIface
4 192.168.181.00.0.0.0255.255.255.0U100eth0
5 0.0.0.0192.168.181.20.0.0.0UG000eth0
6 [root@ora12c~]#dig|grepSERVER
7 ;;SERVER:192.168.181.2#53(192.168.181.2)
8 [root@ora12c~]#
9 [root@ora12c~]#nslookupwww.baidu.com
10 Server:192.168.181.2
11 Address:192.168.181.2#53
12
13 Non‐authoritativeanswer:
14 www.baidu.comcanonicalname=www.a.shifen.com.
15 Name:www.a.shifen.com
16 Address:61.135.169.121
17 Name:www.a.shifen.com
18 Address:61.135.169.125
2.2配置网卡信息
1 [root@ora12c~]#cat/etc/sysconfig/network‐scripts/ifcfg‐eth0
2 DEVICE=eth0
3 HWADDR=00:0C:29:26:FF:8F
4 TYPE=Ethernet
5 UUID=62d7445e‐a9b4‐4c4f‐9e86‐3ca680097643
6 ONBOOT=yes
7 NM_CONTROLLED=yes
8 BOOTPROTO=none
9 IPADDR=192.168.181.131
10 NETMASK=255.255.255.0
11 GATEWAY=192.168.181.2
12 DNS1=192.168.181.2
13 DNS2=114.114.114.114
14
15 [root@ora12c~]#ping‐c3www.baidu.com
16 PINGwww.a.shifen.com(61.135.169.121)56(84)bytesofdata.
17 64bytesfrom61.135.169.121:icmp_seq=1ttl=128time=4.28ms
18 64bytesfrom61.135.169.121:icmp_seq=2ttl=128time=4.79ms
19 64bytesfrom61.135.169.121:icmp_seq=3ttl=128time=56.5ms
20
21 ‐‐‐www.a.shifen.compingstatistics‐‐‐
22 3packetstransmitted,3received,0%packetloss,time2060ms
23 rttmin/avg/max/mdev=4.285/21.872/56.539/24.514ms
三、配置yum源
此处使用阿里yum源,也是图个方便省事
1 [root@ora12c~]#cd/etc/yum.repos.d/
2 [root@ora12cyum.repos.d]#ll
3 总用量16
4 ‐rw‐r‐‐r‐‐.1rootroot192611月272013CentOS‐Base.repo
5 ‐rw‐r‐‐r‐‐.1rootroot63811月272013CentOS‐Debuginfo.repo
6 ‐rw‐r‐‐r‐‐.1rootroot63011月272013CentOS‐Media.repo
7 ‐rw‐r‐‐r‐‐.1rootroot366411月272013CentOS‐Vault.repo
8 [root@ora12cyum.repos.d]#mkdirbak
9 [root@ora12cyum.repos.d]#mv*.repobak/
10 [root@ora12cyum.repos.d]#ll
11 总用量4
12 drwxr‐xr‐x.2rootroot40964月2417:53bak
13 [root@ora12cyum.repos.d]#wget‐O/etc/yum.repos.d/CentOS‐Base.repohtt
p://mirrors.aliyun.com/repo/Centos‐6.repo
14 ‐‐2020‐04‐2417:54:02‐‐http://mirrors.aliyun.com/repo/Centos‐6.repo
15 正在解析主机mirrors.aliyun.com...61.240.128.239,61.182.131.226,111.16
4.16.228,...
16 正在连接mirrors.aliyun.com|61.240.128.239|:80...已连接。
17 已发出HTTP请求,正在等待回应...200OK
18 长度:2523(2.5K)[application/octet‐stream]
19 正在保存至:“/etc/yum.repos.d/CentOS‐Base.repo”
20
21 100%[================================================>]2,523‐‐.‐K/sin
0s
22
23 2020‐04‐2417:54:02(565MB/s)‐已保存“/etc/yum.repos.d/CentOS‐Base.rep
o”[2523/2523])
24
25 [root@ora12cyum.repos.d]#ll
26 总用量8
27 drwxr‐xr‐x.2rootroot40964月2417:53bak
28 ‐rw‐r‐‐r‐‐.1rootroot25236月162018CentOS‐Base.repo
29 [root@ora12cyum.repos.d]#yumcleanall
30 Loadedplugins:fastestmirror,refresh‐packagekit,security
31 Cleaningrepos:baseextrasupdates
32 CleaningupEverything
33 Cleaninguplistoffastestmirrors
四、上传安装包
安装lrzsz包,创建安装存放目录/sw,使用rz上传安装包到虚拟机
1 [root@ora12c~]#yum‐yinstalllrzsz
2 [root@ora12c~]#mkdir/sw
3 [root@ora12csw]#rz
4 [root@ora12csw]#ll
5 总用量3372756
6 ‐rw‐r‐‐r‐‐.1rootroot34536969117月212019linuxx64_12201_database.zi
p
7 [root@ora12csw]#unziplinuxx64_12201_database.zip
剩余12页未读,继续阅读
资源评论
聚悟能
- 粉丝: 18
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功