aed1984335a1:/opt/alist# ./alist admin
INFO[2024-01-16 09:31:59] You can reset the password with a random string by running [alist admin random]
INFO[2024-01-16 09:31:59] You can also set a new password by running [alist admin set NEW_PASSWORD]
# 设置admin用户的密码
aed1984335a1:/opt/alist# ./alist admin set xsss
INFO[2024-01-16 09:32:50] reading config file: data/config.json
INFO[2024-01-16 09:32:50] load config from env with prefix: ALIST_
INFO[2024-01-16 09:32:50] init logrus...
INFO[2024-01-16 09:32:50] admin user has been updated:
INFO[2024-01-16 09:32:50] username: admin
INFO[2024-01-16 09:32:50] password: xsss
aed1984335a1:/opt/alist#
ip:5244
或者自定义的访问端口,登录admin用户,打开管理界面(底部有管理)