CommunityServer的編譯

1. 簡介

Community Server是一個免費的開源協做系統,用於管理文檔、項目、客戶關係和電子郵件通訊,能夠在私有服務器上安裝和配置。它的組成分爲:web

  1. OnlyOfficeJabber - 即時消息服務;sql

  2. OnlyOfficeNotify - 郵件通知服務;數據庫

  3. OnlyOfficeIndex - 全文檢索相關服務;服務器

  4. OnlyOfficeFeed - 門戶新聞種子分析和佈局服務;網絡

  5. OnlyOfficeBackup - 建立備份、下載和部署等服務;app

  6. OnlyOfficeAutoReply - 對不一樣門戶實體自動應答和經過郵件新建實體等服務;ide

  7. OnlyOfficeSocketIO - Web頁面的Talk工具消息交換服務;工具

  8. OnlyOfficeMailAggregator, OnlyOfficeMailWatchdog - Windows服務,用來聚合和保存郵件消息。服務配置的詳細信息能夠參考如下文件:佈局

    8.1 module\ASC.Mail.Aggregator\ASC.Mail.Aggregator.CollectionService\ReadMe.txt網站

    8.2 module\ASC.Mail.Aggregator\ASC.Mail.Aggregator.CollectionService\Requirements.txt

    8.3 module\ASC.Mail.Aggregator\ASC.Mail.Watchdog.Service\ReadMe.txt

  9. WebStudio - Web網站,頁面產品和模塊展現;

  10. Auxiliary tools

2. 安裝需求

2.1 硬件需求

CPU:dual core 2 GHz or better

內存:很多於4 GB

硬盤:至少 2 GB

2.2 軟件需求

① 操做系統: Microsoft Windows Server 2012 (R2)以上

② Microsoft .NET Framework 4.7.2 Developer Pack;

③ Microsoft Build Tools 2015;

④ Internet Information Services 7以上,包含如下模塊:

  • Internet Information Services Manager;
  • Default Document; Directory Browsing; HTTP Errors; HTTP Redirection; Static Content;
  • .NET Extensibility (for Microsoft Windows 7, Microsoft Windows Server 2008 (R2));
  • .NET Extensibility 3.5; .NET Extensibility 4.6.2 (for Microsoft Windows 8, Microsoft Windows 8.1, Microsoft Windows Server 2012(R2), Microsoft Windows Server 2016);

⑤ Node.js: 版本8.12.0及以上;

⑥ MySQL Server 5.5及以上;

⑦ Python: 3.7.2 (64-bit);

⑧ Redis: 3.0.504 (64-bit);

⑨ Java SE Runtime Environment: 8u171 (64-bit);

⑩ Elasticsearch: v6.5.0 (64-bit);

⑪ Web Browser: Microsoft Internet Explorer 9 以上,最新版本的 Mozilla Firefox, Opera, Safari, Google Chrome.

3.數據庫

Community Server使用MySql數據庫,標準配置和流程以下:

  1. 確保本地MySql服務器版本不低於5.5 ;

  2. onlyoffice名稱建立一個數據庫;

  3. build\sql\順序運行下列sql腳本

    3.1 安裝腳本:

    onlyoffice.sql,onlyoffice.data.sql,onlyoffice.resources.sql

    3.2 升級腳本: onlyoffice.upgrade*.sql

若是不用標準配置,能夠用本身的用戶名,密碼和數據庫名:

  1. 建立包含下列文本的文件:

    Server={ServerName};Database={DatabaseName};User ID={UserName};Password={UserPassword};Pooling=True;Character Set=utf8

  2. 更改下列配置文件中鏈接字符串:

    2.1 web\studio\ASC.Web.Studio\web.connections.config

    2.2 build\config\TeamLabSvc.exe.config

    2.3 module\ASC.Mail.Aggregator\ASC.Mail.Aggregator.CollectionService\App.config

    2.4 odule\ASC.Mail.Aggregator\ASC.Mail.Watchdog.Service\App.config

  3. 運行sql腳本。

 

4. Community Server

 

4.1 編譯

 

進至build文件夾,用BuildAndDeploy.bat編譯源碼完成後的二進制文件位於\build\deploy\OPENSOURCE.SERVER

 

4.2 部署

 

假設部署目錄爲С:\ONLYOFFICE,\build\deploy\OPENSOURCE.SERVER全部文件拷貝至其中。

 

4.3 安裝服務

 

進入"cd C:\ONLYOFFICE\Services\TeamLabSvc",執行」ManageServices.bat --install-all」命令.

 

5. IIS配置

 

Community Server使用IIS網站管理。注意配置參數中80端口對於HTTP443端口對應HTTPS。不建議修改上述網站端口。

 

IIS須要安裝以下組件:

 

  • Application Request Routing. 下載完後按照提示安裝IIS管理中,選擇 Application Request Routing Cache 選項, 打開Server Proxy Settings勾選Enable proxyReverse rewrite host in response headers.
  • URL Rewrite Module. 下載完後按照提示安裝。在控制面板中,選擇Programs and FeaturesTurn Windows features on or off 展開Internet Information Services > World Wide Web Services > Application Development Features打開WebSocket Protocol 選項. 點擊OK 確保安裝完畢。

 

IIS配置以下:

 

  1. 打開IIS管理器.
  2. 添加站點ONLYOFFICE CommunityServer指向C:\ONLYOFFICE\WebStudio
  3. 確保網站使用.Net Framework 4.0Application Pools -> Edit Application Pool ->  Basic Settings)。
  4. 在網站內創建一個mailattachments 虛擬目錄,指向C:\ONLYOFFICE\Data用於郵件彙集計算。
  5. 確保網站用戶和IUSR角色用戶對C:\ONLYOFFICE 擁有最高權限:

    5.1 選擇C:\ONLYOFFICE "Security"選項卡

    5.2 點擊"Edit..."

    5.3 點擊"Add..." 添加新組或用戶

    5.4 加入IUSR用戶

  6. Documents模塊須要激活WCF Http Activation組件. 控制面板中Programs And Features選擇Turn Windows Features On or Off展開至.NET Framework 3.5 選擇WCF Http Activation

 

6. 防火牆配置

 

Community Server 的通知服務器,即時消息服務器和郵件聚合計算都須要經過特定端口訪問外部網絡,可將下列程序添加入防火牆的例外中。

 

  • C:\ONLYOFFICE\Services\TeamLabSvc\TeamLabSvc.exe
  • C:\ONLYOFFICE\Services\MailAggregator\ASC.Mail.Aggregator.CollectionService.exe

 

7. Community Server門戶

 

按照上述步驟,Community Server 門戶對應http://communityserver 地址. 在門戶啓動後,須要設置以下參數:

 

  • Password
  • Email address
  • LanguageTime Zone
相關文章
相關標籤/搜索