Alfresco 部署与入门

一、系统介绍

Alfresco是一款开源的企业内容管理系统(ECM),基于Java平台开发,为企业提供了日常的文档管理、协同工作、工作记录管理、知识管理、网络内容管理、图片管理等多种功能。

《Alfresco 部署与入门》 image.png

二、安装及部署

2.1 安装环境装备

OS:centos7.4(必须是7以上,且linux内核最低为3.10版本)

数据库:centos7安装时自带的postgresql(可选)

2.2 安装wget

# yum install -y wget

《Alfresco 部署与入门》 image.png

2.3 下载Alfresco安装包

前往网址https://zh.osdn.net/projects/sfnet_alfresco/releases/ 选择合适的Alfresco版本。如:此处选择Alfresco 201707 Community

《Alfresco 部署与入门》 image.png

选择用于centos安装的bin文件:

《Alfresco 部署与入门》 image.png

可直接下载文件,然后通过WCP上传到centos系统中:

《Alfresco 部署与入门》 image.png

# wget https://zh.osdn.net/frs/g_redir.php?m=kent&f=alfresco%2FAlfresco+201707+Community%2Falfresco-community-installer-201707-linux-x64.bin

2.4 安装Alfresco依赖包

# yum -y install fontconfig libSM libICE libXrender libXert cups-libs

2.5 设置CentOS 7主机名

# hostnamectl set-hostname localhost

2.6 Alfresco授权并安装

移动至安装包所在位置,执行:

#chmod +x alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin

#./alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin

2.7 安装

安装过程比较简单,说明很明确,注意根据提示操作即可完成,大致的示意如下:

Do you want to continue with the installation? [y/N]: y
Language Selection 
Please select the installation language 
[1] English - English 
[2] French - Français 
[3] Spanish - Español 
[4] Italian - Italiano 
[5] German - Deutsch 
[6] Japanese - 日本語 
[7] Dutch - Nederlands 
[8] Russian - Русский 
[9] Simplified Chinese - 简体中文 
[10] Norwegian - Norsk bokmål 
[11] Brazilian Portuguese - Português Brasileiro 
Please choose an option [1] : 9
--------------------------------------------------------------------------------------------------------------------欢迎来到 Alfresco Community 安装程序。 --------------------------------------------------------------------------------------------------------------------安装类型 
[1] 简单 - 使用默认配置安装。 
[2] 高级 - 配置服务器端口和服务属性。: 还可以选择要安装的可选组件。 
请选择选项 [1] : 1
--------------------------------------------------------------------------------------------------------------------安装文件夹 
请选择要安装 Alfresco Community 的文件夹。 
选择文件夹: [/opt/alfresco-community]: --------------------------------------------------------------------------------------------------------------------数据库服务器参数 
请输入数据库端口。 
数据库服务器端口: [5432]: 3306 
--------------------------------------------------------------------------------------------------------------------管理密码 请指定 Alfresco Content Services 管理员帐户的密码。 
管理密码: : 
确认密码: : 
--------------------------------------------------------------------------------------------------------------------作为服务安装 如果您将 Alfresco Community 注册为一项服务,机器启动时,将会自动启动 Alfresco Community。
将 Alfresco Community 作为服务安装? [Y/n]: Y
如果您将 Alfresco Community 注册为一项服务,机器启动时,将会自动启动 Alfresco Community。 
将 Alfresco Community 作为服务安装? [Y/n]: y ---------------------------------------------------------------------------------------------------------------------警告 此环境没有为 Alfresco Content Services 进行优化配置 - 请仔细阅读此列表后再继续操作。 
虽然这些问题不会妨碍 Alfresco Content Services 正常运行,但有些产品功能可能不可用,或者系统可能无法发挥最佳性能。
 CPU clock speed is too slow (2.0 GHz+): 1.79 GHz 
按 [Enter] 继续:
----------------------------------------------------------------------------- ----------------------------------------安装程序已经准备好将 Alfresco Community 安装到您的电脑。 
您确定要继续吗? [Y/n]: Y
---------------------------------------------------------------------------- ----------------------------------------正在安装 Alfresco Community 至您的电脑中,请稍候。 
正在安装
0% ______________ 50% ______________ 100% ######################################### ---------------------------------------------------------------------------- ----------------------------------------安装程序已经将 Alfresco Community 安装于您的电脑中。
浏览自述文件 [Y/n]: y 
启动 Alfresco Community [Y/n]: y 
waiting for server to start....README 
Alfresco Community (Build: 201707)
===============================
Contains: 
        - Alfresco Platform: 5.2.g 
        - Alfresco Share: 5.2.f 
For users of Alfresco Community Edition, more information on this release is available at https://community.alfresco.com/community/ecm 
按 [Enter] 继续: done 
server started
/opt/alfresco-community/postgresql/scripts/ctl.sh : postgresql started at port 3306 
Using CATALINA_BASE:    /opt/alfresco-community/tomcat 
Using CATALINA_HOME:    /opt/alfresco-community/tomcat 
Using CATALINA_TMPDIR:  /opt/alfresco-community/tomcat/temp 
Using JRE_HOME:     /opt/alfresco-community/java 
Using CLASSPATH:    /opt/alfresco-community/tomcat/bin/bootstrap.jar:/opt/alfresco-community/tomcat/bin/tomcat-juli.jar 
Using CATALINA_PID:     /opt/alfresco-community/tomcat/temp/catalina.pid 
Tomcat started.
/opt/alfresco-community/tomcat/scripts/ctl.sh : tomcat started

2.8 访问Alfresco

查看Alfresco服务状态以及端口的开启情况:

# ss -atulpn

访问网站:

浏览器直接输入:http://服务器IP地址:8080/share/page

2.9 其他注意事项

(1)8080端口和Oracle端口冲突的解决方法

修改$alfresco_HOME/tomcat/shared/calsses/alfresco-global.properties文件

alfresco.context=alfresco

alfresco.host=localhost.localdomain(此处为域名)

alfresco.port=8080(更换为其他端口,如8081

alfresco.protocol=http

share.context=share

share.host= localhost.localdomain(此处为域名)

share.port=8080(更换为其他端口,如8081

share.protocol=http

(2)安装成功后,输入*http://服务器IP地址:8080/share/page *却无法访问。

a.可能是Alfresco的端口没有配置防火墙:

# firewall-cmd --add-port=8080/tcp --permanent

# firewall-cmd --add-port=8443/tcp --permanent

# firewall-cmd --add-port=7070/tcp --permanent

#firewall-cmd --reload

b.也可能是域名配置问题:

查看下当前域名:

#hostname

localhost

编辑下hosts文件:

# vim /etc/hosts

添加如下一行:

服务器IP地址(如174.35.50.83) localhost localhost.localdomain localhost5 localhost5.localdomain5

检查一下

#cat /etc/hosts

(3)Alfresco的默认安装地址

/opt/alfresco-community

    原文作者:旺达哒哒哒
    原文地址: https://www.jianshu.com/p/70ed781c55e1
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞