- 论坛徽章:
- 0
|
jdk的安装和环境配置不写了,以前写过了.
tomcat的安装也不写了,就是解压后找一个合适的目录放过去就可以了.
apache的安装稍为有点不同
1).解压httpd-2.2.3.tar.gz,进入解压后目录的cd httpd-2.2.3/srclib/,依次安装apr和apr-util
# cd apr
# ./configure –prefix=/usr/local/apr
# make
# make install
# cd ../apr-util
# ./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr/
# make
# make install
2).安装apache
#./configure –prefix=/app/apache-2.2.3 –enable-so –enable-rewrite=share –enable-proxy=share –enable-proxy-ajp=share –enable-dav=share –with-apr=/usr/local/apr/ –with-apr-util=/usr/local/apr-util/
#make && make install
#apache2.2以后不用再jk2 ,用mod_proxy_ajp模块即可
3)配置,
可以写在httpd.conf,不过建议Include conf/xxx.conf,然后写这个文件,大概内容参见下面
NameVirtualHost *:80
DirectoryIndex index.jsp
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ServerName xxxxxx
ServerAlias www
ErrorLog logs/xx-error_log
CustomLog logs/xx-access_log common
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17657/showart_244858.html |
|