You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
一、功能说明
缓解VPS空间紧张的情况,把VoceChat的定时删除数据文件关闭了。此方法只不限于VoceChat。所用工具也只是我所用的工具,其他此功能的工具也可以。弊端:读写速度会受到一定的影响。
二、所用到工具
1、VoceChat
2、宝塔面板(非必须,用于查看挂载路径)
3、Clouddrive2(必须或同功能工具,用于挂载网盘到本地)
4、操作系统:ubuntu
懂的人估计已经知道下面要做什么了,之后的就可以跳过自己弄了。
三、操作方法
1、安装部署上面的4项。部署方法这里不再详说,可上网自查。

2、打开宝塔面板-Docker-容器-VoceChat容器的“管理”-“编辑容器”-更多设置-挂载/映射,记下“挂载目录”的路径。
我的是:/www/dk_project/dk_app/vocechat/vocechat_Xphw/data
终端下可见此目录下有一个"upload"目录。此目录就是VoceChat上传的照片、文件的存储目录。

终端下运行:
3、打开Clouddrive的管理web,添加自己的网盘,比如我目前用的是百度网盘(我有这个会员哈)。并在网盘根目录下建一个文件夹,名称随便。我的是webupload。整体刷新下页面,在页面左侧栏可看到刚刚新建的目录,并选中它,点上工具上的“挂载到本地”。

4、如果有需要原来的记录文件,只要把olduplad的下文件复制到挂载好的upload目录中即可。
cp -R ./oldupload ./upload
,如果新部署的直接第5步。5、最后在宝塔面板中把VoceChat的容器重启一下,看看运行正常否,再试试VoceChat收发正常否,最后进入VoceChat的设置页面-数据管理,把“定时删除文件数据”闭关或其他时长。就完工了。
Beta Was this translation helpful? Give feedback.
All reactions