Manual installation
Get Alist
Open AList Release to download the files corresponding to the system to be deployed. The latest version of the front-end has been packaged with the back-end, so there is no need to download the front-end files again.
The xxxx refers to the names corresponding to different systems/architectures, generally Linux-x86/64 is alist-linux-amd64. If your glibc version is too low, it is recommended to download the musl version
When you see the output of start server @ 0.0.0.0:5244
and no error is reported afterwards, it means that the operation is successful. The initial password will be output when running for the first time. The program listens to port 5244 by default. Now open http://ip:5244
You can see the login page, please see WebDav for webdav.
Running
# Unzip the downloaded file to get the executable file:
tar -zxvf alist-xxxx.tar.gz
# Grant program execution permissions:
chmod +x alist
# Run the program
./alist server
# Get admin's info
./alist admin
# Unzip the downloaded file to get the executable file:
tar -zxvf alist-xxxx.tar.gz
# Grant program execution permissions:
chmod +x alist
# Run the program
./alist server
# Get admin's info
./alist admin
# Unzip the downloaded file to get the executable file:
unzip alist-xxxx.zip
# Run the program
.\alist.exe server
# Get admin's info
.\alist.exe admin
# Install
scoop install alist
# Run
alist server
Daemon
vim /usr/lib/systemd/system/alist.service
add the following content, where path_alist is the path where alist is located
[Unit]
Description=alist
After=network.target
[Service]
Type=simple
WorkingDirectory=path_alist
ExecStart=path_alist/alist server
Restart=on-failure
[Install]
WantedBy=multi-user.target
Then systemctl daemon-reload
, now you can use these commands to manage the program:
- Start:
systemctl start alist
- Shut down:
systemctl stop alist
- Self-start:
systemctl enable alist
- Cancel Self-start:
systemctl disable alist
- Status:
systemctl status alist
- Restart:
systemctl restart alist
Edit ~/Library/LaunchAgents/ci.nn.alist.plist
in any way and add the following content, modify path_alist
to be the path where AList is located, and path/to/working/dir
to be the working path of AList
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ci.nn.alist</string>
<key>KeepAlive</key>
<true/>
<key>ProcessType</key>
<string>Background</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>path/to/working/dir</string>
<key>ProgramArguments</key>
<array>
<string>path_alist/alist</string>
<string>server</string>
</array>
</dict>
</plist>
Then, execute launchctl load ~/Library/LaunchAgents/ci.nn.alist.plist
to load the configuration, now you can use these commands to manage the program:
- Start:
launchctl start ~/Library/LaunchAgents/ci.nn.alist.plist
- Close:
launchctl stop ~/Library/LaunchAgents/ci.nn.alist.plist
- Unload configuration:
launchctl unload ~/Library/LaunchAgents/ci.nn.alist.plist
method one
- Download the newest
nssm
from https://nssm.cc/download. - Unzip the archive and go to the diretory of
nssm.exe
. - Hold Shift and right click on the blank space, then release and press S or select "powershell here", you should now see a blue window named "Windows PowerShell".
- Type
.\nssm.exe install alist
. - Select the path of
alist.exe
for "Path", e.g.D:\alist\alist.exe
; typeserver
for "Argument". - You can custom "Display Name", "Description" and "Startup Type" in "Details" tab.
- Go to "I/O" tab and select a file for both "Output (stdout)" and "Output (stderr)", e.g.
D:\alist\stdout.log
. The file itself (stdout.log
) may not exist, but the folder (D:\alist
) must exist. - Click on "Install Service".
You can now start the service from services.msc or task manager.
method two
method two
Use .VBS
script to start and stop, create two scripts respectively start.vbs and stop.vbs
Just double-click to start it in the folder at the same level as the Alist startup program, don't worry about no response, just go to the browser to access it
Two startup scripts
start.vbs
Dim ws
Set ws = Wscript.CreateObject("Wscript.Shell")
ws.run "alist.exe server",vbhide
Wscript.quit
stop.vbs
Dim ws
Set ws = Wscript.CreateObject("Wscript.Shell")
ws.run "taskkill /f /im alist.exe",0
Wscript.quit
If the script will not be created, you can download it yourself: Script Download
If the script will not be used, you can watch the video: reference video
How to realize Windows startup automatically, you can refer to the script mentioned above to use the video (second).
Info
For all platform, you can use follow command to silent start, stop and restart. (v3.4.0 and later)
# start server with `--force-bin-dir`
alist start
# stop server by pid
alist stop
# restart server by pid
alist restart
How to update
Download the new version of Alist and replace the previous one.