There are many detailed tutorials on CentOS installation. In fact, the key lies in the hard disk partition and software customization. Below I install the CentOS-6.5-i386-minimal on the VirtualBox virtual machine. 1. select Installorupgradeanexistingsystem2. skip MediaTest and select Skip3.
There are many detailed tutorials on CentOS installation. In fact, the key lies in the hard disk partition and software customization. Below I install the CentOS-6.5-i386-minimal on the VirtualBox virtual machine.
1. select Install or upgrade an existing system from the start menu.
2. Skip Media Test and select Skip
3. (some steps are omitted in the middle, and only key ones are listed here) hard disk partition
There are two suggested partitioning methods for reference to the http://www.cnblogs.com/xia520pi/archive/2012/05/16/2503770.html here:
/Boot: Used to store programs related to Linux startup, such as boot loader. the recommended size is 100 MB.
/: Linux root directory. all directories are mounted under this directory. the recommended size is 5 GB or above.
/Home: Stores the data of common users, which is the home directory of common users. the recommended size is the remaining space.
Swap: Implements virtual memory. the recommended size is physical memory.
1 ~ 2Times.
/Boot: Used for storage and Linux systems
StartupFor example, start the boot loader. the recommended size is 100 MB.
/Usr: Used to store
Applications, The related data is large. it is recommended that it be larger than 3 GB.
/Var: Used to store frequently-changing data and log files in Linux. it is recommended to be larger than 1 GB.
/Home: Stores the data of common users, which is the home directory of common users. the recommended size is the remaining space.
/: Linux root directory. all directories are mounted under this directory. the recommended size is 5 GB or above.
/Tmp: Place temporary disks in independent partitions to avoid affecting system stability when the file system is full. The recommended size is more than MB.
Swap: Implements virtual memory. the recommended size is 1 ~ of physical memory ~ 2 times.
As I am a virtual machine and only assigned 20 GB of hard disk to CentOS, I use the desktop partitioning method. Of course, the simplest way is to separate the root directory and Swap.
Next, you can install it all the time.
4. after the installation is complete and the reboot is started, only one root user is allowed by default. After using root to log on, you need to add a common user:
Useradd hadoop # User with hadoop username added
Passwd hadoop # Modify the user's hadoop password
5. disable the firewall
Service
IptablesStop # Disable IPv4 firewall
Service ip6tables stop # disable IPv6 firewall
Chkconfig iptables off # Disable IPv4 firewall startup
Chkconfig ip6tables off # disable IPv6 firewall startup
6. disable SELinux
Edit The SELinux configuration file and change SELinux = enforcing to SELinux = disabled.
Vi/etc/sysconfig/selinux # Edit the SELinux configuration file
# Locate and modify the corresponding field, save and exit
Then execute the following command to set it:
When the terminal outputs Permissive, SELinux is disabled.
7. disable unnecessary services
Run the following command to disable services temporarily unavailable:
Chkconfig auditd off
Chkconfig mdmonitor off
Chkconfig udev-post off
8. problems with Minimal installation of Minimal
After startup, if you want to perform networking operations, type ifconfig and you will find that you are not familiar with eth0. this is because eth0 is not set to boot by default. Work und: modify/etc/sysconfig/network-scripts/ifcfg-eth0 and change the field ONBOOT = no to ONBOOT = yes. Save and exit. run service network restart.
This article is relatively simple, mainly because I personally think that they have their own opinions on system installation, and the learning environment cannot be the focus. if there is time, I will complete this article, to a full CentOS installation tutorial.