---
title: "安装 alfresco"
author: "Taoo"
date: "2012-10-10T00:20:25Z"
tags: []
categories: ["开源软件"]
slug: "alfresco"
draft: false
lastmod: "2012-10-19T13:04:17Z"
id: 1694784
url: "https://taoo.iteye.com/blog/1694784"
---

1，官网下载安装文件：http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco
2，然后在linux下运行，

```shell
./alfresco-community-4.0.e-installer-linux-x64.bin ---mode text
```

3，安装过程中，选择高级安装，并不要安装PostgreSQL。
4，根据提示配置mysql相关内容：

```shell

db.url=jdbc:mysql://xx.xx.xx.xx/alfresco?useUnicode=yes&characterEncoding=UTF-8
db.driver=org.gjt.mm.mysql.Driver

```

5，安装完毕，先不要启动alfresco，启动了的话也关闭alfresco。

```shell
service alfresco stop
```

6，把mysql的jdbc的jar包放入tomcat/lib目录下。
7，启动alfresco

```shell
service alfresco start
```



补充：
1，事先要在mysql中建好相应的数据库(alfresco)和用户，密码。
2，修改dir.root的方法如下。

> 
> a，关闭alfresco
> b，修改alfresco-4.0.e/tomcat/shared/classes/alfresco-global.properties文件，将其中的dir.root设置为目标路径。
> c，将原来dir.root指向的内容移动到目标路径中。
> e，启动alfresco
> 




后记1
mysql使用后alfresco无法正常工作。
无法上传文件。
后来还是重装alfresco选择默认的postgreQL了


后记2，2012.10.19
1，后记一中mysql的问题，是因为mysql的数据库默认编码不是utf8所致，改成utf8就好了。
2，无法预览的问题解决。这个问题有可能是系统字体库设置的问题，导致openOffice进程死掉，然后就无法预览了，总的而言配置系统字体要正确。
3，安装好alfresco，备份下安装目录中的alf_data，如果用新的数据库需要有新的alf_data，这个东西需要跟数据库一致。