Rpm-q GCC See if the C language compiler is installed
In the browser input: http://mirror.bit.edu.cn/apache/httpd/
Download 2.2.29 This package
CD ~ back to the root directory ls view all files in the current directory
TAR-XJF httpd-2.2. tar.bz2 Unzip httpd this file
LS View all files in current directory
Du-sh httpd-2.2. See httpd-2.2. 29 This directory size
CD httpd-2.2. Switch to this httpd-2.2. 29 Directory, remember to enter this directory to execute the source code according to the operation
LS View current directory all information
Note: Uppercase "Install indicates installation instructions" and "Readme means instructions for use"
Vim Install view installation instructions
./configure--help View installation features options
./configure--prefix=/usr/local/apache2 define the absolute path to the installation (carriage return for installation)
Observe the installation process:
Make compile (Enter to start compiling, need to wait for a while)
LS View makefile File
Make installs the true installation, at which point the files to be installed are written to the/usr/local/apache2 directory
/usr/local/apache2/bin/apachectl start to launch the Apache service you just installed
Note: The 80 port is occupied because the previous Apache Security pack is already running and occupies 80 ports and needs to stop the security pack installation of the Apache service.
Service httpd stop to stop Apache services
/usr/local/apache2/bin/apachectl start again starts the Apache service that was just installed via the source bundle
rm-rf/usr/local/apache2/Remove the Apache2 directory directly from the installation path to uninstall the
linux-Package Management-source package installation