How to install CentOS 6.3 _ x86_64

Source: Internet
Author: User
Tags centos
1. Start power supply:
2. Select the first item, as shown in the following figure:
3. Select the Skip address, as shown in the following figure:
4. Click Next, as shown in the figure below:
5. Select English and click Next, as shown in the following figure:
6. Select U. S. English and click Next, as shown in the following figure:
7. Select the first item and click Next, as shown in the figure below:
8. Select Yes, as shown in the following figure:
9. Default host name. Click Next, as shown in the figure below:
10. Select Asia/Shanghai as the time zone and click Next, as shown in the following figure:
11. Enter the password and click Next, as shown in the figure below:
12. Because my password settings are relatively simple, a warning is Prompted. Click Use Anyway, as shown in the figure below:
13. Select the last custom partition and click Next to partition. The partition is/boot with 200 MB, Swap with 2048 MB, and the remaining are allocated to/root partitions, as shown in the following figure:
For the relationship between Swap partitions and physical memory, see the official Oracle10gR2 documentation. The relationship table is as follows:
RAM Swap Space
Up to 512 MB 2 times the size of RAM
Between 1024 MB and 2048 MB The size of RAM 1.5 times
Between 2049 MB and 8192 MB Equal to the size of RAM
More than 8192 MB The size of RAM 0.75 times
 
14. Click Next, as shown in the following figure:
15. Click Format, as shown in the following figure:
16. Click Write changes to disk, as shown in the figure below:
17. Click Next, as shown in the figure below:
18. Select Desktop, Customize, and click Next to start installation, as shown in the figure below:
19. Add Chinese language Support, select ages, select Chinese Support, and click Next to start installation, as shown in the figure below:
20. After installation, as shown in the following figure:
21. Click Reboot to Reboot, as shown in the figure below after restart:
22. Click Forward, as shown in the following figure:
23. Click Forward, as shown in the following figure:
24. Add a common user here. I will not add it here. Click "Forward", as shown in the figure below:
25. Click Yes, as shown in the following figure:
26. Automatically Synchronize the time, select Synchronize date and time over the network, and click Forward, as shown in the figure below:
27. Click OK regardless of it, as shown in the figure below:
28. Click Finish to enter the system desktop, as shown in the figure below:
29. Log on to the system as a root user, as shown in the following figure:
30. Select Do not show me this again and click Close, as shown in the following figure:
 
So far, the operating system has been installed. To facilitate future testing, because I am a virtual machine, you can create a snapshot of the system status, so that you can quickly recover, avoid the trouble of reinstalling the system.
 
31. Configure the server IP address
[Root @ localhost ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth0
To:
DEVICE = "eth0"
BOOTPROTO = "static"
HWADDR = "00: 0C: 29: 42: 39: 31"
NM_CONTROLLED = "yes"
ONBO. OT = "yes"
TYPE = "Ethernet"
UUID = "8fa45806-a784-458a-abf5-f2d69d125808"
IPADDR = 192.168.133.129
NETMASK = 255.255.255.0
GATEWAY = 192.168.1.1
 
32. Configure DNS
[Root @ localhost ~] # Vim/etc/resolv. conf
Add as follows:
Nameserver 61.139.2.69
 
33. Restart the network service
Stop the NetworkManager service: [root @ localhost ~] #/Etc/init. d/NetworkManager stop
Restart the network service: [root @ localhost ~] #/Etc/init. d/network restart
 
34. Disable Selinux to avoid odd issues
[Root @ localhost ~] # Vim/etc/selinux/config
Change SELINUX = enforcing to SELINUX = disabled
Effective immediately: # setenforce 0
Restart takes effect: # reboot
 
35. Configure the local yum source

Upload the system installation image iso to/directory:

[Root @ localhost ~] # Ls/
Bin etc lost + found net sbin tmp
Boot home media opt selinux usr
CentOS-6.3-x86_64-bin-DVD1.iso lib misc proc srv var
Dev lib64 mnt root sys
 
[Root @ localhost ~] # Mkdir-p/mnt/iso
[Root @ localhost ~] # Mount/CentOS-6.3-x86_64-bin-DVD1.iso/mnt/iso/-o loop
[Root @ localhost ~] # Echo & quot; mount/CentOS-6.3-x86_64-bin-DVD1.iso/mnt/iso/-o loop & quot; & gt;/etc/rc. local
[Root @ localhost ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda3 18G 7.2G 9.5G 44%/
Tmpfs 569 M 260 K 569 M 1%/dev/shm
/Dev/sda1 194 M 28 M 156 M 16%/boot
CentOS-6.3-x86_64-bin-DVD1.iso
4.0G 4.0G 0 100%/mnt/iso

# Cd/etc/yum. repos. d/

Rename or delete all files in the/etc/yum. repos. d/directory except the CentOS-Media.repo, such:


[Root @ localhost yum. repos. d] # ll
Total 16
-Rw-r --. 1 root 1926 Jun 26 2012 CentOS-Base.repo
-Rw-r --. 1 root 637 Jun 26 2012 CentOS-Debuginfo.repo
-Rw-r --. 1 root 626 Jun 26 2012 CentOS-Media.repo
-Rw-r --. 1 root 2593 Jun 26 2012 CentOS-Vault.repo
[Root @ localhost yum. repos. d] # music CentOS-Base.repo CentOS-Base.repo.old
[Root @ localhost yum. repos. d] # music CentOS-Debuginfo.repo CentOS-Debuginfo.repo.old
[Root @ localhost yum. repos. d] # music CentOS-Vault.repo CentOS-Vault.repo.old
[Root @ localhost yum. repos. d] # ll
Total 16
-Rw-r --. 1 root 1926 Jun 26 2012 CentOS-Base.repo.old
-Rw-r --. 1 root 637 Jun 26 2012 CentOS-Debuginfo.repo.old
-Rw-r --. 1 root 626 Jun 26 2012 CentOS-Media.repo
-Rw-r --. 1 root 2593 Jun 26 2012 CentOS-Vault.repo.old


Modify the CentOS-Media.repo file to the following:


[CentOS-Media]
Name = CentOS-Media
Baseurl = file: // mnt/iso
Gpgcheck = 0
Enabled = 1


[Root @ localhost ~] # Yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: CentOS-Media
Cleaning up Everything
Cleaning up list of fastest mirrors
[Root @ localhost ~] # Yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
CentOS-Media | 4.0 kB...
CentOS-Media/filelists_db | 5.8 MB: 00...
CentOS-Media/primary_db | 4.5 MB...
CentOS-Media/other_db | 2.6 MB...
CentOS-Media/group_gz | 212 kB...
Metadata Cache Created
[Root @ localhost ~] #

The local yum configuration is complete.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.