借鉴自apache安装教程。
$ gzip -d httpd-NN.tar.gz $ tar xvf httpd-NN.tar $ cd httpd-NN | |
$ ./configure --prefix=PREFIX | |
$ make | |
$ make install | |
$ vi PREFIX/conf/httpd.conf | |
$ PREFIX/bin/apachectl -k start |
NN must be replaced with the current version number, and PREFIX must be replaced with the filesystem path under which the server should be installed. If PREFIX is not specified, it defaults to /usr/local/apache2
.
具体可以再看:
http://httpd.apache.org/docs/2.4/install.html