Alfresco 6.0 switching to container deployment is a good thing. What's wrong with a well configured stand-alone Alfresco Community? Nothing!
This Bash script automates the installation of Alfresco ACS Community 6.x and 7.x. It looks for 3 downloaded files in the same folder of the script or a folder specified as the script's first parameter.
and optionally:
The above links are for Tomcat 9.0.37, ACS 6.2.0-ga, Search Services 1.4.3.4 and Share 6.2.2.6. For Alfresco 7.2, use these with Tomcat 9.0.37:
- alfresco-content-services-community-distribution-7.2.1.zip
- alfresco-search-services-2.0.4.zip
- alfresco-content-services-share-distribution-7.2.1.zip
Here are links for older versions:
- alfresco-content-services-community-distribution-7.1.1.zip
- alfresco-content-services-community-distribution-7.0.0.zip
- alfresco-content-services-community-distribution-6.0.7-ga.zip
- alfresco-content-services-community-distribution-6.1.2-ga.zip
- alfresco-search-services-1.3.0.zip
- apache-tomcat-8.5.37.zip
Create an empty folder into which a stand-alone Alfresco Community will be installed. Be sure to set the environment variable JAVA_HOME
. Then run the installation script, assuming everything else is in the parent folder:
mkdir 6.2.0-ga
cd 6.2.0-ga
../install-alfresco-6x.sh
The script will install all three archives, create or modify configuration files and startup scripts, download MySQL JDBC driver and the missing PDF renderer for Mac, start Solr6. It also applies the Share module for alfresco.war
, which will ask you to press a few keys in between.
The script creates file tomcat/shared/classes/alfresco-global.properties
with these MySQL database settings:
- Schema name:
alf620ce
- User name:
alfresco
- Password:
alfresco
Here are the MySQL commands to create the schema:
$ mysql -u root
create schema alf620ce default character set utf8;
create user 'alfresco'@'localhost' identified by 'alfresco';
grant all on alf620ce.* to 'alfresco'@'localhost' with grant option;
./alfresco.sh start
./alfresco.sh jpda start # Start with debug
./alfresco.sh stop
The install script already starts Solr 6 for you. Subsequent start and stop commands are:
search-services/solr/bin/solr start
search-services/solr/bin/solr stop
This install script works in Mac OSX and Ubuntu. It should also work in other flavors of Linux, but it has not been tested in Cygwin or MinGW on Windows.
.