[ start | index | login ]
start > knowledgebase > linux > java > alfresco install

alfresco install

Created by retep. Last edited by alex, 348 days ago. Viewed 2,105 times. #4
[diff] [history] [edit] [rdf]
labels
attachments

Standalone Alfresco Installation

The following code will install alfresco on your server.

wget "http://proj.ri.mu/installalfresco.sh"
bash installalfresco.sh

Then browse to "http://yourip:8180/alfresco"

The script sets up alfresco on port 8180 so it does not conflict with the likes of JBoss, Tomcat or Liferay.

The wget-able file (above) will the be the newest version of the following code (which will likely now be out of date - but will give you the gist of what the script will run).

Pending: what does alfresco use as its default username/password?

#!/bin/bash
mkdir /usr/local/alfresco
cd /usr/local/alfresco
wget >>http://optusnet.dl.sourceforge.net/sourceforge/alfresco/alfresco-community-tomcat-1.4.0.tar.gz
tar xzf alfresco-community-tomcat-1.4.0.tar.gz
mysqlpass=$(cat /root/.mysqlp)

mkdir -p tomcat/shared/classes/alfresco/extension.removed mv tomcat/shared/classes/alfresco/extension/custom-db-and-data-context.xml tomcat/shared/classes/alfresco/extension/custom-db-connection.properties tomcat/shared/classes/alfresco/extension/custom-hibernate-dialect.properties tomcat/shared/classes/alfresco/extension.removed

adduser -s /sbin/nologin -d /usr/local/alfresco alfresco wget -O /etc/init.d/tomcat >>http://proj.ri.mu/javainitscript ln -sf /etc/init.d/tomcat /etc/init.d/alfresco replace 8005 8105 8009 8109 8080 8180 -- tomcat/conf/*.xml /etc/init.d/alfresco start ip=$(ifconfig | grep --after-context=1 "eth0 " | grep inet | cut -d: -f2 | cut -f1 -d' ') chkconfig --level 35 $(basename $mysql) on chkconfig --level 35 alfresco on echo See alfresco running at "http://$ip:8180/alfresco" wget -O - "http://$ip:8180/alfresco" --server-response 2>&1 | grep -qai 'My Alfresco' if [ $? -eq 0 ]; then echo 'Looks like Alfresco is loading correctly'; else echo "There could be a problem with Alfresco, it did not load as expected" fi

Alfresco integrated with Liferay

If you want to install Alfresco as a portlet extension to Liferay, see liferay install on tomcat 5.5

Alfresco 2.1.0

I had to
cp /usr/local/tomcat/bin/setenv.sh /usr/local/alfresco/tomcat/bin/setenv.sh
and then make the memory numbers higher. This generated a warning in catalina.out:
01:58:01,373 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING
 - maximum heap size 95.313MB is less than recommended 512MB
请以发表评论身份登录
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.