Linux Base Package Compilation installation

Source: Internet
Author: User

I. The relationship between the source code type and the compiled file is not written. Look at the picture, zoom in and look at it.

650) this.width=650; "title=" source package Management "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" source package Management "src=" http://s3.51cto.com/wyfs02/M02/6C/6A/ Wkiom1vip2hrvyomaacmwyofbuy869.jpg "" 2287 "height=" 1316 "/>

Two. Instance operation of Nginx compiled installation

1. Ensure that the current system time is correct

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/6A/ Wkiom1vip2gxd9pwaabqfcsuozu468.jpg "" 572 "height="/>

2. Unpack the package and enter the package

TAR-XF nginx-1.4.2.tar.gz

CD nginx-1.4.2

Use the./configure–help for help information.

3. Installing the Software

./configure--prefix=/usr/local/nginx--conf-path=/etc/nginx/nginx.conf//Select the features you want to enable according to your needs

Note: The error message that relies on some libraries description: Which programs to rely on, package group knowledge: Main package, support package (development environment is usually in-devel package),

If you depend on a program that does not have RPM packages, you need to manually download the source program to compile the installation.

Make//Compile

Make Install//install

4. View the installation directory and configuration file directory

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/66/ Wkiol1viqnkdsk6faagjgc-a6go280.jpg "" 1148 "height="/>

5. Start Nginx

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/66/ Wkiol1viqnobru2faaizytgykg0363.jpg "" 1154 "height=" 207 "/>

Three. Install the download tool for Linux interrupt continuation Axel

1. Unzip and enter the software catalog

TAR-ZXVF axel-2.4.tar.gz

2. Installation

./configure

Make

Make install

Example:

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/6A/ Wkiom1vip2ozwfs0aalkrnb-puq821.jpg "891" height= "/>"

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/66/ Wkiol1viqnpxyw39aafoyslv7zw155.jpg "" 875 "height=" 157 "/>

3. Download the example

Axel–o/tmp–n 3 ftp://<ip>//-o Specifies the downloaded directory,-n Specifies the number of threads

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/6A/ Wkiom1vip2tx333caaymoxlpwwe382.jpg "" 828 "height=" 495 "/>

Three. Compiling and installing the HTTPD service

1. Unzip

TAR-XF httpd-2.2.25.tar.bz2

CD httpd-2.2.25

2. Installation

./configure–prefix=/usr/local/apache–sysconfdir=/etc/httpd–enable-so

Make

Make install

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/66/ Wkiol1viqntsixdcaabknk2vnsi654.jpg "" 566 "height="/>

3. Import files (Apache support two development need to import the software itself contains binary/library files/header files/Help files, etc.)

1. Export the binary program to system

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; BAC Kground-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/66/ Wkiol1viqnxj2tpuaactfub08ng872.jpg "" 740 "height="/>

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/6A/ Wkiom1vip2xssxbnaaeowuk07r0987.jpg "785" height= "/>";

2. Export the header file to the system

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/66/ Wkiol1viqnxtv43raadiohl8m44872.jpg "820" height= "/>"

3. Export the library file to the system

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/66/ Wkiol1viqnxzcxb6aacaoaf0yt4356.jpg "" 623 "height="/>

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/66/ Wkiol1viqnbgngysaagmxwuspdg684.jpg "" 719 "height=" 192 "/>

4. Export the Help file to the system

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/6A/ Wkiom1vip2bg8uxyaajgkpgvjtk349.jpg "" 953 "height=" 331 "/>

Man-m/usr/local/apache/man httpd

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/66/ Wkiol1viqnfyl3wbaahbzvt3fig872.jpg "" 1256 "height=" 209 "/>

4. Testing the site

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/66/ Wkiol1viqnfjduv4aaisw8prxqa406.jpg "" 1300 "height=" 245 "/>

Linux Base Package Compilation 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.