nextcloud + onlyoffice document server 快速搭建

nextcloud 使用snap (国内没镜像,真慢,如果想快点,就手动安装吧)

epel

yum install epel-release

docker

yum -y install docker
systemctl enable docker
systemctl start docker

document server onlyoffice

mkdir -p /var/log/onlyoffice
mkdir -p /var/www/onlyoffice/Data
mkdir -p /var/lib/onlyoffice
mkdir -p /var/lib/postgresql

sudo docker run -i -t -d -p 9300:80 --restart=always \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  onlyoffice/documentserver

snap

yum install snapd
systemctl enable --now snapd.socket
ln -s /var/lib/snapd/snap /snap

nextcloud

snap install nextcloud

后继

  • 浏览器访问 IP
  • 初始化nextcloud
  • 右上角新增app 搜索onlyoffice
  • 设置onlyoffic 输入IP:9300

snap命令参考

#切换至扩展库
snap refresh hugo --channel=extended 

#切换至稳定库默认()
snap refresh hugo --channel=stable.

### 更新一个snap包,
sudo snap refresh <snap name>

### 列出已经安装的snap包
sudo snap list

### 搜索snap包
sudo snap find <text to search>

### 安装snap包
sudo snap install <snap name>

### 把一个包回退到以前安装的版本
snap revert <snap name>

### 删除snap包
sudo snap remove <snap name

参考

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐