安装olny office服务
在01.centos7环境准备的基础上安装olny office服务
参考博客:https://blog.csdn.net/networken/article/details/84959156
第一步:安装docker
#安装依赖包:
yum install -y yum-utils
device-mapper-persistent-data
lvm2
#配置阿里云yum源:
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
#安装docker-ce:
yum install –y docker-ce
systemctl start docker && systemctl enable docker第二步:安装docker-compose
yum install -y epel-release docker-compose
第四步:创建docker-compose.yml配置文件:
version: '2'
volumes:
onlyoffice:
services:
onlyoffice:
image: onlyoffice/documentserver
ports:
- 6060:80
restart: always
docker run -i -t -d -p 6060:80 onlyoffice/documentserver --restart always --cap-add MKNOD
onlyoffice/documentserver
第五步:运行yml文件安装onlyoffice:
docker-compose up -d