美文网首页Linux成长库我爱编程
Alfresco+onlyoffice安装部署

Alfresco+onlyoffice安装部署

作者: 泡菜爱上WaSabi | 来源:发表于2018-05-25 16:44 被阅读114次

Alfresco 项目简介
Alfresco是一款开源的企业内容管理系统(ECM),是基于Java平台开发的CMS,其页面采用 FreeMarker 开发。为企业提供了日常的文档管理、协同工作、工作记录管理、知识管理、网络内容管理、图片管理等多种功能。是目前应用最广泛的开源企业知识管理系统。

wget http://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/cups-libs-1.6.3-29.el7.i686.rpm

依赖服务:docker,jdk1.8

安装Alfresco
首先下载alfresco的linux安装包,我这里选取最新且稳定版的:
alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin
下载完后执行如下命令

[root@centos mnt]#chmod +x alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin
[root@centos mnt]#./alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin

Enter进入安装界面,一路回车即可。
默认安装目录为:

/opt/alfresco-content-services-community-full
[root@centos ~]# cd /opt/alfresco-content-services-community-full/
[root@centos alfresco-content-services-community-full]# ls
alf_data      alfresco.sh  awe.log  java         manager-linux-x64.run  properties.ini  share.log  tomcat         webquickstart.log
alfresco.ico  amps         bin      libreoffice  modules                README.txt      solr4      uninstall
alfresco.log  amps_share   common   licenses     postgresql             scripts         solr.log   uninstall.dat

此时服务应该运行监听在8080端口,访问地址如下:

http://192.168.1.100:8080/

界面如下:


image.png

可以确认Alfresco服务已经正常启动。

安装onlyoffice
Onlyoffice支持源码编译安装和docker安装,由于源码安装过于复杂,这里就不介绍了,直接选取docker方式安装onlyoffice文件服务
详情可以参考

安装/升级你的Docker客户端
  • 推荐安装1.10.0以上版本的Docker客户端,参考文档 docker-ce
如何配置镜像加速器
  • 针对Docker客户端版本大于1.10.0的用户
    您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器:
    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["https://eoedt1kq.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

之后就可以直接运行docker镜像了(这里镜像还没有下载,但是docker会自己去镜像仓库拉取)

sudo docker run -i -t -d -p 8090:80 onlyoffice/documentserver

访问地址如下:

http://192.168.1.100:8090
image.png
  • Alfresco ONLYOFFICE集成
    首先去github上下载相关插件:onlyoffice-alfresco
    这里有两种方法:源码编译和直接下载已经编译好的,源码编译版本会更新
  • 源码编译
    Github项目地址:https://github.com/ONLYOFFICE/onlyoffice-alfresco
    由于是java项目,因此这里使用gradle来编译构建的,但是怎么编官方文档说的很清楚,我就不再复述了,我这里指强调一下gradle安装过程,操作如下
    安装gradle
    gradle 最新版本只支持jdk1.8,需保证服务器jdk1.8已经安装

下载安装包

wget https://downloads.gradle.org/distributions/gradle-3.2.1-all.zip

解压安装

unzip gradle-3.2.1-all.zip

配置环境变量并生效

$ vi /etc/profile
GRADLE_HOME=/usr/software/gradle-3.2.1
export PATH=${GRADLE_HOME}/bin:${PATH}
source /etc/profile
gradle -version 

可看到版本号说明配置正确
当然我这里直接选择下载已经编译好的插件吗,操作如下。

cd /opt/alfresco-content-services-community-full/amps
wget  https://github.com/ONLYOFFICE/onlyoffice-alfresco/releases/download/1.0.5/onlyoffice-alfresco-repo-1.0.5.amp
cd /opt/alfresco-content-services-community-full/amps_share
wget https://github.com/ONLYOFFICE/onlyoffice-alfresco/releases/download/1.0.5/onlyoffice-alfresco-share-1.0.5.amp

安装插件模块

sudo bin/apply_amps.sh

将onlyoffice.url 参数添加至alfresco-global.properties文件中
onlyoffice.url=http://documentserver/
在alfresco安装目录下,执行如下命令

sudo vim tomcat/shared/classes/alfresco-global.properties
onlyoffice.url=http://192.168.1.100:8090/   最后这个"/",很其重要,不加得话插件无法生效

重启Alfresco

sudo ./alfresco.sh stop
sudo ./alfresco.sh start
  • 开始使用
    image.png
    image.png

相关文章

网友评论

本文标题:Alfresco+onlyoffice安装部署

本文链接:https://www.haomeiwen.com/subject/zgegdftx.html