linux 安装httpd

来源:互联网 发布:炉石传说秋日淘宝店 编辑:程序博客网 时间:2024/06/16 00:52

安装httpd时需要参数:

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-included-apr     Use bundled copies of APR/APR-Util
  --with-apr=PATH         prefix for installed APR or the full path to
                             apr-config
  --with-apr-util=PATH    prefix for installed APU or the full path to
                             apu-config
  --with-pcre=PATH        Use external PCRE library

  --with-port=PORT        Port on which to listen (default is 80)
  --with-sslport=SSLPORT  Port on which to securelisten (default is 443)
  --with-z=DIR            use a specific zlib library
  --with-lua=PATH         Path to the Lua 5.1 prefix
  --with-serf=PREFIX      Serf client library
  --with-sslc=DIR         RSA SSL-C SSL/TLS toolkit
  --with-ssl=DIR          OpenSSL SSL/TLS toolkit
  --with-mpm=MPM          Choose the process model for Apache to use by
                          default. MPM={simple|event|worker|prefork|winnt}
                          This will be statically linked as the only available
                          MPM unless --enable-mpms-shared is also specified.
  --with-module=module-type:module-file
                          Enable module-file in the modules/<module-type>
                          directory.
  --with-program-name     alternate executable name
  --with-suexec-bin       Path to suexec binary
  --with-suexec-caller    User allowed to call SuExec
  --with-suexec-userdir   User subdirectory
  --with-suexec-docroot   SuExec root directory
  --with-suexec-uidmin    Minimal allowed UID
  --with-suexec-gidmin    Minimal allowed GID
  --with-suexec-logfile   Set the logfile
  --with-suexec-safepath  Set the safepath
  --with-suexec-umask     umask for suexec'd process

 

1、下载安装apache APR

wget http://mirror.bjtu.edu.cn/apache//apr/apr-1.4.2.tar.gz


Configuring and Building APR on Unix
====================================

Simply;

   ./configure --prefix=/desired/path/of/apr
   make
   make test
   make install

 

2、下载apr-util(使用1.3.0的版本)

     ./configure --prefix=/home/admin/tool/apr-util/ --with-apr=/home/admin/tool/apr/bin/apr-1-config

      make

      make install

 

3、下载安装pcre(同样的)

 

4、安装httpd(红色的配置是必须要配置的)

./configure --prefix=/home/admin/apache/web/ --with-apr=/home/admin/tool/apr/ --with-apr-util=/home/admin/tool/apr-util/bin/apu-1-config --with-pcre=/home/admin/tool/pcre/bin/pcre-config

 

make

make install

 

 

原创粉丝点击