Centos operating system installation tutorial

Source: Internet
Author: User
Tags strong password

Centos is a free version of Red Hat Enterprise Linux (RHEL) for the commercial version. It is an ideal Lamp Operating System with excellent stability. Unlike Ubuntu, centos is mainly used for servers rather than the desktop environment. Many large commercial websites use the centos operating system. I once described a series of architecture solutions in lamp website architecture solution analysis, here we take centos as an example to describe how to install and build the lamp environment.

First, you need to download the iso of the centos operating system. Click here. The latest version is 5.3. There are two types of files to download. One is the CD version and six disks are required, to download the file for CentOS-5.3-i386-bin-1of6.iso, CentOS-5.3-i386-bin-2of6.iso, CentOS-5.3-i386-bin-3of6.iso, CentOS-5.3-i386-bin-4of6.iso, CentOS-5.3-i386-bin-5of6.iso, CentOS-5.3-i386-bin-6of6.iso, a DVD version, to a disk, download file for CentOS-5.3-i386-bin-DVD.iso, 3.7g capacity.

After the download is complete, use the Nero and other CD recording software to convert and burn the ISO image file into a CD or a DVD.

Format the server hard disk, insert it into the first disk of the CD or DVD, and start the installation program of centos.

When the disc starts, the "Boot:" prompt appears. Press enter to enter the graphic installation interface. If you have a question about whether to test the CD media, select "Skip" to skip the test.

On the language selection page, select Simplified Chinese for installation if you want to use a Chinese system.

Select "American English style" as the keyboard ".

In the subsequent partition settings, if the hard disk does not have other systems, you can choose to delete all partitions. If there is a Windows system, you can choose to delete Linux partitions.

Next, configure the network. You can configure the network address based on your actual situation.

Set the time zone and select a city based on your own time zone.

Next, set the root password. Because root is a system administrator user, set a strong password to prevent cracking.

In the installation of the application software interface, because we want to install the lamp environment, we should click "customize now ".

In "server", select "World Wide Web server ".

Click "optional software packages" and select the module to be installed. By default, modules such as Apache, MySQL, and PHP are installed.

Then, the system will prompt you to need those installation discs and prepare them.

Next is the installation process. During the process, the system will prompt you to change the disk.

After the installation is complete, a configuration page is displayed.

In firewall settings, we need to open the http port because we need to set up a website.

Then, you can create an unmanaged personal account.

After the restart, the installation is complete. On the centos logon page, enter the root user and root password to log on.

Enter the user name and password To Go To The centos main interface.

In "System"-"management"-"service", check httpd and mysqld to enable the service automatically.

Next, go to the terminal interface and edit/etc/httpd/CONF/httpd. CONF file. You can perform detailed settings on the Apache server and test the PHP file. You can create a file to/var/www/html/info. PHP with the following content:

Phpinfo ();
?>

Use Firefox to open http: // 127.0.0.1/info. php. If the page is displayed, PHP is configured successfully.

So far, a complete lamp (Linux + Apache + MySQL + PHP) environment has been installed.

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.