如何手动部署Alfresco?

Alfresco

1 基础知识

1.1 简介

Alfresco是一个免费、自由的企业内容系统,英文简称ECMS。

1.2 提供的功能

– 日常文档管理
– 协同工作
– 工作记录管理
– 知识管理
– 网络内容管理
– 图片管理等

1.3 特点

– 文件兼容性,同时兼容Microsoft Windows和类unix操作系统
– 开箱即用,以WEB门户框架来管理和标准化门户内容系统
– 跨平台,程序由Java技术开发

1.4 使用的优点

– 基于开源的Lucene的文档搜索功能
– 基于Openoffice提供多种文档格式转换
– 基于目录树管理文档
– 支持多国语言
– 用户使用简单(便于企业中推广)

1.5 Alfreeco的应用场景

– 作为内容存储库
– 作为WEB门户框架

1.6 部署环境

– Tomcat
– MySQL
– Linux

2 实操部分

2.1 系统环境配置

2.1.1 系统环境信息

IP Address = 10.168.0.50
OS = CentOS 7.3 x86_64

2.1.2 安装常用的工具

yum install -y wget vim unzip

2.1.3 时间相关配置

2.1.3.1 安装ntp客户端

yum install -y chrony

2.1.3.2 启动NTP客户端

systemctl start chronyd
systemctl enable chronyd

2.1.4 配置SELinux

setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

2.1.3.3 配置时区

timedatectl set-timezone Asia/Shanghai

2.2 安装MySQL

2.2.1 防火墙配置

firewall-cmd --permanent --add-service mysql
firewall-cmd --reload
firewall-cmd --list-all

2.2.2 配置安装源

yum install -y http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-release-el7-10.noarch.rpm

注:其他版本请参阅以下链接
http://repo.mysql.com/yum/

2.2.3 配置安装包

yum install -y mysql-community-server mysql-community-devel mysql-community-client

2.2.4 启动数据库

systemctl start mysqld
systemctl enable mysqld

2.2.5 初始化数据库

获取临时密码:

cat /var/log/mysqld.log | grep 'A temporary password'

显示如下:

2017-04-22T07:10:18.747550Z 1 [Note] A temporary password is generated for root@localhost: ufqLq&R6tgl%

初始化数据库:

mysql_secure_installation

向导如下:

[...]
Enter password for user root:ufqLq&R6tgl%
[...]
New password:******
Re-enter new password:******
[...]
Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: n
[...]
Change the password for root ? ((Press y|Y for Yes, any other key for No) : n
[...]
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
[...]
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
[...]
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y                                                                
[...]
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
[...]

2.3 安装JDK

2.3.1 准备安装环境

2.3.1.1 下载JDK二进制安装包

cd ~
wget http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz?AuthParam=1519347929_57bfb44c70a559c46d9d010f18391706 -O jdk-8u161-linux-x64.tar.gz

注:如果不能下载,是以上认证信息失效,请重新获通过JDK下载页面获取,
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2.3.1.2 部署Java目录

mkdir /usr/java
tar -xf jdk-8u161-linux-x64.tar.gz
mv jdk1.8.0_161/ /usr/java/

2.3.2 配置安装包

2.3.2.1 配置环境变量

vim /etc/profile.d/jdk.sh

输入如下配置:

export JAVA_HOME=/usr/java/jdk1.8.0_161
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

导入环境变量:

source /etc/profile

2.3.2.2 测试JDK安装

java -version

显示信息如下:

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b01, mixed mode)

2.4 安装tomcat

2.4.1 基础配置

2.4.1.1 下载安装包

cd ~
wget -c https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gz

注:其他版本请从以下页面下载(官方建议使用tomcat7),
https://archive.apache.org/dist/tomcat

2.4.1.2 配置运行用户

groupadd  -g 91 tomcat
useradd -u 91 -g 91 -d /usr/tomcat  -s /sbin/nologin tomcat

2.4.1.3 配置编译环境和依赖包

yum -y install gcc gcc-c++ make expat-devel
yum install -y libcap-devel

2.4.1.4 配置安装目录

cd ~
tar -xf apache-tomcat-7.0.78.tar.gz
mv apache-tomcat-7.0.78 /usr/tomcat/
chown root:tomcat -R /usr/tomcat
chmod 775 -R /usr/tomcat/

2.4.1.6 配置APR基础包

yum install -y apr-devel apr apr-util

2.4.1.7 配置防火墙

firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --permanent --add-port=8443/tcp
firewall-cmd --reload
firewall-cmd --list-all

2.4.2 配置Tomcat

2.4.2.1 配置环境变量

vim /etc/profile.d/tomcat.sh

加入如下配置

export TOMCAT_HOME=/usr/tomcat/apache-tomcat-7.0.78

使配置生效

source /etc/profile

以上环境变量用于管理,以下环境变量用于启动:

vim ${TOMCAT_HOME}/bin/setenv.sh

加入如下配置

JAVA_HOME=/usr/java/jdk1.8.0_161
JRE_HOME=${JAVA_HOME}/jre
CATALINA_HOME=/usr/tomcat/apache-tomcat-7.0.78
CATALINA_BASE=${CATALINA_HOME}
JAVA_OPTS='-server -Xms2048m -Xmx4096m -Xss512k'
TOMCAT_USER=tomcat

2.4.2.2解压daemon工具包

cd ${TOMCAT_HOME}/bin/
tar -xf commons-daemon-native.tar.gz

2.4.2.3 编译daemon工具

cd commons-daemon-1.0.15-native-src/unix/
./configure --with-apr=/usr/bin/apr-1-config
make

2.4.2.4 部署daemon工具

cp jsvc ${TOMCAT_HOME}/bin/

2.4.2.5 手动测试服务启停

${TOMCAT_HOME}/bin/daemon.sh start
${TOMCAT_HOME}/bin/daemon.sh stop

注:如需确认服务请使用

netstat -antp | grep jsvc

2.4.2.6 配置tomcat服务

vim /etc/init.d/tomcat7

输入如下配置:

#!/bin/bash

# tomcat7 - Startup script for tomcat7

# chkconfig: 35 96 04
# description: tomcat7
# processname: tomcat7

source /etc/profile
user=tomcat
tomcat_dir=/usr/tomcat/apache-tomcat-7.0.78
pid_dir=${tomcat_dir}/logs

start() {
        if [ `pgrep -u $user jsvc | wc -l` != 0 ]; then
                echo $0 is already exists!; exit 1
        fi

        ${tomcat_dir}/bin/daemon.sh start || return 1

        sleep 1
        if [ -f "${pid_dir}/catalina-daemon.pid" ] && [ `cat "${pid_dir}/catalina-daemon.pid" | wc -l` != 0 ]; then
               echo -ne "$0 started"; return 0
        else
               echo -ne "$0 start failed, see logfile."; return 1
        fi
}

stop() {
        if [ -f "${pid_dir}/catalina-daemon.pid" ]; then
              ${tomcat_dir}/bin/daemon.sh stop || return 1
        fi

        for ((i=0; i<15*1; i++)); do
              if [ `pgrep -u $user jsvc | wc -l` = 0 ]; then
                      return 0
              fi
              sleep 1s
        done
        echo -ne "Error: $0 could not be stopped"
}

status() {
        if [ `pgrep -u $user jsvc | wc -l` != 0 ]; then
               echo "$0 is runing!";
        else
               echo "$0 is not run!"; exit 1
        fi
}
case "$1" in
        start)
                start
        ;;
        restart)
                stop
                start
        ;;
        stop)
                stop
        ;;
        status)
                status
        ;;
        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;
esac

2.4.2.7 启动服务并配置自启动

chmod +x /etc/init.d/tomcat7

2.4.2.8 启动服务并配置自启动

/etc/init.d/tomcat7 start
chkconfig tomcat7 on

2.4.2.9 浏览器测试

http://10.168.0.50:8080

2.5 部署Alfresco

2.5.1 部署前的准备

2.5.1.1 准备应用的数据库

mysql -uroot -p
create database alfresco character set utf8;
grant all privileges on alfresco.* to 'alfresco'@'localhost' identified by 'alfrescopwd';
grant all privileges on alfresco.* to 'alfresco'@'127.0.0.1' identified by 'alfrescopwd';
flush privileges;

2.5.1.2 下载软件包

cd ~
wget https://nchc.dl.sourceforge.net/project/alfresco/Alfresco%20201707%20Community/alfresco-community-distribution-201707.zip

注:其他版本请从以下链接下载,
https://sourceforge.net/projects/alfresco/files/?source=navbar

2.5.1.3 解压软件包

unzip alfresco-community-distribution-201707.zip

2.5.1.4 部署软件包

mkdir /usr/alfresco
cp -a alfresco-community-distribution-201707 /usr/alfresco/
chown root:tomcat -R /usr/alfresco
chmod 775 -R /usr/alfresco

2.5.1.5 部署软件包的环境变量

vim /etc/profile.d/alfresco.sh

加入如下配置:

export ALFRESCO_HOME=/usr/alfresco/alfresco-community-distribution-201707

使环境变量生效:

source /etc/profile

2.5.1.6 将tomcat部署到alfresco目录

ln -s ${TOMCAT_HOME} ${ALFRESCO_HOME}/tomcat

2.5.2 配置Alfresco

2.5.2.1 部署软件包到tomcat

rm -rf ${TOMCAT_HOME}/webapps/*
cp -a ${ALFRESCO_HOME}/web-server/webapps/* ${TOMCAT_HOME}/webapps/
rm ${TOMCAT_HOME}/webapps/{share.war,solr4.war}

2.5.2.2 加载服务需要的目录

mkdir -p ${TOMCAT_HOME}/shared/classes
mkdir -p ${TOMCAT_HOME}/shared/lib

修改配置文件加载目录

vim ${TOMCAT_HOME}/conf/catalina.properties

修改如下配置:

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

2.5.2.3 设置Alfresco所需的环境变量

vim ${TOMCAT_HOME}/bin/setenv.sh

加入如下配置:

JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=${ALFRESCO_HOME}"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"

2.5.2.4 配置Alfresco的全局配置文件

cp -a ${ALFRESCO_HOME}/web-server/shared/classes/alfresco-global.properties.sample ${TOMCAT_HOME}/shared/classes/alfresco-global.properties
vim ${TOMCAT_HOME}/shared/classes/alfresco-global.properties

配置数据主目录:

dir.root=/usr/alfresco/alfresco-community-distribution-201707/alf_data
dir.keystore=${dir.root}/keystore

2.5.2.5 配置JDBC驱动

cd ~
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz
tar -xf mysql-connector-java-5.1.45.tar.gz
cp mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar ${TOMCAT_HOME}/shared/lib

注:如果无法下载请从以下链接下载,
https://dev.mysql.com/downloads/connector/j/
修改全局配置加载JDBC驱动:

vim ${TOMCAT_HOME}/shared/classes/alfresco-global.properties

确保如下配置存在:

db.driver=org.gjt.mm.mysql.Driver
db.username=alfresco
db.password=alfrescopwd
db.name=alfresco
db.url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8&useSSL=false
db.pool.max=275
db.pool.validate.query=SELECT 1

2.5.2.6 配置alfresco核心组件

确保核心组件的war包存在:

ls ${TOMCAT_HOME}/webapps/alfresco.war

修改全局配置加载该组件:

vim ${TOMCAT_HOME}/shared/classes/alfresco-global.properties

确保如下配置存在:

alfresco.context=alfresco
alfresco.host=10.168.0.50
alfresco.port=8080
alfresco.protocol=http

2.5.2.7 开启https协议

cp ${TOMCAT_HOME}/conf/server.xml ${TOMCAT_HOME}/conf/server.xml.defautl
vim ${TOMCAT_HOME}/conf/server.xml

修改如下配置:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">

    <Connector port="8080"
               URIEncoding="UTF-8"
               protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               maxHttpHeaderSize="32768" />

    <Connector port="8009"
               URIEncoding="UTF-8"
               protocol="AJP/1.3"
               redirectPort="8443" />

    <Connector port="8443"
               URIEncoding="UTF-8"
               protocol="org.apache.coyote.http11.Http11Protocol"
               SSLEnabled="true"
               maxThreads="150"
               scheme="https"
               keystoreFile="/usr/alfresco/alfresco-community-distribution-201707/alf_data/keystore/ssl.keystore"
               keystorePass="kT9X6oe68t"
               keystoreType="JCEKS"
               secure="true"
               connectionTimeout="240000"
               truststoreFile="/usr/alfresco/alfresco-community-distribution-201707/alf_data/keystore/ssl.truststore"
               truststorePass="kT9X6oe68t"
               truststoreType="JCEKS"
               clientAuth="want"
               sslProtocol="TLS"
               allowUnsafeLegacyRenegotiation="true"
               maxHttpHeaderSize="32768"
               maxSavePostSize="-1" />

	<Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;;%r&quot;; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>

2.5.2.8 防止某些浏览器SSL下载错误

vim ${TOMCAT_HOME}/conf/context.xml

修改如下配置:

<Context>
    <Valve className="org.apache.catalina.authenticator.SSLAuthenticator" securePagesWithPragma="false" />
    [...]
</Context>

注:“[…]”表示省略

2.5.3 测试alfresco主程序

2.5.3.1 监视日志

/etc/init.d/tomcat7 restart

2.5.3.2 重启加载应用

/etc/init.d/tomcat7 stop
/etc/init.d/tomcat7 start

2.5.3.3 检查启动的端口

netstat -antp | egrep "8080|8443"

可见如下信息:

tcp6       0      0 :::8080                 :::*                    LISTEN      53907/jsvc.exec
tcp6       0      0 :::8443                 :::*                    LISTEN      53907/jsvc.exec

2.5.3.4 浏览器测试应用

http://10.168.0.50:8080/alfresco
浏览器访问可见如下页面:

2.6 集成Share服务

2.6.1 部署安装包

cp alfresco-community-distribution-201707/web-server/webapps/share.war ${TOMCAT_HOME}/webapps/

2.6.2 安装Libreoffice

yum install -y libreoffice
rpm -e --nodeps java-1.8.0-openjdk
rpm -e --nodeps java-1.8.0-openjdk-headless

2.6.3 安装ImageMagick

yum install -y ImageMagick

2.6.4 部署alfresco-pdf-renderer

2.6.4.1 下载软件包

cd ~
wget https://artifacts.alfresco.com/nexus/content/repositories/public/org/alfresco/alfresco-pdf-renderer/1.0/alfresco-pdf-renderer-1.0-linux.tgz

2.6.4.2 解压软件包

tar -xf alfresco-pdf-renderer-1.0-linux.tgz

2.6.4.3 部署软件包

mkdir -p ${ALFRESCO_HOME}/common/alfresco-pdf-renderer
mv alfresco-pdf-renderer ${ALFRESCO_HOME}/common/alfresco-pdf-renderer

2.6.5 修改全局配置文件

vim ${TOMCAT_HOME}/shared/classes/alfresco-global.properties

加入如下配置:

share.context=share
share.host=10.168.0.50
share.port=8080
share.protocol=http

img.root=/usr/lib64/ImageMagick-6.7.8
img.exe=/usr/bin/convert
img.config=/usr/lib64/ImageMagick-6.7.8/config
img.coders=/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders
img.dyn=/usr/local/lib
img.gslib=/usr/local/lib

ooo.enabled=true
ooo.port=8100
ooo.host=localhost

alfresco-pdf-renderer.root=/usr/alfresco/alfresco-community-distribution-201707/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

2.6.6 重启服务使配置生效

/etc/init.d/tomcat7 stop
/etc/init.d/tomcat7 start

2.6.7 检查Libreoffice服务端口

netstat -antp | grep 8100

2.7 集成solr6服务

2.7.1 停止alfresco服务

/etc/init.d/tomcat7 stop

2.7.2 移除solr4

vim ${ALFRESCO_HOME}/solr4/workspace-SpacesStore/conf/solrcore.properties

修改如下配置:

enable.alfresco.tracking=false

清理solr4的Web应用程序和索引:

rm -rf ${TOMCAT_HOME}/webapps/solr4
rm -rf ${TOMCAT_HOME}/webapps/solr4.war
rm -rf ${TOMCAT_HOME}/conf/Catalina/localhost/solr4.xml

2.7.3 修改配置集成solr6

vim ${TOMCAT_HOME}/shared/classes/alfresco-global.properties

加入如下配置:

index.subsystem.name=solr6
solr.host=127.0.0.1
solr.port=8983
solr.port.ssl=8984
solr.secureComms=none

启动服务使配置生效:

/etc/init.d/tomcat7 start

2.7.4 解压安装包

groupadd  -g 889 solr
useradd -u 889 -g 889 -d /usr/solr  -s /bin/bash solr

2.7.5 解压安装包

su - solr
wget https://nchc.dl.sourceforge.net/project/alfresco/Alfresco%20201707%20Community/alfresco-search-services-1.1.0.zip
unzip alfresco-search-services-1.1.0.zip

2.7.6 部署软件包的环境变量

exit
vim /etc/profile.d/solr.sh

加入如下配置:

export SOLR_HOME=/usr/solr/alfresco-search-services
export PATH=${SOLR_HOME}/solr/bin:$PATH

使环境变量生效:

source /etc/profile

2.7.7 修改配置文件

su - solr
vim ${SOLR_HOME}/solrhome/templates/rerankWithQueryLog/rerank/conf/solrcore.properties

确保如下配置正确:

data.dir.root=/usr/alfresco/alfresco-community-distribution-201707/alf_data/solr4/index
data.dir.store=workspace/SpacesStore
alfresco.stores=workspace://SpacesStore

alfresco.host=localhost
alfresco.port=8080
alfresco.port.ssl=8443
alfresco.baseUrl=/alfresco

alfresco.secureComms=none

2.7.8 手动控制服务

solr start -m 3G -s ${SOLR_HOME}/solrhome -a "-Dcreate.alfresco.defaults=alfresco,archive"
solr status
solr restart -m 3G -s ${SOLR_HOME}/solrhome -a "-Dcreate.alfresco.defaults=alfresco,archive"
solr status
solr stop -all

– m参数表示JVM内存堆栈设置为“-Xms3g -Xmx3g”
– a参数声明传递给JVM的附加参数(创建两个集合alfresco和archive)
注:可使用以下命令检查启动端口

netstat -antp | grep 8983

2.7.9 配置启动控制脚本

exit
vim /etc/init.d/solr

加入如下配置:

#!/bin/bash

# solr - Startup script for solr

# chkconfig: 35 95 05
# description: solr
# processname: solr

source /etc/profile
user=solr
solr_dir=/usr/solr/alfresco-search-services
pid_dir=${solr_dir}/logs

start() {
        if [ `pgrep -u $user java | wc -l` != 0 ]; then
                echo $0 is already exists!; exit 1
        fi

        run_cmd="${solr_dir}/solr/bin/solr start -m 3G -s ${solr_dir}/solrhome -a '-Dcreate.alfresco.defaults=alfresco,archive' || return 1"
        /sbin/runuser -l $user -c "$run_cmd"
        for ((i=0; i<15*1; i++)); do
              if [ `pgrep -u $user java | wc -l` != 0 ]; then
                      echo `pgrep -u $user java` > "${pid_dir}/solr.pid"
                      break
              fi
        done

        if [ -f "${pid_dir}/solr.pid" ] && [ `cat "${pid_dir}/solr.pid" | wc -l` != 0 ]; then
               echo -ne "$0 started"; return 0
        else
               echo -ne "$0 start failed, see logfile."; return 1
        fi
}



stop() {
        if [ -f "${pid_dir}/solr.pid" ]; then
              rm -rf "${pid_dir}/solr.pid"
              solr stop -all || return 1
        fi

        for ((i=0; i<15*1; i++)); do
              if [ `pgrep -u $user java | wc -l` = 0 ]; then
                      return 0
              fi
              sleep 1s
        done
        echo -ne "Error: $0 could not be stopped"
}

status() {
        if [ `pgrep -u $user java | wc -l` != 0 ]; then
               echo "$0 is runing!";
        else
               echo "$0 is not run!"; exit 1
        fi
}

case "$1" in
        start)
                start
        ;;
        restart)
                stop
                start
        ;;
        stop)
                stop
        ;;
        status)
                status
        ;;
        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;
esac

使用脚本控制服务器:

chmod u+x /etc/init.d/solr

使用脚本控制服务器:

/etc/init.d/solr start
/etc/init.d/solr stop
/etc/init.d/solr status

设置服务自动启动:

chkconfig solr on

2.8 安装谷歌文档集成

2.8.1 下载安装文件

wget https://nchc.dl.sourceforge.net/project/alfresco/Alfresco%20201707%20Community/alfresco-googledocs-share-3.0.4-com.amp
wget https://nchc.dl.sourceforge.net/project/alfresco/Alfresco%20201707%20Community/alfresco-googledocs-repo-3.0.4-com.amp

2.8.2 部署安装文件到目录

mkdir ${ALFRESCO_HOME}/amps_share/
cp alfresco-googledocs-repo-3.0.4-com.amp ${ALFRESCO_HOME}/amps
cp alfresco-googledocs-share-3.0.4-com.amp ${ALFRESCO_HOME}/amps_share

2.8.3 执行安装

java -jar ${ALFRESCO_HOME}/bin/alfresco-mmt.jar install ${ALFRESCO_HOME}/amps/alfresco-googledocs-repo-3.0.4-com.amp ${TOMCAT_HOME}/webapps/alfresco.war
java -jar ${ALFRESCO_HOME}/bin/alfresco-mmt.jar install ${ALFRESCO_HOME}/amps/alfresco-googledocs-share-3.0.4-com.amp ${TOMCAT_HOME}/webapps/share.war

另外,可以使用以下脚本安装,

${ALFRESCO_HOME}/bin/apply_amps.sh

wget https://nchc.dl.sourceforge.net/project/alfresco/Alfresco%20201707%20Community/alfresco-wcmqs-5.2.f.zip
参阅文档
=========================
安装范例
——————–
http://beecon.buzz/2017/assets/files/EF09/EF09-Installing-Alfresco-components-1-by-1.pdf
https://www.thegeekstuff.com/2010/05/alfresco-installation-guide-for-linux/
https://community.alfresco.com/docs/DOC-5809-installing-alfresco-community-32-war-on-centos-53#w_unpackalfrescocommunitywartarball
http://www.dark-hamster.com/software/installing-alfresco-with-mysql/

安装前准备部分
——————-
前提的向导:
https://docs.alfresco.com/5.2/concepts/prereq-install-overview.html
软件需求:
https://docs.alfresco.com/5.2/concepts/prereq-install.html
环境检查清单:
https://docs.alfresco.com/5.2/concepts/configuration-checklist.html
依赖的安装包:
https://docs.alfresco.com/5.2/concepts/install-lolibfiles.html

软件下载
——————
https://www.alfresco.com/alfresco-community-download
https://sourceforge.net/projects/alfresco/files/Alfresco%20201802-EA%20Community/

https://artifacts.alfresco.com/nexus/content/repositories/public/org/alfresco

安装部分
——————
安装流程图:
https://docs.alfresco.com/5.2/concepts/install-singleinstance.html
手动安装向导页面:
https://docs.alfresco.com/5.2/concepts/ch-install.html
Tomcat环境的安装向导:
https://docs.alfresco.com/5.2/tasks/alf-tomcat-install.html

测试部分
——————-
测试向导:
https://docs.alfresco.com/5.2/concepts/install-single-test.html

官方文档
——————–
https://docs.alfresco.com/

理论部分参阅文档
———————
https://baike.baidu.com/item/alfresco/554341?fr=aladdin

关于AMPS的概念
——————–
https://community.alfresco.com/docs/DOC-5146-amp-files

关于APR
——————–
https://www.cnblogs.com/blfbuaa/p/6893817.html

安装solr 6
——————–
https://docs.alfresco.com/5.2/tasks/solr6-install-withoutSSL.html

alfresco-pdf-renderer安装
——————–
http://docs.alfresco.com/5.2/tasks/pdf-renderer-install.html

没有评论

发表评论

Alfresco
如何使用向导部署Alfresco?

1 基础知识 1.1 简介 Alfresco是一个免费、自由的企业内容系统,英文简称ECMS。 1. …