这是本文档旧的修订版!
onlyoffice
https://www.onlyoffice.com/zh/download-community
#访问 https://github.com/ONLYOFFICE/DocumentServer/releases #下载ONLYOFFICE-DocumentServer-9.2.0 https://github.com/ONLYOFFICE/DocumentServer/releases/download/v9.2.0/onlyoffice-documentserver_amd64.deb sha256:2a42e5c47080650a70d2d5e7f9df9c126a37bbd5786e3bffb8adb88e8a01843e onlyoffice-documentserver_amd64.deb sudo apt install postgresql libstdc++6 nginx sudo apt install redis-server sudo apt install rabbitmq-server sudo apt install nginx-extras #/etc/apt/sources.list 添加 contrib non-free # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware # 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换 deb https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware # deb-src https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware sudo apt install ttf-mscorefonts-installer sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';" sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice OWNER onlyoffice;" ALTER ROLE onlyoffice WITH LOGIN CREATEDB; scp .\onlyoffice-documentserver_amd64.deb user@example.com:/home/user sudo apt install ./onlyoffice-documentserver_amd64.deb 软件包设置Database Password:输入数据库密码 sudo apt install onlyoffice-documentserver-de #修改端口 <PORT_NUMBER>=80 echo onlyoffice-documentserver onlyoffice/ds-port select <PORT_NUMBER> | sudo debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-host string <DB_HOST> | sudo debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-user string <DB_USER> | sudo debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-pwd password <DB_PASSWORD> | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-name string <DB_NAME> | sudo debconf-set-selections sudo systemctl start ds-example sudo systemctl enable ds-example http://example.com/example/ sudo systemctl start ds-adminpanel sudo systemctl enable ds-adminpanel http://example.com/admin/