<?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>nextcloud &#8211; Lhy&#039;s blog</title>
	<atom:link href="https://blog.lhyshome.com/tag/nextcloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.lhyshome.com</link>
	<description>welcome</description>
	<lastBuildDate>Tue, 21 May 2024 10:13:35 +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>docker部署nextcloud</title>
		<link>https://blog.lhyshome.com/2024/05/13/34/</link>
					<comments>https://blog.lhyshome.com/2024/05/13/34/#respond</comments>
		
		<dc:creator><![CDATA[lhy]]></dc:creator>
		<pubDate>Mon, 13 May 2024 02:20:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[nextcloud]]></category>
		<guid isPermaLink="false">https://blog.lhyshome.com/?p=34</guid>

					<description><![CDATA[docker命令 docker执行完，浏览80端口，安装完成后执行如下代码 开启redis，在config/c… <span class="read-more"><a href="https://blog.lhyshome.com/2024/05/13/34/">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 \
    -p 80:80 \
	-v /home/nextcloud/nextcloud:/var/www/html \
	-v /home/nextcloud/apps:/var/www/html/custom_apps \
	-v /home/nextcloud/config:/var/www/html/config \
	-v /home/nextcloud/data:/var/www/html/data \
	-v /home/nextcloud/theme:/var/www/html/themes \
	--restart=always \
	--name nextcloud \
	nextcloud</code></pre>



<p>docker执行完，浏览80端口，安装完成后执行如下代码</p>



<p>开启redis，在config/config.php文件中,$CONFIG = array里添入以下代码</p>



<pre class="wp-block-code"><code>    'overwritehost' =&gt; 'ncloud.lhyshome.com:443',
    'overwriteprotocol' =&gt; 'https',
    'overwrite.cli.url' =&gt; 'https://ncloud.lhyshome.com:443',
    'memcache.locking' =&gt; '\\OC\\Memcache\\Redis',
    'redis' =&gt;
        array (
            'host' =&gt; '192.168.0.212', 
            'port' =&gt; 6379,
            'dbindex' =&gt; 0,
        ),</code></pre>



<p>trusted_domains里修改为</p>



<pre class="wp-block-code"><code>0 =&gt; 'ncloud.lhyshome.com',</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.lhyshome.com/2024/05/13/34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">34</post-id>	</item>
	</channel>
</rss>
