当前位置: 首页 > wzjs >正文

上海网站建设公司排行榜阿里云网站建设 部署与发布考试

上海网站建设公司排行榜,阿里云网站建设 部署与发布考试,国学网站源码,网站建设属于税收目录 1、部署alist,配置ssl 安装alist 参考官方文档添加网盘 配置ssl 开启webdav访问 2、安装opkg 修改环境变量 添加计划任务 3、安装配置rclone挂载alist 安装rclone,新建remote 安装fuse3 挂载AList 添加计划任务 1、部署alist&#xff0…

目录

1、部署alist,配置ssl

安装alist

参考官方文档添加网盘

配置ssl

开启webdav访问

2、安装opkg

修改环境变量

添加计划任务

3、安装配置rclone挂载alist

安装rclone,新建remote

安装fuse3

挂载AList

添加计划任务


1、部署alist,配置ssl

确保你的套件中心添加了矿神源

安装alist

默认账号/密码是admin/alist,打开之后点击底下的管理,第一件事先修改账号密码

参考官方文档添加网盘

通用项 | AList文档

配置ssl

下载crt证书,可参考

玩机日记 1 前期准备工作:申请公网ipv4、购买域名、申请SSL证书-CSDN博客玩机日记 3 PVE配置SSL证书,主路由端口转发,实现远程访问PVE-CSDN博客

把保存crt证书的共享文件夹修改一下权限,确保alist可以访问

下载下来可能是三个文件,一个public.crt,一个chain.crt,需要把它们合成一个完整的证书

cat public.crt chain.crt > fullchain.crt

修改alist的config.json

vim /volume1/@appdata/alist3/config.json
#如果你的alist不是安装在储存空间1,比如说在储存空间2,那就把volume1改成volume2

找到这一段

修改成这样,两个file就是存放crt证书的路径

重启alist

成功添加了证书

开启webdav访问

2、安装opkg

opkg是一个第三方的包管理器,可以像apt一样在终端很方便的安装各类软件。

root执行

wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh

根据安装后的提示进行操作:

修改环境变量
vim /etc/profile

找到这一行

在结尾添加

:/opt/bin:/opt/sbin

添加完之后

添加计划任务

/opt/etc/init.d/rc.unslung start

完成之后重启群晖

此时已经安装好opkg了

3、安装配置rclone挂载alist

安装rclone,新建remote
opkg install rclonerclone config

接下来根据提示操作,其实并不复杂

root@RiNG:~# rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n #新建remoteEnter name for new remote.
name> AList  #给新建的remote起个名字,随便什么都可以Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.1 / 1Fichier\ (fichier)2 / Akamai NetStorage\ (netstorage)3 / Alias for an existing remote\ (alias)4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Magalu, Minio, Netease, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu and others\ (s3)5 / Backblaze B2\ (b2)6 / Better checksums for other remotes\ (hasher)7 / Box\ (box)8 / Cache a remote\ (cache)9 / Citrix Sharefile\ (sharefile)
10 / Combine several remotes into one\ (combine)
11 / Compress a remote\ (compress)
12 / Dropbox\ (dropbox)
13 / Encrypt/Decrypt a remote\ (crypt)
14 / Enterprise File Fabric\ (filefabric)
15 / FTP\ (ftp)
16 / Files.com\ (filescom)
17 / Gofile\ (gofile)
18 / Google Cloud Storage (this is not Google Drive)\ (google cloud storage)
19 / Google Drive\ (drive)
20 / Google Photos\ (google photos)
21 / HTTP\ (http)
22 / Hadoop distributed file system\ (hdfs)
23 / HiDrive\ (hidrive)
24 / ImageKit.io\ (imagekit)
25 / In memory object storage system.\ (memory)
26 / Internet Archive\ (internetarchive)
27 / Jottacloud\ (jottacloud)
28 / Koofr, Digi Storage and other Koofr-compatible storage providers\ (koofr)
29 / Linkbox\ (linkbox)
30 / Local Disk\ (local)
31 / Mail.ru Cloud\ (mailru)
32 / Mega\ (mega)
33 / Microsoft Azure Blob Storage\ (azureblob)
34 / Microsoft Azure Files\ (azurefiles)
35 / Microsoft OneDrive\ (onedrive)
36 / OpenDrive\ (opendrive)
37 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)\ (swift)
38 / Oracle Cloud Infrastructure Object Storage\ (oracleobjectstorage)
39 / Pcloud\ (pcloud)
40 / PikPak\ (pikpak)
41 / Pixeldrain Filesystem\ (pixeldrain)
42 / Proton Drive\ (protondrive)
43 / Put.io\ (putio)
44 / QingCloud Object Storage\ (qingstor)
45 / Quatrix by Maytech\ (quatrix)
46 / SMB / CIFS\ (smb)
47 / SSH/SFTP\ (sftp)
48 / Sia Decentralized Cloud\ (sia)
49 / Storj Decentralized Cloud Storage\ (storj)
50 / Sugarsync\ (sugarsync)
51 / Transparently chunk/split large files\ (chunker)
52 / Uloz.to\ (ulozto)
53 / Union merges the contents of several upstream fs\ (union)
54 / Uptobox\ (uptobox)
55 / WebDAV\ (webdav)
56 / Yandex Disk\ (yandex)
57 / Zoho\ (zoho)
58 / premiumize.me\ (premiumizeme)
59 / seafile\ (seafile)
Storage> 55  #选择webdav,也就是55号,alist只支持通过webdav挂载 
#注意!!!这个编号随着更新是会变的,看清楚webdav是几号,不要无脑输入55!Option url.
URL of http host to connect to.
E.g. https://example.com.
Enter a value.
url> https://localhost:5244/dav #注意/dav是必须加的Option vendor.
Name of the WebDAV site/service/software you are using.
Choose a number from below, or type in your own value.
Press Enter to leave empty.1 / Fastmail Files\ (fastmail)2 / Nextcloud\ (nextcloud)3 / Owncloud\ (owncloud)4 / Sharepoint Online, authenticated by Microsoft account\ (sharepoint)5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises\ (sharepoint-ntlm)6 / rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol\ (rclone)7 / Other site/service or software\ (other)
vendor> 7  #alist不属于上述类型,因此选择othersOption user.
User name.
In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a value. Press Enter to leave empty.
user> #这里输入你的alist用户名Option pass.
Password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y  #是的,输入自己的密码
Enter the password:
password: #输入你的alist密码
Confirm the password:
password: #确认密码Option bearer_token.
Bearer token instead of user/pass (e.g. a Macaroon).
Enter a value. Press Enter to leave empty.
bearer_token> Edit advanced config?
y) Yes
n) No (default)
y/n> n  #不更改高级选项Configuration complete.
Options:
- type: webdav
- url: https://192.168.1.141:5244/dav
- vendor: other
- user: 你的alist用户名
- pass: *** ENCRYPTED ***
Keep this "AList" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y  #是的,以上设置没有问题Current remotes:Name                 Type
====                 ====
AList                webdave) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q  #退出rclone配置

创建好一个remote之后,我们还需要配置连接到它

安装fuse3

rclone挂载依赖fuse3,先安装一下

opkg install fuse3-utils
挂载AList

事先新建好用来挂载的文件夹

 找一个共享文件夹新建一个AList.sh,注意不要放在用来挂载AList的目录中

比如我放在/volume2/Share文件夹里面

vim /volume2/Share/AList.sh

输入以下内容

#!/bin/bashexport PATH=/opt/bin:/opt/sbin:/usr/local/bin:/usr/bin:/binsleep 2              # Alist开机自启需要时间,所以小睡2秒再挂载rclone mount AList:/ /volume1/群晖网盘/AList \
--copy-links \
--no-gzip-encoding \
--no-check-certificate \
--allow-other \
--allow-non-empty \
--umask 000 \
--use-mmap \
--vfs-cache-mode full

chmod +x /volume2/Share/AList.sh #给予可执行权限
/volume2/Share/AList.sh          #运行一下试试看

像这样卡住不动就是挂载成功了,因为我们没有加后台运行的参数

切回群晖看一眼

在Windows11上面也可以顺利访问

关闭群晖的file station和Windows11的文件资源管理器,返回终端,按ctrl+c取消挂载

添加计划任务

添加计划任务以实现开机自动挂载

添加完可以尝试运行一下

挂载成功

接下来重启群晖看看能不能自动挂载

挂载失败了。其实对于我的配置来说,sleep时间要设为3才能挂载成功

再次重启群晖

这次就挂载成功了。对于不同的机器,需要sleep的时间也不一样,你的机器也许只要sleep1秒就能挂载,也有可能要sleep1分钟才能挂载。如果实在找不到挂载失败的原因,也可以照上图提示添加日志,自行查错。

http://www.dtcms.com/wzjs/663569.html

相关文章:

  • 广西网站建设公司招聘做模具做什么网站
  • 网站做视频一个月有多少钱收入广州网站建设工作室
  • 如何做网站链接佛山市南海城市建设投资有限公司
  • 冬季黄山旅游攻略南京seo优化
  • 创网站 设计方案可信网站认证有必要吗
  • 免费网站大全中国科技创新十大成果
  • 投资担保网站建设mt4网站可做黄金交易
  • 布局网站开发虚拟机做局域网网站服务器配置
  • 网站降权查下南阳网站seo公司
  • 什么摄像头做直播网站软文营销的成功案例
  • 在网站里文本链接怎么做福州最好的网站建设网络公司
  • 那些网站是做金融行业怎样注册网站中文域名
  • 图书网站开发的实践意义wordpress页面调用
  • 哪些网站做的好看医院做网站备案都需要什么
  • 郑州低价网站制作高端网站设计高端网站制作
  • 房地产培训网站建设企业网站开发是什么
  • 国家工信部备案网站wordpress可以换模板吗
  • 巩义网站建设模板网站建设指标
  • 枣庄建设局网站长春网站建设优化排名
  • 有个新网站专门做外贸的叫什么网络营销的特点全球性
  • 陕西有色建设有限公司官方网站静安做网站的公司
  • wordpress 改网站域名松原市新闻
  • 哈尔滨市营商环境建设监督局网站手机网站域名怎么解析
  • 90设计网站怎么绑定手机号扬中零壹网站建设
  • 什么网站做一件代发首页凡客
  • 做任务给佣金的网站有哪些敬请期待图片素材
  • 传奇网站模块下载开源crm客户管理系统
  • 石景山网站制作wordpress 自定义注册
  • 专业网站优化培训外贸原单是什么意思
  • 蓝色系 网站收款网站怎么建设