In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
So Easy! Oracle installation and configuration series 1 on Linux
This article is the first installment of the installation and configuration sequence of So Easyless Oracle on linux, the construction of the basic Oracle installation environment.
VMware Workstation 11.0 configuration and CentOS-6.6-x86_64 installation
The environment and required software of this paper:
Win7 Sevice Pack1 memory 6GB
VMware Workstation 11.0 build-2305329
CentOS-6.6-x86_64-bin-DVD1.iso
Xmanger Enterprise 5 Build 0436
Creation of virtual machine in vm
Operating system installation
Operating system configuration
Connect to the operating system using Xshell in Xmanager
Use xftp in Xmanager to upload CentOS image Oracle software and configuration of YumSource
Increase the virtual memory of linux
1. Creation of virtual machine in vm
The installation of VMware Workstation 11.0 is not discussed here, basically the next step is OK!
The following steps are to create a virtual machine in win7:
Step 1: file in vm-> New Virtual Machine-> New Virtual Machine Wizard
Step 2: default to the next step
Step 3: install the operating system later. Next step.
Step 4: select the next step of Linux
Step 5: the name of the virtual machine can be arbitrary. Here is Oracle11gR2_install, and the location is arbitrary as long as there is enough space.
Step 6: configure a cpu,4 core according to the actual situation of the physical machine
Step 7: memory size 2g
Step 8: use a host-only network
Step 9: select the Iamp O controller type by default next step
Step 10: virtual disk type defaults to next step
Step 11: create a new virtual disk
Step 12: maximum disk size 120GB stores the virtual disk as a single file
Step 13: default, next step
Step 14: customize the hardware
Step 15: remove the sound card and printer and use the ISO image file to specify the location of the CentOS-6.6-x86_64-bin-DVD1.iso to close.
Step 16: finish
It's done.
two。 Operating system installation
Enable the first Install or upgrade an existion system of the virtual machine
Step 2: check whether to install the guaranteed media, Skip
Step 3: here comes the lovely interface, Next
Step 4: choose the language in simplified Chinese
Step 5: choose American English style for keyboard
Step 6: install the location basic storage device
Step 7: because the hard disk is also a new virtual hard disk and does not have any data, so choose to ignore all data
Step 8: configure after hostname installation is complete
Step 9: set the time zone to Shanghai by default, and do not select the system clock to use UTC time (default)
Step 10: set the root password
Step 11: choose how to partition to create a custom layout
Step 12: partition, divide and save
Step 13: the installation location of the bootloader is default
Step 14: the installation type of the operating system Basic Server
Step 15: start the installation and you can see that there are 15 packages
Step 16: reboot
So far, the installation of the operating system is complete.
3. Operating system configuration
The configuration of the network shows how to set up the network in vm, which was previously selected to use host-only mode network
Log in to the operating system as a root user and use the ifconfig command to view the network interface. You can see that there is only one loopback network interface lo. Using Basic Server to install the operating system eth0 network card is not enabled.
Edit / etc/sysconfig/network-scripts/ifcfg-eth0 start eth0 Nic and set IP address and subnet mask
Vim / etc/sysconfig/network-scripts/ifcfg-eth0
Note: the network setting in vm here is to use a host-only network, so you only need to use the
/ etc/sysconfig/network-scripts/ifcfg-eth0
Set the IP address and subnet mask in the file and use the command
Service network restart
You can restart the network. If the network setting in vm is to use bridge mode and you want to connect to the external network, you must use the
/ etc/sysconfig/network and / etc/resolv.conf
Set the gateway and DNS.
Modify the hostname in the / etc/sysconfig/network file
# vim / etc/sysconfig/network
HOSTNAME=Oracle.Study
4. Connect to the operating system using Xshell in Xmanager
Using the ssh protocol to connect to the linux host in xshell 5 does not require much setup, just make sure that port 22 is open:
Log in to the linux host using the ssh 192.168.23.130 command from the xhell command prompt:
5. Use xftp in Xmanager to upload CentOS image, Oracle software and configuration of YumSource
We put all the software we need on install_software.
# mkdir / install_software
# cd / install_software/
Click File upload on the xhell interface menu
Configure the local installation CD as the local yum source
Mount the CD image of CentOS 6.6
# mount-t iso9660-o loop / install_software/CentOS-6.6-x86_64-bin-DVD1.iso / mnt/cdrom
Edit / etc/fstab file to realize automatic mount on boot
# echo'/ install_software/CentOS-6.6-x86_64-bin-DVD1.iso / mnt/cdrom iso9660 loop 00'
> > / etc/fstab
Configure the local CD as the yum source:
# cd / etc/yum.repos.d/
# rm-rf *
# add vim cdrom.repo
[cdrom]
Name=from cdrom
Baseurl= file:///mnt/cdrom
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# yum clean all
# yum makecache
6. Increase the virtual memory of linux
There are two ways to add swap partitions in linux, only one of which is introduced here
Shut down the virtual machine and add a new 10G hard disk to the vm to use as a swap partition:
Partition # fdisk / dev/sdb
# swapon-s View the current swap situation
# mkswap / dev/sdb1 set swap
# swapon / dev/sdb1
# swapon-s
Add it to / etc/fstab for boot mount:
That's all for this article.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.