5-2 Source Package Installation process

Source: Internet
Author: User

1. Installation Preparation

<1> install C language compiler GCC

<2> Download Source package: http://mirror.bit.edu.cn/apache/httpd/

Download 2.2.9 's httpd

<3> you can use WINSCP to copy the software on your computer to a virtual machine, and notice that you change the permissions

<4>rpm and source packages can be installed separately, but only one. Because it occupies the same port 80

2. Precautions for installation

<1> Source code save location:/USR/LOCAL/SRC

<2> Software Installation Location:/usr/local/

<3> How to determine the installation process error:

Installation process stopped

And there is a hint of error,warning or no

  

3. Source Package Installation Process

<1> Download Source Package

http://mirror.bit.edu.cn/apache/httpd/download httpd2.2.9 or other versions

<2> unzip the downloaded source package

TAR-ZXVF httpd-2.2.9.tar.gz

<3> go to unzip directory (must be executed)

CD httpd-2.2.9 #注意, this command is not an option but must be executed,

#因为后面讲的相关命令, the operation is the current directory, if you do not enter the decompression directory is the other directory

<4>./configure software Configuration and inspection

#基本上每个源码包都有这个命令, if not, there will be similar orders to replace their work

<1> define the required feature options--help

<2> detects if the system environment meets the installation requirements

<3> write the defined function options and the information of the inspection system environment to the makefile file for subsequent edits

<4>./configure--prefix=/usr/local/apache2

<5>make compiling

<1>make clean #若报错, you can compile the generated cache file with make clear

<6>make Install compilation

<7> start

/usr/local/apache2/bin/apachectl Start #看具体软件提供的命令

<8> If you have already started the RPM package Apache, you need to stop the RPM package Apache

Service httpd Stop

<9> specific installation and start-up can refer to the installation documentation

4. Uninstall the source package

<1> do not need to uninstall the command, directly delete the installation directory. Don't leave any junk files behind

        

5-2 Source Package Installation process

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.