編譯安裝httpd2.2.4

來源:互聯網
上載者:User

標籤:編譯安裝httpd2.2.4

編譯安裝httpd2.2.4

PHP 緩衝器:

      APC

 eAccelerator

 XCache


 

httpd+php

   CGI

   Module

   FastCGI


LAMP:

  httpd

  php53

  pgp53-mysql

  mysql-server


編譯配置LAMP:

  Linux,Apache,Mysql,PHP (Python,Perl)

 

Apache: ASF (apache 軟體基金會),httpd,tomcat, cloudware

   httpd:2.4.4

   php:5.4.13

   MySQL:5.6.10 (rpm,通用二進位,源碼)


通用二進位MySQL , 源碼包httpd , 源碼包 php

httpd-->mysql-->php-->XCache

httpd

apr: Apache portable runtime

rpm包:

  /bin  /sbin   /usr/bin    /usr/sbin

  /lib  /usr/lib

  /etc

  /usr/share/(doc,man)


 編譯安裝:

  /usr/local/

    bin  sbin

lib

etc

share/{doc,man}

  /usr/local/apr/

             bin,sbin,lib,includes,etc,share/man

 

www.apache.org -->projects-->APR


將源碼包上傳到tmp目錄下

[[email protected] tmp]# ls

apr-1.5.2.tar.bz2  apr-util-1.5.4.tar.bz2  httpd-2.4.23.tar.bz2 

[[email protected] apr-1.5.2]# hwclock -s 同步時間

[[email protected] apr-1.5.2]# date

Thu Jul 21 13:04:31 EDT 2016

[[email protected] apr-1.5.2]# cd apr-1.5.2

[[email protected] apr-1.5.2]# ./configure  --help |less

[[email protected] apr-1.5.2]# ./configure  --prefix=/usr/local/apr

[[email protected] apr-1.5.2]# make

[[email protected] apr-1.5.2]# make install


[[email protected] tmp]# tar -xf apr-util-1.5.4.tar.bz2 

[[email protected] tmp]# cd apr-util-1.5.4

[[email protected] apr-util-1.5.4]# ./configure --help |less

[[email protected] apr-util-1.5.4]# ./configure  --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   ##--with-apr指定到哪裡去找所依賴的檔案

[[email protected] apr-util-1.5.4] make

[[email protected] apr-util-1.5.4] make install


[[email protected] tmp]# tar -xf httpd-2.4.23.tar.bz2

[[email protected] httpd-2.4.23]# cd httpd-2.4.23

[[email protected] httpd-2.4.23]# yum -y install pcre-devel

[[email protected] httpd-2.4.23]# ./configure  --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-rewirte --enable-mod-ssl --enable-cgi --enable-cgid -enable-modules=most --enable-mods-shared=most --enable-mpms-shared=all  --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

[[email protected] apache]# file ./bin/apachectl 

./bin/apachectl: POSIX shell script text executable

[[email protected] bin]# /usr/local/apache/bin/apachectl start

[[email protected] htdocs]# pwd

/usr/local/apache/htdocs 此目錄下放置首頁面

[[email protected] htdocs]# ls

index.html

[[email protected] htdocs]# vim /etc/httpd/httpd.conf  設定檔

PidFile "/var/run/httd.pid"  修改pid檔案位置










本文出自 “營運成長路” 部落格,謝絕轉載!

編譯安裝httpd2.2.4

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.