前言
本文安装部分教程只针对 Windows
系统毕竟 Linux 系统可以一键部署,不需要教了。
安装
前往 Releases · alist-org/alist (github.com) 根据自身情况下载对应的压缩包,我的是 alist-windows-amd64.zip
解压到任意文件夹内
在当前文件夹下打开 cmd
输入
1 2 3 4 5
| .\alist.exe server # 运行程序
.\alist.exe admin # 获取管理员信息 (默认是admin)
.\alist admin set [password] # 修改自己的管理员密码
|
默认访问地址是 127.0.0.1:5244
配置开机自启
此处使用知乎大佬 遮羽 的 vbs 代码
在 AList.exe 所在的目录下,创建一个 txt 文件,将后缀名改.vbs 输入代码
1 2
| Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c .\alist.exe server",vbhide
|
美化
添加的不多
头部
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
| <link rel="stylesheet" href="https://cdn.staticfile.net/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaigbscreen.min.css" /> <style> * { font-family: LXGW WenKai Screen; } .hope-ui-light { background-size: 20rem; background-image: url(https://img2.imgtp.com/2024/03/19/fhMevDWK.svg) !important; background-repeat: initial; background: #fcfcfc; background-attachment: local; background-position: center; }
.hope-c-PJLV-idaeksS-css, .hope-c-PJLV-ikaMhsQ-css { background: none !important; }
::selection { background: #fbc2eb; color: #fff; }
* { letter-spacing: 2px; }
.footer { display: none !important; }
.hope-c-PJLV-ikSuVsl-css { background: none !important; }
.markdown-body a { color: #000 !important; }
.hope-ui-dark .markdown-body a { color: #fff !important; }
.copyright a, .copyright .by { text-decoration: none; }
.copyright .by { display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.copyright a { display: flex; justify-content: center; margin: 0 10px; position: relative; transition: 0.5s; }
.copyright .xhx { background: pink; height: 3px; border-radius: 10px; width: 0; position: absolute; bottom: -3px; transition: 0.5s; }
.copyright a:hover { color: pink; }
.copyright a:hover .xhx { width: 100%; }
.copyright .run_item { display: flex; align-items: center; margin: 10px; }
.copyright .link { padding: 4px; background: rgba(255, 133, 153); color: #fff; border-radius: 0 8px 8px 0; }
.copyright .name { padding: 4px; background: #fff; border-radius: 8px 0 0 8px; color: #000; }
.copyright { padding: 50px; color: #000 !important; }
.runtime { width: 100%; padding: 10px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; }
.about, .state { width: min(99%, 980px); text-align: center; padding-inline: 2%; }
.state { margin-top: 20px; } </style>
|
内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| <div class="copyright" align="center"> <div class="about"> <div class="runtime"> <span class="run_item"> <span class="name">AList</span> <span class="link">UI</span> </span> <span class="run_item"> <span class="name">中国移动云盘</span> <span class="link">挂载</span> </span> <span class="run_item"> <span id="runtime_span"></span> </span> <script type="text/javascript"> function show_runtime() { window.setTimeout("show_runtime()", 1000); X = new Date("12/3/2023 00:00:00"); Y = new Date(); T = Y.getTime() - X.getTime(); M = 24 * 60 * 60 * 1000; a = T / M; A = Math.floor(a); b = (a - A) * 24; B = Math.floor(b); c = (b - B) * 60; C = Math.floor((b - B) * 60); D = Math.floor((c - C) * 60); runtime_span.innerHTML = '<span class="name">稳定运行' + A + '天</span><span class="link">' + B + "时" + C + "分" + D + "秒</span>"; } show_runtime(); </script> </div> </div> <div class="state"> <p> 免责声明:本站为个人网盘,网盘所发布的一切影视、源代码、注册信息及软件等资源仅限用于学习和研究目的 </p> </div> <div class="by"> <span>Powered By</span> <a href="https://quenan.love" target="_blank"> <span>Quenan</span> <div class="xhx"></div> </a> <span>| ©2023</span> </div> </div>
|