Installing Apache under Linux

Source: Internet
Author: User

Before learning to install the Linux system is mainly to learn lamp, Linux is now installed, a lot of specific commands, for me or a small white, intends to use learning, now intends to install Apache.

Because just got the network and language, so now according to the suggestions of the big boys, the application of the system in the first update, anyway there is no restore card, there are big guy, random toss.

In advance, it may be necessary to enter the administrator password in the middle, because there are several times to enter the password, so I do not specifically describe the need to enter the password when the input.

Press Ctrl+alt+t to open the Terminal page, and then enter the command:

sudo apt-get  updatesudo apt-get Upgrade

The first command accesses each URL in the source table and reads the list of software, which is then saved on the local computer. The list of software that we see in the newly made Package manager is updated with the update command. (Update software list)

The second command compares the locally installed software with the software listed in the software list you just downloaded and prompts you to update if you find that the installed software version is too low. (Update software)

When you enter Y for the updated software, enter Y and wait patiently.

Wait until the software is updated and enter the command:

sudo apt-get Install Apache2

To install Apache 2, automatically download the latest version and confirm the installation.

After installation, you also need to confirm whether the installation is complete, enter the address in the Linux browser:

http://localhost/

Or

http://127.0.0.1

If the following page appears:

It proves that Apache is already installed and, conversely, attempts to repeat the operation.

Installing Apache under Linux

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.