alfresco安裝說明 (已更新)

 

 

1、軟件下載java

    下載地址:https://sourceforge.net/projects/alfresco/files/Alfresco%20201605%20Community/linux

須要下載兩個文件:主文件alfresco-community-installer-201605-linux-x64.bin,rm模塊alfresco-rm-community-2.4.b.zipweb

本次測試了多個版本,centos

alfresco 4.2f版功能較簡單,主要是rm模塊沒漢化,沒有關係維護功能,wcmqs模塊能用,
alfresco 5.0d 較穩定版本,已漢化,最大問題是rm模塊關係維護功能不可用。
201612版,rm模塊不兼容
201611版同上
201609版,rm2.5審計功能不可用,500內部錯誤,rm2.4b版不可用
201605版,較穩定,但wcmqs有問題,不可用,日誌中顯示rm模塊有問題,但能用。
201602,主要是wcmqs不可用,較穩定,tomcat

另外還測試了其它幾個版本,已忘記了有什麼問題,但每一版本或多或少都有問題,最後決定使用201505版服務器

2、安裝app

一、操做系統,使用centos-x64版webapp

二、安裝步驟:測試

(1)複製alfresco-community-installer-201605-linux-x64.bin,alfresco-rm-community-2.4.b.zip到服務器上/home/tlweb2,將alfresco-rm-community-2.4.b.zip解壓。lua

(2)更改權限

chmod a+x alfresco-community-installer-201605-linux-x64.bin

sudo chmod 755 /home/tlweb2

(3)安裝

sudo ./alfresco-community-installer-201605-linux-x64.bin --mode text(以文本方式安裝,按提示選擇安裝語言等)

注意安裝要以超級用戶權限安裝,不然有些服務不能啓動。早期版本會一直等待不能安裝下去。

(4)安裝rm模塊

將解壓出的兩個文件複製進安裝目錄

sudo cp alfresco-rm-community-repo-2.4.b.amp {安裝目錄}/amps

sudo cp alfresco-rm-community-share-2.4.b.amp {安裝目錄}/amps_share

進入安裝目錄,執行安裝

若是已啓動alfresco,先中止服務,而後

cd alfresco

sudo java/bin/java -jar bin/alfresco-mmt.jar install amps/alfresco-rm-community-repo-2.4.b.amp tomcat/webapps/alfresco.war

sudo java/bin/java -jar bin/alfresco-mmt.jar install amps_share/alfresco-rm-community-share-2.4.b.amp tomcat/webapps/share.war

刪除tomcat/webapps下share,alfresco目錄

sudo rm  -r tomcat/webapps/share

sudo rm -r tomcat/webapps/alfresco

3、啓動服務

sudo ./alfresco.sh start

關閉服務

sudo ./alfresco.sh stop

4、登陸使用

http://10.140.96.8:8080/share

5、問題解決

一、默認沒有開啓guest

在tomcat/shared/classes下,文件alfresco-global.properties ,增長一條配置:alfresco.authentication.allowGuestLogin=true

二、wps文件mime問題

wps文件默認爲bin格式,如經過smb直接修改保存後,alfresco自動改爲office格式。

在/home/tlweb2/alfresco/tomcat/shared/classes/alfresco/extension/mimetype/文件夾中,將 mimetypes-extension-map.xml.sample文件複製成mimetypes-extension-map.xml,內容以下:
<alfresco-config area="mimetype-map">

   <config evaluator="string-compare" condition="Mimetype Map">
      <mimetypes>

         <mimetype mimetype="application/kswps" display="wps文字">
            <extension>wps</extension>
         </mimetype>

         <mimetype mimetype="application/kset" display="wps表格">
            <extension>et</extension>
         </mimetype>

         <mimetype mimetype="application/ksdps" display="wps演示">
            <extension>dps</extension>
         </mimetype>

      </mimetypes>
   </config>

</alfresco-config>

爲了實現wps文件預覽,用以下內容:

<alfresco-config area="mimetype-map">    <config evaluator="string-compare" condition="Mimetype Map">       <mimetypes>          <mimetype mimetype="application/msword" display="wps文字">             <extension>wps</extension>          </mimetype>          <mimetype mimetype="application/vnd.ms-excel" display="wps表格">             <extension>et</extension>          </mimetype>          <mimetype mimetype="application/ms-powerpoint" display="wps演示">             <extension>dps</extension>          </mimetype>       </mimetypes>    </config> </alfresco-config ~                 

相關文章
相關標籤/搜索