Tuesday, April 14, 2009

Alfresco 自编译安装配置

更多精彩请到 http://www.139ya.com

Tomcat 6.0.18
Alfresco Lab 3C

1. 下载源码svn...
2. 编译默认 ant build
3. alfresco.war 会自动被放在 $TOMCAT_HOME/webapps
4. 启动tomcat, 从系统log里能看到alfresco.war 被展开
5. 修改$TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties, 把 dir.root 改成绝对路径,如:

dir.root=D:/dev/apache-tomcat-6.0.18/webapps/alfresco/WEB-INF/classes/alfresco/alf_data
index.recovery.mode=FULL, 这句在重启后应改回"index.recovery.mode=VALIDATE"

6. drop the database. Log into mysql as root or the alfresco user (defined by 'db.username' in custom-repository.properties)

mysql> drop database alfresco;
mysql> create database alfresco;


7. Config Tomcat

catalina.sh
#----------------------------------------------------------------
# The -server flag avoids problems on Linux and Mac.
# The -Xmx1024M flag gives the JVM ample memory.
#----------------------------------------------------------------
if ! [[ "${CATALINA_OPTS}" =~ '-server' ]]; then
CATALINA_OPTS="$CATALINA_OPTS -server"
fi

if ! [[ "${CATALINA_OPTS}" =~ '-Xmx' ]]; then
CATALINA_OPTS="$CATALINA_OPTS -Xmx1024M"
fi
After starting Tomcat, you can verify that the -server and -Xmx1024M flags are set by issuing the command:

ps auxw | grep tomcat

or, prepare a new alfresco.bat to invoke tomcat with the JVM parameter, just like below:

set JAVA_OPTS=-Xms128m -Xmx512m -Xss96k -XX:MaxPermSize=128m -server
call "%CATALINA_HOME%\bin\startup.bat"






Alfresco Surf Platform


Building

http://wiki.alfresco.com/wiki/Surf_Platform


ant incremental-webframework-tomcat


/root/projects/web-framework/build/dist/alfwf.war

--------------------------------------

http://wiki.alfresco.com/wiki/Surf_Platform_-_Deployment_Configurations

ant incremental-surf-starter

./projects/web-framework/build/dist/surf.war

--------------------------------------



No comments: