赞
踩
这里使用道客提供的安装脚本,直接执行 确保有权限执行sh
curl -sSL https://get.daocloud.io/docker | sh
systemctl start docker
systemctl enable docker
容器内部80端口映射宿主机8081端口
sudo docker run -i -t -d -p 8081:80 --restart=always --name onlyoffice \
-v /root/onlyoffice/log:/var/log/onlyoffice \
-v /root/onlyoffice/data:/var/www/onlyoffice/Data \
-v /root/onlyoffice/lib:/var/lib/onlyoffice \
-v /root/onlyoffice/db:/var/lib/postgresql onlyoffice/documentserver
[root@AIO-XXX-01 rar-4.2.0]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b48b1fcabbca onlyoffice/documentserver "/app/ds/run-documen…" 4 hours ago Up 2 hours 443/tcp, 0.0.0.0:8081->80/tcp, :::8081->80/tcp onlyoffice
[root@AIO-XXX-01 rar-4.2.0]#
宿主机地址加指定暴露的8081端口
到此,OnlyOffice安装完成,在nextcloud网盘上可以接入OnlyOffice服务,实现文档在线编辑。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。