为 CentOS 安装ONLYOFFICE Document Server
原创
Centos onlyoffice office onlie Document Server 04月23日发布
为 CentOS 安装ONLYOFFICE Document Server
===
## 硬件配置要求
CPU: 双核 2 GHz +
RAM: 2 GB+
HDD: 至少有2GB的剩余空间
Swap: 至少2 GB
操作系统: RedHat 64bit,CentOS类、Debian类的内核版本3.10以上;Mac OS X 版本 10.8+
环境依赖:
Mono: 4.2+
MySQL: 5.7+
Node.js: 6.10.3+
NGINX: 0.8.21+
## 安装
以 CentOS 7.4.* 为例进行安装
#### 1、安装 openresty
本项目中使用openresty代替nginx
```shell
yum install openresty
```
#### 2、安装 nodejs
```shell
yum -y install nodejs
```
#### 3、安装 Mono
```shell
rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'
yum install mono-devel
```
#### 4、安装 Onlyoffice
Add GPG key:
```shell
sudo rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8320CA65CB2DE8E5"
```
Add the yum Community Server repository by creating the /etc/yum.repos.d/onlyoffice.repo file with the following contents:
```shell
[onlyoffice]
name=onlyoffice repo
baseurl=http://download.onlyoffice.com/repo/centos/main/noarch/
gpgcheck=1
enabled=1
```
Install Community Server:
```shell
yum install onlyoffice-communityserver
```
参考资料
[Installing Community Server for Red Hat, CentOS and derivatives](https://helpcenter.onlyoffice.com/server/linux/community/linux-installation-centos.aspx?_ga=2.258581901.648762986.1524449442-1400549834.1523243352 "Installing Community Server for Red Hat, CentOS and derivatives")
[Download And Install Mono](https://www.mono-project.com/download/stable/#download-lin-centos "Download And Install Mono")
[Installing Node.js via package manager](https://nodejs.org/en/download/package-manager/ "Installing Node.js via package manager")
[OpenResty - Installation](http://openresty.org/en/installation.html "OpenResty - Installation")
04月23日发布
分享到: