<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[redis安装]]></title><description><![CDATA[<p dir="auto">安装nodejs</p>
<pre><code>curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
</code></pre>
<p dir="auto">安装redis</p>
<pre><code>sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt -y install redis-server
</code></pre>
<p dir="auto">创建用户</p>
<pre><code>adduser dyfluid
</code></pre>
<p dir="auto">更改编辑器：</p>
<pre><code>sudo update-alternatives --config editor
</code></pre>
<p dir="auto">添加用户权限：</p>
<pre><code>visudo
</code></pre>
<p dir="auto"><code>dyfluid ALL=(ALL:ALL) ALL</code></p>
<p dir="auto">关闭停止：</p>
<pre><code>/etc/init.d/redis-server stop
/etc/init.d/redis-server start
</code></pre>
<pre><code>cd $HOME
git clone https://github.com/NodeBB/NodeBB.git nodebb
cd nodebb
./nodebb setup
</code></pre>
<p dir="auto">清楚ssh</p>
<pre><code>rm ~/.ssh/known_hosts
</code></pre>
<p dir="auto">Nginx做ln -s注意使用绝对路径</p>
<pre><code>ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/example.com.conf
</code></pre>
<pre><code>systemctl stop nginx.service
systemctl start nginx.service
systemctl status nginx.service
</code></pre>
]]></description><link>https://cfd-china.com/topic/3397/redis安装</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 01:14:55 GMT</lastBuildDate><atom:link href="https://cfd-china.com/topic/3397.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Mar 2020 00:04:41 GMT</pubDate><ttl>60</ttl></channel></rss>