Innevs

为 CentOS 安装ONLYOFFICE Document Server

原创Centosonlyofficeoffice onlieDocument Serverinnev4月23日25 阅读

为 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

yum install openresty

2、安装 nodejs

yum -y install nodejs

3、安装 Mono

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:

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:

[onlyoffice]
name=onlyoffice repo
baseurl=http://download.onlyoffice.com/repo/centos/main/noarch/
gpgcheck=1
enabled=1

Install Community Server:

yum install onlyoffice-communityserver

参考资料 Installing Community Server for Red Hat, CentOS and derivatives Download And Install Mono Installing Node.js via package manager OpenResty - Installation