1. 簡介
Community Server是一個免費的開源協作系統,用于管理檔案、專案、客戶關系和電子郵件通信,可以在私有服務器上安裝和配置,它的組成分為:
1. OnlyOfficeJabber - 即時訊息服務;
2. OnlyOfficeNotify - 郵件通知服務;
3. OnlyOfficeIndex - 全文檢索相關服務;
4. OnlyOfficeFeed - 門戶新聞種子分析和布局服務;
5. OnlyOfficeBackup - 創建備份、下載和部署等服務;
6. OnlyOfficeAutoReply - 對不同門戶物體自動應答和通過郵件新建物體等服務;
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埠對于HTTP,443埠對應HTTPS,不建議修改上述網站埠,
IIS需要安裝如下組件:
- Application Request Routing. 下載完后按照提示安裝,在IIS管理中,選擇 Application Request Routing Cache 選項, 打開Server Proxy Settings,勾選Enable proxy和Reverse rewrite host in response headers.
- URL Rewrite Module. 下載完后按照提示安裝,在控制面板中,選擇Programs and Features,Turn Windows features on or off, 展開Internet Information Services > World Wide Web Services > Application Development Features,打開WebSocket Protocol 選項. 點擊OK 確保安裝完畢,
IIS配置如下:
- 打開IIS管理器.
- 添加站點ONLYOFFICE CommunityServer指向C:\ONLYOFFICE\WebStudio,
- 確保網站使用.Net Framework 4.0(Application Pools -> Edit Application Pool -> Basic Settings),
- 在網站內建立一個mailattachments 虛擬目錄,指向C:\ONLYOFFICE\Data,用于郵件聚集計算,
- 確保網站用戶和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
- Language和Time Zone
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/73198.html
標籤:C#
下一篇:教你5分鐘做個手機APP[視頻]
