linux-Package Management-source package installation

Source: Internet
Author: User

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

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.