<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>gem</title>
        <link>https://paragraph.com/@gem</link>
        <description>undefined</description>
        <lastBuildDate>Mon, 04 May 2026 19:23:59 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>gem</title>
            <url>https://storage.googleapis.com/papyrus_images/4400b066911382968af00ccc2a603ce07f8a5a3e00fb2bb900a1e0c18059b001.jpg</url>
            <link>https://paragraph.com/@gem</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Alibaba Cloud Linux安装Redis数据库教程]]></title>
            <link>https://paragraph.com/@gem/alibaba-cloud-linux-redis</link>
            <guid>NFxJ47IogZD3IXDhNt1x</guid>
            <pubDate>Thu, 04 May 2023 03:20:03 GMT</pubDate>
            <description><![CDATA[阿里云持久内存服务器ECS可用于搭建Redis内存型数据库，云服务器吧以阿里云服务器ECS持久内存型、Alibaba Cloud Linux镜像操作系统安装Redis 6.0.5或Redis 3.2.12详细操作流程如下： 阿里云数据库支持云数据库Redis版，用户也可以自行在云服务器ECS上手动部署Redis，根据实际情况选择，如下图：阿里云数据库Redis在阿里云服务器ECS部署Redis内存型数据库流程阿里云持久内存型云服务器ECS有re7p、r7p、re6p等，云服务器吧以持久内存型re6p实例ecs.re6p-redis.2xlarge为例，操作系统镜像为Alibaba Cloud Linux 2.1903 LTS 64位，安装Redis 6.0.5或Redis 3.2.12教程如下： Alibaba Cloud Linux 2针对Redis应用进行了专项调优，相比社区版操作系统，Redis应用整体性能提升20%以上。Alibaba Cloud Linux 2内置Redis 6.0.5和Redis 3.2.12的yum源，执行sudo yum install命令即可部署...]]></description>
            <content:encoded><![CDATA[<p>阿里云持久内存服务器ECS可用于搭建Redis内存型数据库，云服务器吧以阿里云服务器ECS持久内存型、Alibaba Cloud Linux镜像操作系统安装Redis 6.0.5或Redis 3.2.12详细操作流程如下：</p><p>阿里云数据库支持云数据库Redis版，用户也可以自行在云服务器ECS上手动部署Redis，根据实际情况选择，如下图：</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/671302ddc3e2562501a91bc9374c7538a96244e9f8b2d26f806feae6e4d41ad7.jpg" alt="阿里云数据库Redis" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">阿里云数据库Redis</figcaption></figure><h1 id="h-ecsredis" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">在阿里云服务器ECS部署Redis内存型数据库流程</h1><p>阿里云持久内存型<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.yunfuwuqiba.com/url/ecs/">云服务器ECS</a>有re7p、r7p、re6p等，云服务器吧以持久内存型re6p实例ecs.re6p-redis.2xlarge为例，操作系统镜像为Alibaba Cloud Linux 2.1903 LTS 64位，安装Redis 6.0.5或Redis 3.2.12教程如下：</p><p>Alibaba Cloud Linux 2针对Redis应用进行了专项调优，相比社区版操作系统，Redis应用整体性能提升20%以上。Alibaba Cloud Linux 2内置Redis 6.0.5和Redis 3.2.12的yum源，执行sudo yum install命令即可部署Redis 6.0.5和Redis 3.2.12。</p><h2 id="h-redis" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">安装Redis命令</h2><p>部署Redis 6.0.5命令如下：</p><pre data-type="codeBlock" text="sudo yum install -y alinux-release-experimentals &amp;&amp; \
sudo yum install -y redis-6.0.5
"><code>sudo yum install <span class="hljs-operator">-</span>y alinux<span class="hljs-operator">-</span>release<span class="hljs-operator">-</span>experimentals <span class="hljs-operator">&#x26;</span><span class="hljs-operator">&#x26;</span> \
sudo yum install <span class="hljs-operator">-</span>y redis<span class="hljs-number">-6.0</span><span class="hljs-number">.5</span>
</code></pre><p>部署Redis 3.2.12命令：</p><pre data-type="codeBlock" text="sudo yum install -y alinux-release-experimentals &amp;&amp; \
sudo yum install -y redis-3.2.12
"><code>sudo yum install <span class="hljs-operator">-</span>y alinux<span class="hljs-operator">-</span>release<span class="hljs-operator">-</span>experimentals <span class="hljs-operator">&#x26;</span><span class="hljs-operator">&#x26;</span> \
sudo yum install <span class="hljs-operator">-</span>y redis<span class="hljs-number">-3.2</span><span class="hljs-number">.12</span>
</code></pre><p>根据需要选择对应的Redis版本，并执行命令即可。</p><h2 id="h-redis" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">启动Redis应用</h2><p>配置默认使用的普通内存和持久内存容量，普通内存与持久内存配比命令如下： 普通内存与持久内存的推荐配比为1:4：</p><pre data-type="codeBlock" text="export MEMKIND_DAX_KMEM_NODES=1 &amp;&amp; \
sudo redis-server /etc/redis.conf --port 8369 --memory-alloc-policy ratio --dram-pmem-ratio 1 4 --hashtable-on-dram yes --daemonize yes --logfile /tmp/redis_8369.log --protected-mode no --bind 0.0.0.0
"><code>export MEMKIND_DAX_KMEM_NODES<span class="hljs-operator">=</span><span class="hljs-number">1</span> <span class="hljs-operator">&#x26;</span><span class="hljs-operator">&#x26;</span> \
sudo redis<span class="hljs-operator">-</span>server <span class="hljs-operator">/</span>etc<span class="hljs-operator">/</span>redis.conf <span class="hljs-operator">-</span><span class="hljs-operator">-</span>port <span class="hljs-number">8369</span> <span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-keyword">memory</span><span class="hljs-operator">-</span>alloc<span class="hljs-operator">-</span>policy ratio <span class="hljs-operator">-</span><span class="hljs-operator">-</span>dram<span class="hljs-operator">-</span>pmem<span class="hljs-operator">-</span>ratio <span class="hljs-number">1</span> <span class="hljs-number">4</span> <span class="hljs-operator">-</span><span class="hljs-operator">-</span>hashtable<span class="hljs-operator">-</span>on<span class="hljs-operator">-</span>dram yes <span class="hljs-operator">-</span><span class="hljs-operator">-</span>daemonize yes <span class="hljs-operator">-</span><span class="hljs-operator">-</span>logfile <span class="hljs-operator">/</span>tmp<span class="hljs-operator">/</span>redis_8369.log <span class="hljs-operator">-</span><span class="hljs-operator">-</span>protected<span class="hljs-operator">-</span>mode no <span class="hljs-operator">-</span><span class="hljs-operator">-</span>bind <span class="hljs-number">0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>
</code></pre><p>也可以自定义普通内存与持久内存的配比，保留部分普通内存以运行其他应用，例如配比为1:16、分配内存34 GiB（其中普通内存2 GiB、持久内存32 GiB）：</p><pre data-type="codeBlock" text="export MEMKIND_DAX_KMEM_NODES=1 &amp;&amp; \
sudo redis-server /etc/redis.conf --port 8369 --memory-alloc-policy ratio --dram-pmem-ratio 1 16 --maxmemory 34G
"><code>export MEMKIND_DAX_KMEM_NODES<span class="hljs-operator">=</span><span class="hljs-number">1</span> <span class="hljs-operator">&#x26;</span><span class="hljs-operator">&#x26;</span> \
sudo redis<span class="hljs-operator">-</span>server <span class="hljs-operator">/</span>etc<span class="hljs-operator">/</span>redis.conf <span class="hljs-operator">-</span><span class="hljs-operator">-</span>port <span class="hljs-number">8369</span> <span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-keyword">memory</span><span class="hljs-operator">-</span>alloc<span class="hljs-operator">-</span>policy ratio <span class="hljs-operator">-</span><span class="hljs-operator">-</span>dram<span class="hljs-operator">-</span>pmem<span class="hljs-operator">-</span>ratio <span class="hljs-number">1</span> <span class="hljs-number">16</span> <span class="hljs-operator">-</span><span class="hljs-operator">-</span>maxmemory 34G
</code></pre><p>更多关于阿里云服务器ECS驰久内存型实例说明、云数据库Redis和Alibaba Cloud Linux镜像系统，请官方页面为准。</p>]]></content:encoded>
            <author>gem@newsletter.paragraph.com (gem)</author>
        </item>
    </channel>
</rss>