Nextcloud + Onlyoffice 一键搭建

环境 win10 + 虚拟机ubuntu 16 LTS

 安装nextcloud

  • sudo apt-get update
  • sudo apt install snapd
  • sudo snap install nextcloud

 安装docker和onlyoffice

  • wget -qO- https://get.docker.com/ | sh
    • sudo mkdir -p /etc/docker
    • sudo tee /etc/docker/daemon.json << {"registry-mirrors":["https://3w478x39.mirror.aliyuncs.com"]}
    • sudo systemctl daemon-reload
    • sudo systemctl restart docker
    • sudo docker pull onlyoffice/documentserver
    • sudo docker run -i -t -d -p PORT_NUMBER(9000):80 --restart=always onlyoffice/documentserver
    • PORT_NUMBER为希望映射的外部端口这里我的为9000

设置虚拟机端口映射

配置onlyoffice接口

http://ip:9000/

你可能感兴趣的:(Nextcloud + Onlyoffice 一键搭建)