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.
|
3 weeks ago | |
---|---|---|
.idea | 3 months ago | |
templates | 3 months ago | |
LICENSE | 3 months ago | |
README.md | 3 weeks ago | |
ext.py | 4 months ago | |
favicon.ico | 4 months ago | |
main.py | 3 months ago | |
requirements.txt | 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