ubuntu22.04.2安装onlyoffice(不更改默认端口版)

该文提供了在Ubuntu系统上配置阿里源加速安装,然后详细介绍了安装postgresql数据库、创建相应用户,接着部署RabbitMQ消息队列,安装Nginx-extrasweb服务器,以及添加ONLYOFFICE的GPG密钥、仓库并安装ONLYOFFICEDocs的过程,最后启动服务并进行测试。
摘要由CSDN通过智能技术生成

目录

一、配置阿里源

二、postgresql数据库

(一)安装postgresql

(二)创建postgresql数据库和用户

三、安装 rabbitmq

四、安装nginx-extras

五、安装ONLYOFFICE Docs

(一)Add GPG key

(二)Add ONLYOFFICE Docs repository

(三)Install mscorefonts

(四)Install ONLYOFFICE Docs

(五)启动ds-example服务

六、访问网站测试


本文是部署dzzoffice+onlyoffice的onlyoffice部署文档,dzzoffice部署的文档参考我的另一篇文章:https://blog.csdn.net/u013930899/article/details/131158548

一、配置阿里源

在安装时建议使用阿里源,安装会快一点

cd /etc/apt/

sudo cp sources.list sources.list_bak

sudo vim sources.list

sources.list内容改为:

deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

sudo apt update

二、postgresql数据库

(一)安装postgresql

sudo apt-get install postgresql

(二)创建postgresql数据库和用户

sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';" sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice OWNER onlyoffice;"

三、安装 rabbitmq

sudo apt-get install rabbitmq-server

四、安装nginx-extras

sudo apt-get install nginx-extras

五、安装ONLYOFFICE Docs

(一)Add GPG key

mkdir -p -m 700 ~/.gnupg

curl -fsSL https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE | gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --import

chmod 644 /tmp/onlyoffice.gpg

sudo chown root:root /tmp/onlyoffice.gpg

sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg

(二)Add ONLYOFFICE Docs repository

echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list

sudo apt-get update

(三)Install mscorefonts

sudo apt-get install ttf-mscorefonts-installer

(四)Install ONLYOFFICE Docs

sudo apt-get install onlyoffice-documentserver

输入postgresql用户onlyoffice的密码:onlyoffice

(五)启动ds-example服务

sudo systemctl start ds-example

六、访问网站测试

http://192.168.101.105/example/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

見贤思齊

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值