cloudreve 搭建office文件预览解析
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
fynn 0e83372c03 更新 'README.md' 3 weeks ago
.idea v 1.0.1 3 months ago
templates 取消url转义 3 months ago
LICENSE 添加 LICENSE 3 months ago
README.md 更新 'README.md' 3 weeks ago
ext.py v 1.0.0 4 months ago
favicon.ico v 1.0.0 4 months ago
main.py 修改文件名解析 3 months ago
requirements.txt v 1.0.0 4 months ago

README.md

推荐环境 Linux Python3.11

Python低版本存在问题需要修改一些逻辑

安装

mkdir -p /python&&cd /python
wget https://git.fynn.vip/fynn/OnlyOffice/archive/master.zip
  • 或者使用git克隆
git clone https://git.fynn.vip/fynn/OnlyOffice.git

进入目录

unzip OnlyOffice.zip&&cd onlyoffice

安装第三方库

pip3 install -r requirements.txt

启动脚本

sanic main:app --host=0.0.0.0 --port=8000

创建服务

vim /usr/lib/systemd/system/onlyoffice.service
[Unit]
Description=OnlyOffice Server

[Service]
Type=simple
WorkingDirectory=/python/onlyoffice/
ExecStart=/usr/bin/python3 -m sanic main:app --host=0.0.0.0 --port=8000
Restart=always
TimeoutSec=0

[Install]
WantedBy=multi-user.target

启动服务并设置开机自启

systemctl daemon-reload
systemctl start onlyoffice
systemctl enable onlyoffice

查看服务状态

systemctl status onlyoffice