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