Apache是世界使用排名第一的Web伺服器軟體。它可以運行在幾乎所有廣泛使用的電腦平臺上,由於其跨平臺和安全性被廣泛使用,是最流行的Web伺服器端軟體之一。快速、可靠並且可通過簡單的API擴充,將Perl/Python等解釋器編譯到伺服器中。 特點: 功能強大、配置簡單、速度快、應用廣泛、性能穩 ...
Apache是世界使用排名第一的Web伺服器軟體。它可以運行在幾乎所有廣泛使用的電腦平臺上,由於其跨平臺和安全性被廣泛使用,是最流行的Web伺服器端軟體之一。快速、可靠並且可通過簡單的API擴充,將Perl/Python等解釋器編譯到伺服器中。
特點:
功能強大、配置簡單、速度快、應用廣泛、性能穩定可靠,同時還可以做代理伺服器或負載均衡
應用場景:
運行靜態頁面、圖片(據說處理靜態小文件能力不如Nginx)
結合PHP引擎運行PHP等程式,LAMP組合
結合tomcat、resin運行jsp、java等程式
作代理、負載均衡,rewrite規則過濾等
1、Apache的安裝
檢查系統是否自帶httpd(一般自帶版本比較低,卸載掉)
[root@localhost1 software]# rpm -qa httpd*
[root@localhost1 software]#
2、如果沒有自帶 Apache 服務軟體,可以不需要進行下麵的卸載 [root@Centos ~]# rpm -e --nodeps httpd-2.2.15-54.el6.centos.x86_64 warning: /etc/httpd/conf/httpd.conf saved as /etc/httpd/conf/httpd.conf.rpmsave [root@Centos ~]# rpm -e --nodeps httpd-tools-2.2.15-54.el6.centos.x86_64
[root@localhost1 ~]# cd /home/cairui/ [root@localhost1 cairui]# ls [root@localhost1 cairui]# mkdir software [root@localhost1 cairui]# cd software/ [root@localhost1 software]# wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.34.tar.gz --2018-02-26 16:16:06-- http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.34.tar.gz Resolving mirrors.hust.edu.cn... 202.114.18.160 Connecting to mirrors.hust.edu.cn|202.114.18.160|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7684419 (7.3M) [application/octet-stream] Saving to: “httpd-2.2.34.tar.gz” 100%[====================================>] 7,684,419 212K/s in 45s 2018-02-26 16:16:52 (167 KB/s) - “httpd-2.2.34.tar.gz” saved [7684419/7684419] [root@localhost1 software]# ls httpd-2.2.34.tar.gz [root@localhost1 httpd-2.2.34]# tar zxvf httpd-2.2.34.tar.gz [root@localhost1 software]# cd httpd-2.2.34 [root@localhost1 httpd-2.2.34]# ll total 1176 -rw-r--r-- 1 1001 1001 14882 Nov 21 2004 ABOUT_APACHE -rw-r--r-- 1 1001 1001 18613 Jul 6 2012 acinclude.m4 -rw-r--r-- 1 1001 1001 56952 Oct 5 2010 Apache.dsw drwxr-xr-x 6 1001 1001 4096 Jul 6 2017 build -rw-r--r-- 1 1001 1001 2644 Aug 24 2007 BuildAll.dsp -rw-r--r-- 1 1001 1001 2692 Jul 29 2009 BuildBin.dsp -rwxr-xr-x 1 1001 1001 5786 Sep 19 2012 buildconf -rw-r--r-- 1 1001 1001 147887 Jun 28 2017 CHANGES -rw-r--r-- 1 1001 1001 11701 Feb 27 2012 config.layout -rwxr-xr-x 1 1001 1001 574593 Jul 6 2017 configure -rw-r--r-- 1 1001 1001 24720 May 25 2015 configure.in drwxr-xr-x 9 1001 1001 4096 Jul 6 2017 docs -rw-r--r-- 1 1001 1001 403 Nov 21 2004 emacs-style -rw-r--r-- 1 1001 1001 1248 May 7 2011 httpd.dep -rw-r--r-- 1 1001 1001 4124 Jun 11 2008 httpd.dsp -rw-r--r-- 1 1001 1001 8994 May 6 2011 httpd.mak -rw-r--r-- 1 1001 1001 12053 Jul 6 2017 httpd.spec drwxr-xr-x 2 1001 1001 4096 Jul 6 2017 include -rw-r--r-- 1 1001 1001 5129 Jan 9 2017 INSTALL -rw-r--r-- 1 1001 1001 2909 Dec 7 2006 InstallBin.dsp -rw-r--r-- 1 1001 1001 5145 Nov 29 2005 LAYOUT -rw-r--r-- 1 1001 1001 30119 May 7 2011 libhttpd.dep -rw-r--r-- 1 1001 1001 17039 Jan 12 2007 libhttpd.dsp -rw-r--r-- 1 1001 1001 28503 May 6 2011 libhttpd.mak -rw-r--r-- 1 1001 1001 28690 Jan 18 2008 LICENSE -rw-r--r-- 1 1001 1001 8739 Nov 25 2008 Makefile.in -rw-r--r-- 1 1001 1001 34759 Jan 19 2014 Makefile.win drwxr-xr-x 20 1001 1001 4096 Jul 6 2017 modules -rw-r--r-- 1 1001 1001 828 Jan 2 2017 NOTICE -rw-r--r-- 1 1001 1001 12894 Mar 15 2012 NWGNUmakefile drwxr-xr-x 9 1001 1001 4096 Jul 6 2017 os -rw-r--r-- 1 1001 1001 5954 Jan 10 2007 README -rw-r--r-- 1 1001 1001 4178 Aug 27 2014 README.platforms -rw-r--r-- 1 1001 1001 2553 Dec 20 2010 README-win32.txt -rw-r--r-- 1 1001 1001 10183 Mar 14 2005 ROADMAP drwxr-xr-x 3 1001 1001 4096 Jul 6 2017 server drwxr-xr-x 5 1001 1001 4096 Jul 6 2017 srclib drwxr-xr-x 4 1001 1001 4096 Jul 6 2017 support drwxr-xr-x 2 1001 1001 4096 Jul 6 2017 test -rw-r--r-- 1 1001 1001 8183 Oct 17 2005 VERSIONING
[root@localhost1 httpd-2.2.34]# cat README Apache HTTP Server What is it? ----------- The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet. As a project of the Apache Software Foundation, the developers aim to collaboratively develop and maintain a robust, commercial-grade, standards-based server with freely available source code. The Latest Version ------------------ Details of the latest version can be found on the Apache HTTP server project page under <http://httpd.apache.org/>. Documentation ------------- The documentation available as of the date of this release is included in HTML format in the docs/manual/ directory. The most up-to-date documentation for the 2.2.x releases can be found at <http://httpd.apache.org/docs/2.2/>. Installation ------------ Please see the file called INSTALL. Platform specific notes can be found in README.platforms. Licensing --------- Please see the file called LICENSE. Cryptographic Software Notice #加密軟體的通知 ----------------------------- This distribution may include software that has been designed for use with cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See <http://www.wassenaar.org/> for more information. The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code. The following provides more details on the included files that may be subject to export controls on cryptographic software: Apache httpd 2.0 and later versions include the mod_ssl module under modules/ssl/ for configuring and listening to connections over SSL encrypted network sockets by performing calls to a general-purpose encryption library, such as OpenSSL or the operating system's platform-specific SSL facilities. In addition, some versions of apr-util provide an abstract interface for SSL encrypted network sockets in the files under the directory srclib/apr-util/ssl/ that makes use of a general-purpose encryption library, such as OpenSSL or the operating system's platform-specific SSL facilities. Apache httpd currently does not use that apr-util interface. Some object code distributions of Apache httpd, indicated with the word "crypto" in the package name, may include object code for the OpenSSL encryption library as distributed in open source form from <http://www.openssl.org/source/>. The above files are optional and may be removed if the cryptographic functionality is not desired or needs to be excluded from redistribution. Distribution packages of Apache httpd that include the word "nossl" in the package name have been created without the above files and are therefore not subject to this notice. Contacts -------- o If you want to be informed about new code releases, bug fixes, security fixes, general news and information about the Apache server subscribe to the apache-announce mailing list as described under <http://httpd.apache.org/lists.html#http-announce> o If you want freely available support for running Apache please join the Apache user community by subscribing to Users Mailing List at <http://httpd.apache.org/userslist.html> or one of the following USENET newsgroups: comp.infosystems.www.servers.unix comp.infosystems.www.servers.ms-windows Also available at: <http://groups.google.com/groups?group=comp.infosystems.www.servers> o If you want commercial support for running Apache please contact one of the companies and contractors which are listed at <http://www.apache.org/info/support.cgi> o If you have a concrete bug report for Apache please go to the Apache Group Bug Database and submit your report: <http://httpd.apache.org/bug_report.html> o If you want to participate in actively developing Apache please subscribe to the `[email protected]' mailing list as described at <http://httpd.apache.org/lists.html#http-dev> Acknowledgments ---------------- We wish to acknowledge the following copyrighted works that make up portions of the Apache software: Portions of this software were developed at the National Center for Supercomputing Applications (NCSA) at the University of Illinois at Urbana-Champaign. This software contains code derived from the RSA Data Security Inc. MD5 Message-Digest Algorithm, including various modifications by Spyglass Inc., Carnegie Mellon University, and Bell Communications Research, Inc (Bellcore). Regular expression support is provided by the PCRE library package, which is open source software, written by Philip Hazel, and copyright by the University of Cambridge, England. The original software is available from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ Apache 2 relies heavily on the use of autoconf and libtool to provide a build environment.
[root@localhost1 httpd-2.2.34]# cat INSTALL APACHE INSTALLATION OVERVIEW CAUTION ------- This package represents a legacy version of the Apache HTTP Server software and is not current. Please note that Apache Web Server Project will only provide maintenance releases of the 2.2.x flavor through June of 2017, and will provide some security patches beyond this date through at least December of 2017. Minimal maintenance patches of 2.2.x are expected throughout this period, and users are strongly discouraged from deploying this legacy release. #不建議安裝較低版本,因為不會再維護 Also note, this package includes very stale and known-vulnerable versions of the Expat [http://expat.sourceforge.net/] and PCRE [http://www.pcre.org/] packages. Users are strongly encouraged to first install the most recent versions of these components. #強烈建議安裝最新版本 Quick Start - Unix ------------------ For complete installation documentation, see [ht]docs/manual/install.html or http://httpd.apache.org/docs/2.2/install.html $ ./configure --prefix=PREFIX $ make $ make install $ PREFIX/bin/apachectl start NOTES: * Replace PREFIX with the filesystem path under which Apache should be installed. A typical installation might use "/usr/local/apache2" for PREFIX (without the quotes). * If you are a developer who will be linking your code with Apache or using a debugger to step through server code, ./configure's --with-included-apr option may be advantageous, as it removes the possibility of version or compile-option mismatches with APR and APR-util code. (Many OSes now include their own version of APR and APR-util.) * If you are a developer building Apache directly from Subversion, you will need to run ./buildconf before running configure. This script bootstraps the build environment and requires Python as well as GNU autoconf and libtool. If you build Apache from a release tarball, you don't have to run buildconf. * If you want to build a threaded MPM (for instance worker) on FreeBSD, be aware that threads do not work well with Apache on FreeBSD versions before 5.4-RELEASE. If you wish to try a threaded Apache on an earlier version of FreeBSD, use the --enable-threads parameter to ./configure in addition to the --with-mpm parameter. * If you are building directly from Subversion on Mac OS X (Darwin), make sure to use GNU Libtool 1.4.2 or newer. All recent versions of the developer tools on this platform include a sufficiently recent version of GNU Libtool (named glibtool, but buildconf knows where to find it). For a short impression of what possibilities you have, here is a typical example which configures Apache for the installation tree /sw/pkg/apache with a particular compiler and flags plus the two additional modules mod_rewrite and mod_speling for later loading through the DSO mechanism: $ CC="pgcc" CFLAGS="-O2" \ ./configure --prefix=/sw/pkg/apache \ --enable-rewrite=shared \ --enable-speling=shared The easiest way to find all of the configuration flags for Apache 2.2 is to run ./configure --help. Quick Start - Windows --------------------- For complete documentation, see manual/platform/windows.html.en or http://httpd.apache.org/docs/2.2/platform/windows.html. The Apache/Win32 binaries are distributed as Windows Installer packages (.msi) named httpd-2.2.xx-win32-x86-no_ssl.msi for a version without mod_ssl and httpd-2.2.xx-win32-x86-openssl-0.9.8x.msi for a version including the mod_ssl plus the openssl library and command line utility. These packages may be unpacked without "installing" them by using the msiexec /a option. If you have unpacked a source distribution (named httpd-2.2.x-win32-src.zip, without any -x86 notation) you must compile the package yourself, see the links mentioned above. Unless you intended to do this, please look again for the binary package from http://www.apache.org/dist/httpd/binaries/win32/ and install the desired .msi package. The .msi package configures the httpd.conf file, and installs and starts the Apache2.2 service for you. It also installs plenty of useful shortcuts and the taskbar ApacheMonitor. We strongly encourage you to use it. Postscript ---------- The Apache HTTP Server group cannot field user's installation questions. There are many valuable forums to help you get started. Please refer your questions to the appropriate forum, such as the Users Mailing List at http://httpd.apache.org/userslist.html or the usenet newsgroups comp.infosystems.www.servers.unix or comp.infosystems.www.servers.ms-windows. Thanks for using the Apache HTTP Server, version 2.2. The Apache Software Foundation http://www.apache.org/
[root@localhost1 httpd-2.2.34]# ./configure --help `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. #指定環境變數(例如,CC, CFLAGS…),指定它們為。VAR =價值。以下是一些有用的變數的描述。
Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX #指定安裝目錄,預設為/usr/local/apache2 [/usr/local/apache2] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/apache2/bin', `/usr/local/apache2/lib' etc. You can specify an installation prefix other than `/usr/local/apache2' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: #安裝目錄的微調 --bindir=DIR user executables [EPREFIX/bin] #用戶可執行文件 --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] Optional Features: #可選特性 --disable-option-checking ignore unrecognized --enable/--with options #忽略 unrecognized --enable/--with選項 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) #不包括FEATURE(和 --enale-FEATURE=no一樣) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-layout=LAYOUT --enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections #允許IPv6處理IPv4連接 --enable-exception-hook Enable fatal exception hook --enable-maintainer-mode Turn on debugging and compile time warnings #打開調試並且編譯時警告 --enable-pie Build httpd as a Position Independent Executable --enable-modules=MODULE-LIST Space-separated list of modules to enable | "all" | "most" --enable-mods-shared=MODULE-LIST Space-separated list of shared modules to enable | "all" | "most" --disable-authn-file file-based authentication control --enable-authn-dbm DBM-based authentication control --enable-authn-anon anonymous user authentication control --enable-authn-dbd SQL-based authentication control --disable-authn-default authentication backstopper --enable-authn-alias auth provider alias --disable-authz-host host-based authorization control --disable-authz-groupfile 'require group' authorization control --disable-authz-user 'require user' authorization control --enable-authz-dbm DBM-based authorization control --enable-authz-owner 'require file-owner' authorization control --enable-authnz-ldap LDAP based authentication --disable-authz-default authorization control backstopper --disable-auth-basic basic authentication --enable-auth-digest RFC2617 Digest authentication --enable-isapi isapi extension support --enable-file-cache File cache --enable-cache dynamic file caching --enable-disk-cache disk caching module --enable-mem-cache memory caching module --enable-dbd Apache DBD Framework --enable-bucketeer buckets manipulation filter --enable-dumpio I/O dump filter --enable-echo ECHO server --enable-example example and demo module --enable-case-filter example uppercase conversion filter --enable-case-filter-in example uppercase conversion input filter --enable-reqtimeout Limit time waiting for request from client --enable-ext-filter external filter module --disable-include Server Side Includes --disable-filter Smart Filtering --enable-substitute response content rewrite-like filtering --disable-charset-lite character set translation --enable-charset-lite character set translation --enable-deflate Deflate transfer encoding support #壓縮傳輸編碼的支持,提高傳輸速度,提升用戶訪問體驗 --enable-ldap LDAP caching and connection pooling services --disable-log-config logging configuration --enable-log-forensic forensic logging --enable-logio input and output logging --disable-env clearing/setting of ENV vars --enable-mime-magic automagically determining MIME type --enable-cern-meta CERN-type meta files --enable-expires Expires header control #EXPIRES頭部控制,激活允許通過配置文件控制HTTP的頭文件,即對網站的圖片等內容,提供在客戶端瀏覽器緩存的設置 --enable-headers HTTP header control #HTTP的頭部控制 --enable-ident RFC 1413 identity check --enable-usertrack user-session tracking --enable-unique-id per-request unique ids --disable-setenvif basing ENV vars on headers --disable-version determining httpd version in config files --enable-proxy Apache proxy module --enable-proxy-connect Apache proxy CONNECT module --enable-proxy-ftp Apache proxy FTP module --enable-proxy-http Apache proxy HTTP module --enable-proxy-scgi Apache proxy SCGI module --enable-proxy-ajp Apache proxy AJP module --enable-proxy-balancer Apache proxy BALANCER module --enable-ssl SSL/TLS support (mod_ssl) --enable-distcache Select distcache support in mod_ssl --enable-optional-hook-export example optional hook exporter --enable-optional-hook-import example optional hook importer --enable-optional-fn-import example optional function importer --enable-optional-fn-export example optional function exporter --enable-static-support Build a statically linked version of the support binaries --enable-static-htpasswd Build a statically linked version of htpasswd --enable-static-htdigest Build a statically linked version of htdigest --enable-static-rotatelogs Build a statically linked version of rotatelogs --enable-static-logresolve Build a statically linked version of logresolve --enable-static-htdbm Build a statically linked version of htdbm --enable-static-ab Build a statically linked version of ab --enable-static-checkgid Build a statically linked version of checkgid --enable-static-htcacheclean Build a statically linked version of htcacheclean --enable-static-httxt2dbm Build a statically linked version of httxt2dbm --enable-http HTTP protocol handling --disable-mime mapping of file-extension to MIME --enable-dav WebDAV protocol handling --disable-status process/thread monitoring --disable-autoindex directory listing --disable-asis as-is filetypes --enable-info server information --enable-suexec set uid and gid for spawned processes --disable-cgid CGI scripts --enable-cgi CGI scripts --disable-cgi CGI scripts --enable-cgid CGI scripts --enable-dav-fs DAV provider for the filesystem --enable-dav-lock DAV provider for generic locking --enable-vhost-alias mass virtual hosting module --disable-negotiation content negotiation --disable-dir directory request handling --enable-imagemap server-side imagemaps --disable-actions Action triggering on requests --enable-speling correct common URL misspellings --disable-userdir mapping of requests to user-specific directories --disable-alias mapping of requests to different filesystem parts --enable-rewrite rule based URL manipulation #提供基於URL規則的重寫功能,根據已知URL地址,轉換其他要訪問的URL地址 --enable-so DSO capability #DSO的能力,即在以後億DSO的方式編譯安裝共用模塊 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-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. MPM={beos|event|worker|prefork|mpmt_os2|winnt} #選擇用於Apache的模式,生產模式用worker,此模式原理是更多使用線程來處理請求 --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 Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider.
2、apache依賴組件安裝
[root@localhost1 httpd-2.2.34]# yum install gcc* zlib* -y
[root@localhost1 opt]# ./configure --prefix=/opt/apache2.2.34 --enable-deflate --enable-expires --enable-headers --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite
[root@localhost1 opt]# make & make install
[root@localhost1 opt]# cd /opt/ [root@localhost1 opt]# ls apache2.2.34 [root@localhost1 opt]# ln -s apache2.2.34/ apache/ ln: target `apache/