<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AList &#8211; Lhy&#039;s blog</title>
	<atom:link href="https://blog.lhyshome.com/tag/alist/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.lhyshome.com</link>
	<description>welcome</description>
	<lastBuildDate>Thu, 25 Jul 2024 01:15:16 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">219834889</site>	<item>
		<title>Linux系统docker安装AList</title>
		<link>https://blog.lhyshome.com/2024/07/25/183/</link>
					<comments>https://blog.lhyshome.com/2024/07/25/183/#respond</comments>
		
		<dc:creator><![CDATA[lhy]]></dc:creator>
		<pubDate>Thu, 25 Jul 2024 01:08:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[脚本]]></category>
		<category><![CDATA[AList]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://blog.lhyshome.com/?p=183</guid>

					<description><![CDATA[docker命令 执行后docker容器的log中会展示出admin账号的密码 页面登陆127.0.0.1:5… <span class="read-more"><a href="https://blog.lhyshome.com/2024/07/25/183/">Read More &#187;</a></span>]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">docker命令</h2>



<pre class="wp-block-code"><code>docker run -d --restart=unless-stopped -v /home/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:v3.36.0</code></pre>



<p>执行后docker容器的log中会展示出admin账号的密码</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="199" src="https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-1024x199.png" alt="" class="wp-image-184" srcset="https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-1024x199.png 1024w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-300x58.png 300w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-768x149.png 768w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-500x97.png 500w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-800x156.png 800w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-1280x249.png 1280w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2-660x128.png 660w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-2.png 1414w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>页面登陆127.0.0.1:5244</p>



<figure class="wp-block-image size-full"><img decoding="async" width="601" height="574" src="https://blog.lhyshome.com/wp-content/uploads/2024/07/image-3.png" alt="" class="wp-image-185" srcset="https://blog.lhyshome.com/wp-content/uploads/2024/07/image-3.png 601w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-3-300x287.png 300w, https://blog.lhyshome.com/wp-content/uploads/2024/07/image-3-500x478.png 500w" sizes="(max-width: 601px) 100vw, 601px" /></figure>



<p>看到该页面即部署成功</p>



<h2 class="wp-block-heading">nginx配置（可选）</h2>



<p>如果需要使用域名访问，nginx反向代理如下</p>



<pre class="wp-block-preformatted">upstream alist {<br>    server 127.0.0.1:5244 ;<br>}<br><br>server {<br>    listen 80;<br>    server_name alist.example.com;<br>    location / {<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto $scheme;<br>        proxy_set_header Host $http_host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header Range $http_range;<br>        proxy_set_header If-Range $http_if_range;<br>        proxy_redirect off;<br>        # the max size of file to upload<br>        client_max_body_size 20000m;<br>        proxy_pass http://alist;<br>    }<br>}</pre>



<h2 class="wp-block-heading">AList官方文档</h2>



<p>https://alist.nn.ci/zh</p>



<h2 class="wp-block-heading">AList github地址</h2>



<p>https://github.com/alist-org/alist/tree/main</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.lhyshome.com/2024/07/25/183/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">183</post-id>	</item>
	</channel>
</rss>
