Article Title: Prepare to use CentOS as a Linux server. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source, and other basic classification installation versions are CentOS 5, and do not need to install X-Window, as a functional server rather than a management server, the graphic interface is cumbersome, especially when our servers do not need many new functions (such as clusters and virtualization. Of course, installing the graphic interface makes many operations simple. However, a large number of later configurations must be performed using SSH, that is, the character interface is still used. Therefore, if the graphic interface is not installed, do not install it.
However, the installation process is best performed on the GUI, because the graphical installation interface allows you to configure more detailed projects. The graphic installation interface can be started as long as the memory reaches MB. I think since it is a server, there should be at least MB of memory, otherwise it would be too poor. Currently, I do not know whether the graphic installation interface cannot be started under certain graphics cards.
Use RAID to check whether there are so many hard disks. I don't know what the scenario is like when RAID and LVM (logical volume) work together, but I don't think there will be any problems. Except for/boot, LVM can be used in other partitions, But it is strange that I cannot find LVM on the Character installation interface. Of course, there are a lot of LVM and RAID on the graphic installation interface.
The installer provides a default partitioning method, which is too simple to use.
According to the requirements of LVM,/boot cannot be divided into LVM, so the M/boot partition must exist independently, and the current Linux mainstream File System-ext3 should be used.
The remaining hard disk space should be classified as LVM, and the following partitions should be divided in this logical volume.
A swap partition (swap) is to be divided. The size is usually twice the physical memory size, but I don't think it is much larger. The current Linux system is not the same as in the past. swap is not a must, but it is better to have such a partition for the stability of the entire server.
/Home, because it needs to store a large amount of user data and may involve disk share control, it should be split into one partition separately and the ext3 file system should also be used. The partition size depends on the specific service.
/Opt is said to be independent and used to place additional software packages. In this case, 2 GB should be enough.
/Tmp is a temporary folder, which should be independent of several hundred MB.
/Usr contains almost all the software, so it must be independent and large enough. At least 5 GB is required. Of course, 10 Gb or above is the best.
/Var because security logs and emails are all on top (by default), it is better to separate them, with at least 1 GB of space required.
/There is no root to do anything, so you must add this in the end, the size also needs several G.
When installing the software package, do not select the default one. Keep the most basic and add development tools and Samba. Install other things on your own at 1.1. After the installation is complete, the system will restart and a simple configuration will be available. Take a look at the firewall below, and then take a look at the startup Item. You can execute yum update by the way to see if there is any upgrade package available, and then upgrade it by the way.
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