- Alfresco 3 Cookbook
- Snig Bhaumik
- 806字
- 2021-04-02 18:55:52
Installing Alfresco on Windows
There are two methods to install Alfresco on a Windows platform.
- Using the Alfresco packaged installer
- Deploying the Tomcat or JBoss bundle
The first approach will install Alfresco in Windows along with JDK (optionally), create the Alfresco database automatically, and can configure and start Alfresco as a Windows Service. It will inject the relevant shortcuts in your Start Menu just like any other application installed in your machine. You can start/stop the server using the Start Menu option or a Windows Service. This is a fully-automated and smooth approach to install Alfresco.
The second approach is more manual. You will have the downloaded Tomcat or JBoss bundle of Alfresco. Manually configure a few things, and you are ready to go. However, you cannot have Alfresco as a service in Windows very easily, in this case, and won't have the Start Menu shortcuts ready for you. But in this case, as a developer and explorer of Alfresco, you can have a number of Alfresco bundles deployed and running on your machine.
In this book, we will demonstrate the second option, as the first one is very straightforward and you will find lots of documentation around that. We will also use the Tomcat bundle of Alfresco and not the JBoss one.
Getting ready
- Download the Alfresco community edition from the Alfresco download site. http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3
- In Individual Components and Custom Installs section, download the
Alfresco-community-tomcat-3.3.zip
file. Or you can directly use the URL http://process.alfresco.com/ccdl/?file=release/community/build-2765/alfresco-community-tomcat-3.3.zip and use standard download. - You will need the following prerequisite programs already installed on your machine—
- WinZIP or WinRAR
- JDK 1.6.x
- MySQL database server
- Once these programs are installed and after downloading the Alfresco Tomcat bundle, we are ready to go.
How to do it...
Carry out the following steps to install the Alfresco Tomcat bundle on your machine.
- Download the ZIP archive from the preceding URL.
- Unzip the archive in a folder in your system. Say the folder you have unzipped the archive into is
c:\Alfresco
. These are the root level files in the unzipped folder. - You need to set the
JAVA_HOME
environment variable to make the Tomcat server understand where your JDK or JRE is installed.- Open System Properties by right-clicking on the
My Computer
icon on your desktop. - Open the Advanced tab.
- Click on Environment Variables.
- Check whether the JAVA_HOME environment variable is already set or not.
- If not, create a new System Variable named
JAVA_HOME
and put the value of the variable to the directory where JDK or JRE is installed. - For example, if your JDK is installed in the
c:\Program Files\Java\jdk1.6.0_14
directory, the value ofJAVA_HOME
should be the same.If the
JAVA_HOME
variable is already defined, validate whether it contains the correct value.
- If not, create a new System Variable named
- Open System Properties by right-clicking on the
- You also need to check whether Java runtimes are properly added in your windows
PATH
.- Open System Properties by right-clicking on the My Computer icon on your desktop.
- Open the Advanced tab.
- Click on Environment Variables.
- Open the PATH environment variable
- Check whether it is having the JDK binary folder value inserted into it. The value inserted should be
%JAVA_HOME%\bin
- Assuming that you have properly created a database named
Alfresco
in your local MySQL server, and created a user with the nameAlfresco
(as in the previous recipe), you can start your Tomcat server now. Run thealf_start.bat
file and the Tomcat server should have started.
How it works...
The first time the AlfrescoTomcat server starts, the web application files (.WAR files) are exploded in the tomcat\webapps
folder.

Similarly, the deployer also populates the MySQL database, and creates the required database objects (tables, and so on) into it.
Alfresco uses some third-party tools and applications for several purposes. When the Tomcat server starts, Alfresco connects with these applications and performs the necessary actions later on, as required.
ImageMagick and PDF2SWF binaries come with the downloaded Tomcat bundle of Alfresco, thus you do not have to install and configure these separately. However, you may have to install Open Office in your machine separately.
There's more...
Sometimes you may need to configure the JAVA_OPTS
variable as well, in case you are facing any memory issues while running the application—memory issues like Java Heap Space, Perm Gen error, and so on.
For setting up JAVA_OPTS
, you have to follow the same procedure as in setting up the JAVA_HOME
variable in your environment variable list.
There is no fixed value for JAVA_OPTS
, it depends on your application load. However, in a standard developer machine, it should be something like
-Xms256m -Xmx1024m -XX:MaxPermSize=512m
in a machine having 2 to 4 GB of physical memory.
- AutoCAD快速自學寶典(2018中文版)
- Photoshop CS5平面設計入門與提高
- AutoCAD 2014 中文版從入門到精通
- BIM與Unity 3D開發實例詳解
- 剪映視頻后期剪輯零基礎入門到精通
- Mastering phpMyAdmin 3.1 for Effective MySQL Management
- Flash基礎與實戰教程
- 老郵差·Photoshop數碼照片處理技法:人像篇(修訂版)
- 邊做邊學:平面設計(Photoshop CS6 +CorelDRAW X6)
- Photoshop+CorelDRAW 字體設計與創意:草圖/實現/包裝(微課版)
- Power Query For Excel:讓工作化繁為簡
- Python氣象應用編程
- SolidWorks 2017基礎與實例教程
- Kubernetes快速入門(第2版)
- 中文版Flash CC動畫制作實用教程