cd /etc/yum.repos.d/ wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

2.安装docker-ce yum -y install docker-ce

3.启动docker服务 systemctl start docker

4.下拉onlyoffice文件至服务器 docker pull onlyoffice/documentserver

5.新建onlyoffice存放证书的目录并上传公网申请好的证书 mkdir -pv /app/onlyoffice/DocumentServer/data/certs cd /app/onlyoffice/DocumentServer/data/certs

6.运行docker的onlyoffice镜像 docker run -i -t -d --restart=always -p 643:443 -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver

7.浏览器访问https://公网IP或域名:643/welcome是否能正常访问