With just a few simple configurations, Alibaba Cloud Disk can be transformed into a file server using the webdav protocol. Based on this, you can mount the Alibaba Cloud disk as a disk in Windows, Linux, and Mac systems, and you can perform file management or file synchronization through the NAS system;
1. Window
Tutorial reference: https://github.com/gylang/aliyundriver-webdav-software-ui
- Download this git: https://github.com/gylang/aliyundriver-webdav-software-ui and unzip it
- Download aliyundrive-webdav
- Download the zip installation package according to the system: https://github.com/messense/aliyundrive-webdav/releases,
- After decompression, get aliyundrive-webdav.exe and put the file into the bin directory of the file downloaded in 1.
- Run aliyundriver-webdav.exe in the root directory of the file downloaded in 1 (the root directory, not the bin folder) to start the service
- Get the Alibaba Cloud token, https://messense-aliyundrive-webdav-backendrefresh-token-ucs0wn.streamlit.app/. Click this website and scan the QR code, or click aliyundriver-webdav.exe in the bin directory. You can also get the token by scanning the QR code. ;
- Install RaiDrive: The file is in the guide directory
- Configuration:
Open raiDrive and click Add in the upper left corner
then click:
Change the ip part to http, just uncheck the address
and fill in the relevant configuration. The refreshToken here is the Alibaba Cloud token obtained earlier
and click connect.
Effect:
You can see the 8T network disk locally.
2. Mac
- Download Alibaba Cloud Disk on your mobile phone and log in
- Click https://github.com/messense/aliyundrive-webdav/releases/download/v2.2.2/aliyundrive-webdav-v2.2.2.apple-darwin.tar.gz, download and unzip to get the aliyundrive-webdav file, Remember the path
- Enter the terminal shell, and then run Your_path/aliyundrive-webdav qr login. A QR code will appear. Scan the code with your mobile phone's Alibaba Cloud Disk to get refresh-token.
- Your_path/aliyundrive-webdav --host 127.0.0.1 -p 8080 -U admin -W admin --root / -I The port here can be changed to what you need. -U is the user name, -W is the password and then browse Enter http://127.0.0.1:8080 on the server, enter your account and password, and you can see the contents of the cloud disk.
- Ctrl+k can log in and put it on your network disk. The download and upload speed depends on your network.
If port 8080 is occupied, ls of -i:8080
find the process number, and thenkill -9 进程号