Outline 1. installation 2. enable Nic 3. modify the host name (web.test.com) 4. modify DNS (8.8.8.8) 5. configure 163yum source 6. disable SElinux 7. disable firewall (ipv4 and ipv6) note: The 64-bit CentOS6.4 system is installed in the minimal package. it is used as a local Web server and the entire process is recorded! 1. there is nothing special about the installation and installation method, such as a CD or image. describe the format of the hard disk partition and the file system! 1. partitioning (for example, GB Hard
Outline
I. Installation
2. start the NIC
3. modify the host name (web.test.com)
4. modify DNS (8.8.8.8)
5. configure 163 yum source
6. disable SElinux
7. disable the firewall (ipv4 and ipv6)
Note: The 64-bit CentOS6.4 system is installed in the minimal package. it is used as a local Web server and the entire process is recorded!
I. Installation
There is nothing special about the installation method, such as a CD or image. describe the hard disk partition and file system format!
1. partition (for example, GB hard disk and 8 GB memory)
/Boot --- 256 M
/--- 100 GB
/Data --- all remaining
Swap --- 16G
2. file system type: ext4 is supported since CentOS 6.X. Here we select ext4! Some bloggers may ask why ext4 is selected? Is there any benefit? Hey, let me briefly describe the following: ext2, ext3, and ext4 are the key points for ext4!
3. differences between the three file systems (The following documents are from the internet. I just sorted them out and shared them with you.)
Ext2 (also known as the second extended file system): It is a standard file system in GNU/Linux systems. it features excellent file access performance and is more advantageous for small and medium files, this mainly relies on the excellent design of its cluster cache layer. The size of a single file is related to the upper limit of the file system capacity and the cluster size of the file system. In Common x86 computer systems, the maximum size of a cluster is 4 kB, the maximum size of a single file is 2048 GB, and the maximum size of the file system is 16384 GB. However, because the current core 2.4 can only use a single partition of up to 2048 GB, the actual file system capacity is only 2048 GB.
Ext3 (third extension file system): As the name suggests, it is the next generation of ext2, that is, adding the log function under the current ext2 format.
EXT4 (fourth extended file system): The file system is a log file system in Linux and a later version of the ext3 file system, but Ext4 is a revolution in the Linux file system. In many aspects, the progress of Ext4 relative to Ext3 is far more than that of Ext3 relative to Ext2. The improvement of Ext3 over Ext2 mainly lies in the log, but the improvement of Ext4 over Ext3 is deeper, and is the optimization of the data structure of the file system, is an efficient, excellent, reliable, and extremely characteristic file system, and EXT3 can be converted into EXT4.
Features and differences between EXT4 and EXT3:
Ext4 provides better performance and reliability, as well as richer features:
1. compatible with Ext3. Execute several commands to migrate from Ext3 online to Ext4 without reformatting the disk or reinstalling the system. The original Ext3 data structure is retained, and Ext4 is used for new data. of course, the entire file system also obtains a larger capacity supported by Ext4.
2. larger file systems and larger files. Compared with the Ext3 currently supports a maximum of 16 TB file systems and a maximum of 2 TB files, Ext4 supports 1 EB (1,048,576 TB, 1 EB = 1024 PB, 1 PB = TB) file systems, and 16 TB files.
3. unlimited number of subdirectories. Ext3 currently only supports 32,000 subdirectories, while Ext4 supports an unlimited number of subdirectories.
4. Extents. Ext3 uses indirect block Ing. when operating large files, the efficiency is extremely low. For example, for a 100 MB file, a ing table of 25,600 data blocks (4 KB for each data block) must be created in Ext3. Ext4 introduces the popular extents concept in modern file systems. each extent is a set of continuous data blocks, the preceding file indicates that the file data is stored in the next 25,600 data blocks, which improves the efficiency.
5. multi-block allocation. When writing data to the Ext3 file system, the Ext3 data block distributor can allocate only one 4 KB block at a time. to write a 100 MB file, it is necessary to call the 25,600 data block distributor, the multiblock allocator (mballoc) multi-block allocator of Ext4 supports allocating multiple data blocks at a time.
6. delay allocation. The data block allocation policy of Ext3 is to allocate as soon as possible, while the policy of Ext4 and other modern file operating systems is to delay the allocation as much as possible, data blocks are allocated and written to the disk only after the files are written to the cache. This optimizes the data block allocation of the entire file and significantly improves the performance with the first two features.
7. fast fsck. In the past, the first step of fsck execution was very slow, because it needs to check all inode. now, Ext4 adds a list of inode not used in each group to the inode table, in the future, the fsck Ext4 file system can skip them and only check the inode in use.
8. log verification. Logs are the most common part and can easily lead to disk hardware faults. restoring data from damaged logs will cause more data corruption. The log verification function of Ext4 can easily determine whether the log data is damaged. it also combines the two-phase log mechanism of Ext3 into one phase, which improves the performance while increasing security.
9. No Journaling mode. The log has some overhead. Ext4 allows you to disable the log so that users with special requirements can improve the performance.
10. online fragment. Although delayed allocation, multi-block allocation, and extents can effectively reduce file system fragments, fragments are inevitable. Ext4 supports online fragment and provides the e4defrag tool for fragment of individual files or the entire file system.
11. inode-related features. Ext4 supports a larger inode. compared with the default inode size of 128 bytes in Ext3, Ext4 can accommodate more extended attributes (such as the nanosecond timestamp or inode version) in inode ), by default, the inode size is 256 bytes. Ext4 also supports fast extended attributes (fastextended attributes) and inode retention (inodes reservation ).
12. Persistent preallocation ). In order to ensure sufficient storage space for the downloaded files, P2P software often creates an empty file with the same size as the downloaded file in advance, this prevents downloading failures due to insufficient disk space in the next few hours or days. Ext4 implements persistent pre-allocation at the file system level and provides the corresponding API (posix_fallocate () in libc), which is more efficient than the application software itself.
13. barrier is enabled by default. The disk is equipped with an internal cache to re-adjust the write operation sequence of batch data and optimize the write performance. Therefore, the file system must write the log data to the disk before writing the commit record, if the commit record is written first, and the log may be damaged, data integrity will be affected. In Ext4, barrier is enabled by default. only data before barrier is written to the disk can be written to data after barrier. (You can disable this feature by running the "mount-o barrier = 0" command .)
2. start the NIC
1. we can see from the title that the CentOS 6.4 Nic is not started by default, as shown in figure
Not complete, please open the second article: http://www.centoscn.com/CentOS/Intermediate/2013/0907/1573.html