准备工作
cd ..
bzip2 -dc temp/apr-1.4.5.tar.bz2 | tar -xf -
bzip2 -dc temp/apr-util-1.3.12.tar.bz2 | tar -xf -
gzip -dc temp/neon-0.29.6.tar.gz | tar -xf -
bzip2 -dc temp/serf-0.7.2.tar.bz2 | tar -xf -
gzip -dc temp/zlib-1.2.8.tar.gz | tar -xf -
unzip -q temp/sqlite-amalgamation-3070603.zip
1、apr
cd ../apr-1.4.8
vim configure
查找$RM "$cfgfile"并注释该行
./configure --prefix=$SVN_INSTALL_DIR/apr
make
make install
2、apr-util
cd ../apr-util-1.5.2
./configure --prefix=$SVN_INSTALL_DIR/apr-util --with-apr=$SVN_INSTALL_DIR/apr --with-oracle=$ORACLE_HOME
make
make install
3、pcre
cd ../pcre-8.33
./configure
make
make install
4、Apache
cd ../httpd-2.4.4
rpm -e --nodeps httpd
./configure --prefix=$SVN_INSTALL_DIR/apache2 --with-apr=$SVN_INSTALL_DIR/apr --with-apr-util=$SVN_INSTALL_DIR/apr-util --enable-dav --enable-so --enable-authn_dbd --enable-authn_socache
make
make install
5、SVN
cd ../subversion-1.7.13
./configure --prefix=$SVN_INSTALL_DIR/svn --with-apr=$SVN_INSTALL_DIR/apr --with-apr-util=$SVN_INSTALL_DIR/apr-util --enable-mod-activation --with-apxs=$SVN_INSTALL_DIR/apache2/bin/apxs
make //非常缓慢
make install
6、配置Apache
cd /inno/app/apache2
vim conf/httpd.conf
查找authn_dbd_module,authn_socache_module,cache_module,socache_shmcb_module,socache_memcache_module,dbd_module,dav_module模块,去掉该行的注释
查找Listen 80,更改为Listen 8099
查找ServerName,在说明后增加一行ServerName localhost:8099
查找DocumentRoot,更改其和之后一行引号内的值为/inno/browser
托管SVN
DBDriver oracle
DBDParams "server=serverName user=username pass=password"
DBDMin 5
DBDKeep 5
DBDMax 10
DBDExptime 60
<Location /svn>
DAV svn
SVNParentPath /inno/app/svn/data/
AuthType Basic
AuthName "Hello, welcome to here"
AuthBasicProvider dbd
#AuthUserFile /dev/null
Require valid-user
AuthDBDUserPWQuery "SELECT PASSWORD FROM USER WHERE LOGIN_ID = %s"
</Location>
配置TomCat
cd $TOMCAT_HOME
vim conf/server.xml
查找<Connector该行,在内容末尾追加URIEncoding="UTF-8"
注意不要加到已被注释的内容中
vim bin/catalina.sh
查找$have_tty -eq 1该行,在之前追加一行
JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=256m -Djava.awt.headless=true"
允许Oracle通过命令启动
vim /etc/oratab
查找INNOALM该行(通常在末尾切只有一行类似的),将末尾的N改为Y