Linux下安装配置 Jdk1.6+Tomcat6+Apache2.2.x+jk_mod1.2 详解
SETP 3 Apache安装配置 1解压缩Apache,通读httpd目录里的INSTALL文件$ tar -zxvf httpd-2.2.9.tar.gz
可以把得到的文件夹移动到安装目录,比如/home/work/software/下,这里放在/home/work/software/webServer/
$ cd httpd-2.2.9
$ ./configure --help #最好先查看下编译指令
$ ./configure --prefix=/home/work/usr/local/apache2 --enable-mods-shared=all
$ make
$ make install
$ cd /home/work/usr/local/apache2
# su root
$ bin/apachectl start
编译安装--enable-so-mods-shared=all新版的安装文档里没有提示需要加载,直接./configure --prefix=/home/work/usr/local/apache2即可
安装过程要2分钟时间,完成后,切换到root账号启动Apache
在地址栏输入http://localhost/,看到 it works欢迎页表示成功
参照:http://httpd.apache.org/docs/2.2/install.html
页:
[1]