本文最后更新于519 天前,其中的信息可能已经过时,如有错误请发送邮件到takumijie@qq.com
安装Alist
直接使用一键脚本就可以,先打开宝塔,然后点击左侧的,进入ssh终端,可能会让你输入密码,相信你应该知道自己的密码,然后复制下面的代码粘贴回车运行。
curl -fsSL "https://nn.ci/alist.sh" | bash -s install
当看到提示关于YOUR_IP:5244消息之后就成功了,注意这里也会输出初始的密码,记得记录下来。
宝塔操作
点击宝塔左侧的网站,新建一个网站相信你已经很熟悉这个操作了,类型选择静态/PHP就可以了。填入你的域名,新建网站完成。
建议先申请一个ssl证书开启https,因为此程序的部分功能需要https支持。
点击设置-配置文件。将默认文件的以下内容删除:
#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
然后在删除的地方加入:
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_redirect off;
proxy_pass http://127.0.0.1:5244;
# 上传的最大文件尺寸
client_max_body_size 20000m;
}
保存即可。
完成!打开你新建网站时填入的域名就可以打开了。




Solid article! Thinking about bankroll management & adapting to different game types is key. Seeing platforms like binggoplus online casino offer easy peso transactions is a huge plus for Filipino players – accessibility matters! 👍
Excellent walkthrough on Alist deployment. The BT Panel approach streamlines what could be complex server configuration. This mirrors how modern online platforms handle infrastructure – reliable backend systems are crucial for seamless user experiences, much like million88 game prioritizes system stability for its users.
The detailed Nginx proxy configuration is crucial for maintaining seamless resource access. This emphasis on robust, high-availability architecture-whether for file sharing or delivering a premium user experience-is a universal principle. Maintaining such stability is key to modern digital platforms, much like optimizing the experience through an arionplay app download.