{"id":123,"date":"2023-07-01T17:40:54","date_gmt":"2023-04-16T05:45:56","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T20:55:53","modified_gmt":"2025-07-31T11:55:53","slug":"rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>Redis\u306f\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306b\u512a\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3067\u3059\u3002\u67d4\u8edf\u6027\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u305d\u3057\u3066\u591a\u8a00\u8a9e\u30b5\u30dd\u30fc\u30c8\u3067\u77e5\u3089\u308c\u308b\u975e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<p>Redis\u306f\u3001\u4fe1\u983c\u3067\u304d\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u4fe1\u983c\u3067\u304d\u308b\u74b0\u5883\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u72ec\u81ea\u306e\u5805\u7262\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001Redis\u306b\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3084\u4e00\u90e8\u306e\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u5909\u66f4\u3084\u7121\u52b9\u5316\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068\u3053\u308c\u3089\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u3001Rocky Linux 9\u4e0a\u306e\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u306eRedis\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3044\u304f\u3064\u304b\u306e\u4ed6\u306e\u8a2d\u5b9a\u3082\u30ab\u30d0\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>Redis\u30b5\u30fc\u30d0\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u7570\u306a\u308b\u30db\u30b9\u30c8\u307e\u305f\u306f\u7570\u306a\u308b\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u306b\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5f31\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3084\u4fe1\u983c\u3067\u304d\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u7d4c\u7531\u3059\u308bRedis\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u306f\u3001\u5225\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001SSL\u30d7\u30ed\u30ad\u30b7\u3084Redis\u30de\u30b7\u30f3\u9593\u306eVPN\u306e\u8a2d\u5b9a\u306a\u3069\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>\u5fc5\u8981\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001Rocky Linux 9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u7ba1\u7406\u7279\u6a29\u3092\u6301\u3064\u975e\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3068\u3001Firewalld\u3067\u69cb\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u306b\u306f\u3001Rocky Linux 9\u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30ac\u30a4\u30c9\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71 &#8211; Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8d77\u52d5<\/h2>\n<p>DNF\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u7528\u3057\u3066Redis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002DNF\u3092\u4f7f\u3063\u3066Redis\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3001\u305d\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3042\u308bnano\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002nano\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ac\u30a4\u30c9\u5168\u4f53\u3067\u4f8b\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> redis <span class=\"token function\">nano<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9078\u629e\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u304b\u78ba\u8a8d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5e0c\u671b\u3059\u308b\u5834\u5408\u306f\u300cy\u300d\u3092\u62bc\u3057\u3066\u304b\u3089ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>. . . Total download size: 2.0 M Installed size: 7.4 M Is this ok [y\/N]: <mark>y<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fRedis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u91cd\u8981\u306a\u69cb\u6210\u5909\u66f4\u304c1\u3064\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u304a\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u306fnano\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u300csupervised\u300d\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u63a2\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306fRedis\u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u521d\u671f\u5316\u30b7\u30b9\u30c6\u30e0\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3088\u308a\u64cd\u4f5c\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001supervised\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u300cno\u300d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002Rocky Linux\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001systemd\u521d\u671f\u5316\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\uff08\u5148\u982d\u306e#\u3092\u524a\u9664\u3057\u3066\uff09\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u3001\u3053\u308c\u3092systemd\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/\u30a8\u30c8\u30bb\u30c8\u30e9\/\u30ec\u30c7\u30a3\u30b9\/\u30ec\u30c7\u30a3\u30b9.\u30b3\u30f3\u30d5<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n\r\n# If you run Redis from upstart or systemd, Redis can interact with your\r\n# supervision tree. Options:\r\n#   supervised no      - no supervision interaction\r\n#   supervised upstart - signal upstart by putting Redis into SIGSTOP mode\r\n#   supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET\r\n#   supervised auto    - detect upstart or systemd method based on\r\n#                        UPSTART_JOB or NOTIFY_SOCKET environment variables\r\n# Note: these supervision methods only signal \"process is ready.\"\r\n#       They do not enable continuous liveness pings back to your supervisor.\r\nsupervised <mark>systemd<\/mark>\r\n\r\n. . .\r\n<\/code><\/pre>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001Redis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u306e\u306f\u3053\u306e\u5909\u66f4\u3060\u3051\u3067\u3059\u3002\u5b8c\u4e86\u3057\u305f\u3089\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u306bnano\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001CTRL + X\u3067\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3057\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u305f\u3089Y\u3068Enter\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u305f\u3089\u3001Redis\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start redis.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057Redis\u3092\u8d77\u52d5\u6642\u306b\u8d77\u52d5\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u3001enable\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>.\u30b5\u30fc\u30d3\u30b9\u30c8\u540d\u306e\u5f8c\u308d\u306b\u306f\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u306f.service\u306e\u63a5\u5c3e\u8f9e\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u901a\u5e38\u3001systemctl\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u540d\u304b\u3089\u81ea\u52d5\u7684\u306b\u3053\u306e\u63a5\u5c3e\u8f9e\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u3053\u306e\u63a5\u5c3e\u8f9e\u3092\u7701\u7565\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001Redis\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u25cf redis.service &#8211; Redis persistent key-value database Loaded: loaded (\/usr\/lib\/systemd\/system\/redis.service; enabled; vendor preset: disabled) Drop-In: \/etc\/systemd\/system\/redis.service.d \u2514\u2500limit.conf Active: active (running) since Tue 2022-09-06 22:11:52 UTC; 40s ago Main PID: 14478 (redis-server) Tasks: 4 (limit: 11152) Memory: 6.6M CGroup: \/system.slice\/redis.service \u2514\u250014478 \/usr\/bin\/redis-server 127.0.0.1:6379<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Redis\u304c\u5b9f\u969b\u306b\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u305d\u306e\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">redis-cli <span class=\"token function\">ping<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306fPONG\u3068\u3044\u3046\u5fdc\u7b54\u3092\u8868\u793a\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>PONG<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u3001\u305d\u308c\u304c\u4e8b\u5b9f\u306a\u3089\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067Redis\u304c\u8d77\u52d5\u3057\u3066\u304a\u308a\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u8a2d\u5b9a\u3092\u958b\u59cb\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72- Redis\u306e\u69cb\u6210\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u3088\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8a2d\u5b9a<\/h2>\n<p>Redis\u3092\u4fdd\u8b77\u3059\u308b\u52b9\u679c\u7684\u306a\u65b9\u6cd5\u306f\u3001Redis\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u3092\u5b89\u5168\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3001Redis\u304clocalhost\u307e\u305f\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u306b\u306e\u307f\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u3001\u3055\u3089\u306b\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u5225\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u4f7f\u7528\u3057\u3066Redis\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u5834\u5408\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3069\u3053\u304b\u3089\u3067\u3082\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306flocalhost\u3084\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3088\u308a\u3082\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u3092\u4fee\u6b63\u3059\u308b\u305f\u3081\u306b\u3001\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067Redis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5ea6\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300cbind\u300d\u3067\u59cb\u307e\u308b\u884c\u3092\u898b\u3064\u3051\u3066\u3001\u884c\u304c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u7121\u52b9\u306b\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5fc5\u8981\u306a\u5834\u5408\u306b\u306f\u3001\u884c\u306e\u5148\u982d\u306e\uff03\u8a18\u53f7\u3092\u53d6\u308a\u9664\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/redis\/redis.conf\u3092\u65e5\u672c\u8a9e\u3067\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\/etc\/redis\/redis.conf<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nbind 127.0.0.1 -::1\r\n<\/code><\/pre>\n<p>Redis\u3092\u5225\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\uff08Redis\u3078\u5225\u306e\u30db\u30b9\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306a\u3069\uff09\u306f\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3068\u3001Redis\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5916\u90e8\u306e\u7b2c\u4e09\u8005\u306b\u516c\u958b\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/redis\/redis.conf\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b\u3068\u3001\u300c\/etc\/redis\/redis.conf\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nbind <mark>your_private_ip<\/mark>\r\n<\/code><\/pre>\n<p>\u30d0\u30a4\u30f3\u30c9\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u9589\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u524d\u63d0\u306eInitial Server Setup\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306bfirewalld\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5225\u306e\u30db\u30b9\u30c8\u304b\u3089Redis\u306b\u63a5\u7d9a\u3059\u308b\u4e88\u5b9a\u304c\u306a\u3044\u5834\u5408\u3001Redis\u306e\u8ffd\u52a0\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u306a\u305c\u306a\u3089\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u306b\u3088\u3063\u3066\u660e\u793a\u7684\u306b\u8a31\u53ef\u3055\u308c\u306a\u3044\u9650\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3059\u3079\u3066\u306e\u53d7\u4fe1\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306f\u7834\u68c4\u3055\u308c\u308b\u304b\u3089\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5358\u72ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306eRedis\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff08127.0.0.1\u307e\u305f\u306flocalhost\uff09\u3067\u306e\u307f\u30ea\u30b9\u30cb\u30f3\u30b0\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30dd\u30fc\u30c8\u3067\u306e\u53d7\u4fe1\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306b\u5bfe\u3057\u3066\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u5225\u306e\u30db\u30b9\u30c8\u304b\u3089Redis\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4e88\u5b9a\u304c\u3042\u308b\u5834\u5408\u306f\u3001firewall-cmd\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066firewalld\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u5ea6\u8a00\u3044\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d3\u30b9\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30db\u30b9\u30c8\u306e\u6570\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306b\u3001\u30db\u30b9\u30c8\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u7528\u3057\u3066Redis\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u3042\u306a\u305f\u306efirewalld\u30dd\u30ea\u30b7\u30fc\u306b\u5c02\u7528\u306eRedis\u30be\u30fc\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;new-zone<span class=\"token operator\">=<\/span>redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Redis\u306f\u30dd\u30fc\u30c8\u756a\u53f76379\u3092\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001\u958b\u653e\u3057\u3066\u307b\u3057\u3044\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>redis &#8211;add-port<span class=\"token operator\">=<\/span><span class=\"token number\">6379<\/span>\/tcp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u901a\u904e\u3057\u3066Redis\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u8a31\u53ef\u3055\u308c\u308b\u3079\u304d\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>redis &#8211;add-source<span class=\"token operator\">=<\/span><mark>client_server_private_IP<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001\u65b0\u3057\u3044\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30d1\u30b1\u30c3\u30c8\u306b\u906d\u9047\u3057\u305f\u5834\u5408\u3001\u305d\u308c\u306b\u5bfe\u3057\u3066\u5c02\u7528\u306eRedis\u30be\u30fc\u30f3\u306e\u30eb\u30fc\u30eb\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u4ed6\u306e\u63a5\u7d9a\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30be\u30fc\u30f3\u3067\u51e6\u7406\u3055\u308c\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u660e\u793a\u7684\u306b\u4e00\u81f4\u3057\u306a\u3044\u63a5\u7d9a\u3060\u3051\u3067\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u63a5\u7d9a\u306b\u9069\u7528\u3055\u308c\u308b\u305f\u3081\u3001Redis\u30be\u30fc\u30f3\u306b\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\uff08\u4f8b\uff1aSSH\uff09\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u30eb\u30fc\u30eb\u306f\u305d\u306e\u63a5\u7d9a\u306b\u81ea\u52d5\u7684\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30c4\u30fc\u30eb\u306e\u7a2e\u985e\u306f\u554f\u3044\u307e\u305b\u3093\u304c\u3001firewalld\u3001ufw\u3001\u307e\u305f\u306fiptables\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u4f5c\u52d5\u3055\u305b\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u672a\u77e5\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001Redis\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5f37\u529b\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u5236\u9650\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 &#8211; Redis\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a<\/h2>\n<p>Redis\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u305d\u306e\u4e2d\u306b\u7d44\u307f\u8fbc\u307e\u308c\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306e1\u3064\u3067\u3042\u308b\u300c\u8a8d\u8a3c\u30b3\u30de\u30f3\u30c9\u300d\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u524d\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u8a8d\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002bind\u8a2d\u5b9a\u3068\u540c\u69d8\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306fRedis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u300c\/etc\/redis\/redis.conf\u300d\u306b\u76f4\u63a5\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300cSECURITY\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u30b3\u30e1\u30f3\u30c8\u3055\u308c\u305f\u6307\u793a\u306e\u4e2d\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3055\u308c\u305f\u6307\u4ee4\u3092\u63a2\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300c\/etc\/redis\/redis.conf\u300d\u3092\u65e5\u672c\u8a9e\u306b\u76f4\u8a33\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a\u300c\/etc\/redis\/redis.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n# requirepass foobared\r\n<\/code><\/pre>\n<p>\uff03\u3092\u524a\u9664\u3057\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3057\u3066\u3001foobared\u3092\u81ea\u5206\u304c\u9078\u3093\u3060\u975e\u5e38\u306b\u5f37\u529b\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u5206\u3067\u8003\u3048\u308b\u4ee3\u308f\u308a\u306b\u3001apg\u3084pwgen\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u6587\u5b57\u5217\u306e\u5024\u3092\u30a8\u30b3\u30fc\u30b3\u30de\u30f3\u30c9\u3067\u8868\u793a\u3057\u3001\u305d\u306e\u5f8c\u306esha256sum\u30b3\u30de\u30f3\u30c9\u306b\u30d1\u30a4\u30d7\u3057\u3066\u6587\u5b57\u5217\u306eSHA256\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u305d\u306e\u307e\u307e\u5165\u529b\u3059\u308b\u3068\u3001\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5e38\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4e00\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u5f15\u7528\u7b26\u5185\u306e\u6587\u5b57\u5217\u3092\u4ed6\u306e\u5358\u8a9e\u3084\u30d5\u30ec\u30fc\u30ba\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\necho &#8220;digital-ocean&#8221; | sha256sum<\/div>\n<p>\u751f\u6210\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u899a\u3048\u306b\u304f\u3044\u3067\u3059\u304c\u3001Redis\u306b\u5fc5\u8981\u306a\u30bf\u30a4\u30d7\u306e\u975e\u5e38\u306b\u5f37\u529b\u3067\u9577\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002\u305d\u306e\u30b3\u30de\u30f3\u30c9\u306e\u51fa\u529b\u3092requirepass\u306e\u65b0\u3057\u3044\u5024\u3068\u3057\u3066\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u305f\u5f8c\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\/etc\/redis\/redis.conf<br \/>\n. . .<br \/>\nrequirepass password_copied_from_output<\/p>\n<p>\u307e\u305f\u3001\u3088\u308a\u77ed\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5e0c\u671b\u3059\u308b\u5834\u5408\u306f\u3001\u5225\u306e\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u306e\u51fa\u529b\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u518d\u5ea6\u5f15\u7528\u7b26\u5185\u306e\u5358\u8a9e\u3092\u5909\u66f4\u3057\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3068\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\necho &#8220;digital-ocean&#8221; | sha1sum<\/p>\n<\/div>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3001Redis\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6a5f\u80fd\u3059\u308b\u304b\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001Redis\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u958b\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">redis-cli<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Redis\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6a5f\u80fd\u3059\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u4ee5\u4e0b\u306b\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u8a8d\u8a3c\u524d\u306b\u30ad\u30fc\u3092\u5024\u306b\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\"><span class=\"token builtin class-name\">set<\/span> key1 <span class=\"token number\">10<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8a8d\u8a3c\u304c\u307e\u3060\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u305d\u308c\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001Redis\u306f\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>(error) NOAUTH Authentication required.<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001Redis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">auth <mark>your_redis_password<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Redis\u306f\u3001\u3042\u306a\u305f\u304c\u8a8d\u8a3c\u3055\u308c\u305f\u3053\u3068\u3092\u8a8d\u8b58\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>OK<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u524d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3059\u308c\u3070\u6210\u529f\u3059\u308b\u306f\u305a\u3067\u3059\u3002 (Sono ato, mae no komando o sai jikk\u014d sureba seik\u014d suru hazu desu.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\"><span class=\"token builtin class-name\">set<\/span> key1 <span class=\"token number\">10<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>OK<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>get key1 \u30b3\u30de\u30f3\u30c9\u306f\u3001\u65b0\u3057\u3044\u30ad\u30fc\u306e\u5024\u3092Redis\u306b\u554f\u3044\u5408\u308f\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">get key1<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8220;10&#8221;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306fredis-cli\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002exit\u30b3\u30de\u30f3\u30c9\u3067\u3082\u7d42\u4e86\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">quit<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3078\u306e\u4e0d\u6b63\u306a\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u306f\u975e\u5e38\u306b\u56f0\u96e3\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002\u305f\u3060\u3057\u3001Redis\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u65e2\u306b\u4f7f\u7528\u3057\u3066\u3044\u3066Redis\u3092\u518d\u8d77\u52d5\u3059\u308b\u5834\u5408\u306f\u3001\u518d\u5ea6\u8a8d\u8a3c\u304c\u5fc5\u8981\u3067\u3059\u3002\u307e\u305f\u3001SSL\u3084VPN\u306e\u4f7f\u7528\u304c\u306a\u3044\u5834\u5408\u3001\u30ea\u30e2\u30fc\u30c8\u3067Redis\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5916\u90e8\u306e\u95a2\u4fc2\u8005\u306b\u3088\u3063\u3066\u508d\u53d7\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306fRedis\u306e\u30b3\u30de\u30f3\u30c9\u540d\u5909\u66f4\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30de\u30eb\u30a6\u30a7\u30a2\u304b\u3089Redis\u3092\u3055\u3089\u306b\u4fdd\u8b77\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d7\uff14\u30fc\u5371\u967a\u306a\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u5909\u66f4<\/h2>\n<p>Redis\u306b\u7d44\u307f\u8fbc\u307e\u308c\u305f\u5225\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306b\u3088\u3063\u3066\u3001\u5371\u967a\u3068\u3055\u308c\u308b\u7279\u5b9a\u306e\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u5b8c\u5168\u306b\u7121\u52b9\u5316\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u304c\u5b9f\u884c\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u518d\u69cb\u6210\u3001\u7834\u58ca\u3001\u307e\u305f\u306f\u6d88\u53bb\u306b\u4f7f\u7528\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5371\u967a\u3068\u3055\u308c\u308b\u4e00\u90e8\u306e\u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001\u6b21\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>FLUSHDB<\/li>\n<li>FLUSHALL<\/li>\n<li>KEYS<\/li>\n<li>PEXPIRE<\/li>\n<li>DEL<\/li>\n<li>CONFIG<\/li>\n<li>SHUTDOWN<\/li>\n<li>BGREWRITEAOF<\/li>\n<li>BGSAVE<\/li>\n<li>SAVE<\/li>\n<li>SPOP<\/li>\n<li>SREM<\/li>\n<li>RENAME<\/li>\n<li>DEBUG<\/li>\n<\/ul>\n<p>\u3053\u308c\u306f\u7db2\u7f85\u7684\u306a\u30ea\u30b9\u30c8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ea\u30b9\u30c8\u306b\u3042\u308b\u30b3\u30de\u30f3\u30c9\u306e\u3059\u3079\u3066\u3092\u540d\u524d\u306e\u5909\u66f4\u307e\u305f\u306f\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u5b9a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7121\u52b9\u5316\u3059\u308b\u304b\u3001\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u304b\u306f\u3001\u3042\u306a\u305f\u306e\u5177\u4f53\u7684\u306a\u30cb\u30fc\u30ba\u306b\u3088\u308a\u307e\u3059\u3002\u554f\u984c\u306e\u3042\u308b\u30b3\u30de\u30f3\u30c9\u3092\u7d76\u5bfe\u306b\u4f7f\u7528\u3057\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u7121\u52b9\u5316\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a8d\u8a3c\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u3088\u3046\u306b\u3001Redis\u306e\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u5909\u66f4\u3084\u7121\u52b9\u5316\u306f\u3001\/etc\/redis\/redis.conf\u30d5\u30a1\u30a4\u30eb\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002Redis\u306e\u30b3\u30de\u30f3\u30c9\u306e\u6709\u52b9\u5316\u307e\u305f\u306f\u7121\u52b9\u5316\u3092\u884c\u3046\u306b\u306f\u3001\u7de8\u96c6\u7528\u306b\u3082\u3046\u4e00\u5ea6\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\uff1a\u3053\u308c\u3089\u306f\u4f8b\u3067\u3059\u3002\u3042\u306a\u305f\u306b\u3068\u3063\u3066\u610f\u5473\u306e\u3042\u308b\u30b3\u30de\u30f3\u30c9\u3092\u7121\u52b9\u306b\u3059\u308b\u304b\u3001\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Redis\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u3073\u3001\u305d\u308c\u3089\u304c\u3069\u306e\u3088\u3046\u306b\u8aa4\u7528\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u304b\u3092redis.io\/commands\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u7121\u52b9\u5316\u307e\u305f\u306f\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u540d\u524d\u3092\u7a7a\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<div>\/ etc \/ redis \/ redis.conf \u2192 \u300c\/etc\/redis\/redis.conf\u300d<\/div>\n<pre class=\"post-pre\"><code># It is also possible to completely kill a command by renaming it into\r\n# an empty string:\r\n#\r\n<mark>rename-command FLUSHDB \"\"<\/mark>\r\n<mark>rename-command FLUSHALL \"\"<\/mark>\r\n<mark>rename-command DEBUG \"\"<\/mark>\r\n<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u4f8b\u306e\u3088\u3046\u306b\u5225\u306e\u540d\u524d\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u540d\u524d\u3092\u5909\u66f4\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306f\u4ed6\u306e\u4eba\u306b\u306f\u63a8\u6e2c\u3057\u306b\u304f\u304f\u3001\u81ea\u5206\u306b\u3068\u3063\u3066\u306f\u7c21\u5358\u306b\u899a\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/redis\/redis.conf \u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1a<\/div>\n<pre class=\"post-pre\"><code># It is also possible to completely kill a command by renaming it into\r\n# an empty string:\r\n#\r\nrename-command FLUSHDB \"\"\r\nrename-command FLUSHALL \"\"\r\nrename-command DEBUG \"\"\r\n<mark>rename-command SHUTDOWN SHUTDOWN_MENOT<\/mark>\r\n<mark>rename-command CONFIG ASC12_CONFIG<\/mark>\r\n<\/code><\/pre>\n<p>\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u3001Redis\u3092\u518d\u8d77\u52d5\u3057\u3066\u5909\u66f4\u5185\u5bb9\u3092\u9069\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart redis.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30b3\u30de\u30f3\u30c9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001Redis\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">redis-cli<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u524d\u5b9a\u7fa9\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u81ea\u5206\u81ea\u8eab\u3092\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">auth <mark>your_redis_password<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>OK<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>CONFIG\u30b3\u30de\u30f3\u30c9\u3092ASC12_CONFIG\u306b\u5909\u66f4\u3057\u305f\u5834\u5408\u3001config\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">config get requirepass<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>(error) ERR unknown command &#8216;config&#8217;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u540d\u524d\u304c\u5909\u66f4\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3068\u6210\u529f\u3057\u307e\u3059\u3002Redis\u306e\u30b3\u30de\u30f3\u30c9\u306f\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u307e\u305b\u3093\u306e\u3067\u3001\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\">asc12_config get requirepass<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>1) &#8220;requirepass&#8221; 2) &#8220;<mark>your_redis_password<\/mark>&#8221;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001redis-cli\u304b\u3089\u51fa\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"127.0.0.1:6379&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: \u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u969b\u3001\/etc\/redis\/redis.conf \u30d5\u30a1\u30a4\u30eb\u306e SECURITY \u30bb\u30af\u30b7\u30e7\u30f3\u306e\u6700\u5f8c\u306b\u6ce8\u610f\u66f8\u304d\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\/etc\/redis\/redis.conf<br \/>\n. . .<\/div>\n<p># \u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u969b\u3001AOF \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3055\u308c\u308b\u304b\u3001\u30ec\u30d7\u30ea\u30ab\u306b\u9001\u4fe1\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3001\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u7559\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>. . .<\/p>\n<p>\u3064\u307e\u308a\u3001\u5909\u66f4\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u304cAOF\u30d5\u30a1\u30a4\u30eb\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u307e\u305f\u306f\u5b58\u5728\u3057\u3066\u3044\u308b\u304cAOF\u30d5\u30a1\u30a4\u30eb\u304c\u30ec\u30d7\u30ea\u30ab\u306b\u9001\u4fe1\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u554f\u984c\u306f\u767a\u751f\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3092\u5909\u66f4\u3059\u308b\u969b\u306b\u306f\u305d\u308c\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30de\u30f3\u30c9\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u6700\u9069\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001AOF\u6c38\u7d9a\u5316\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3084Redis\u3092\u4f7f\u7528\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5c55\u958b\u3055\u308c\u308b\u524d\u3067\u3059\u3002<\/p>\n<\/div>\n<h2>\u30b9\u30c6\u30c3\u30d75\uff1a\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u6a29\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/h2>\n<p>\u3053\u306e\u624b\u9806\u3067\u306f\u3001Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3001\u6240\u6709\u6a29\u3068\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001Redis\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u8aad\u307f\u53d6\u308a\u6a29\u9650\u3092\u6301\u3064\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u542b\u307f\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306fredis\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002<\/p>\n<p>Redis\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u9577\u3044\u30ea\u30b9\u30c8\u306bgrep\u3057\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3068\u305d\u306e\u51fa\u529b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/var\/lib <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p><mark>drwxr-x&#8212;.<\/mark> 2 <mark>redis<\/mark> <mark>redis<\/mark> 22 Sep 6 22:22 redis<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306f\u3001Redis\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304credis\u30e6\u30fc\u30b6\u30fc\u306b\u6240\u6709\u3055\u308c\u3001redis\u30b0\u30eb\u30fc\u30d7\u306b\u3082\u4e8c\u6b21\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6240\u6709\u6a29\u306e\u8a2d\u5b9a\u306f\u30bb\u30ad\u30e5\u30a2\u3067\u3042\u308a\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3082\u30018\u9032\u6570\u8868\u8a18\u3092\u4f7f\u7528\u3057\u3066750\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057Redis\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u5b89\u5168\u3067\u306f\u306a\u3044\u5834\u5408\u3001chmod\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067Redis\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u306b\u306e\u307f\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u4f8b\u3067\u306f\u3001\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092770\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">770<\/span> \/var\/lib\/redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u4ed6\u306e\u8a31\u53ef\u306f\u3001Redis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8a31\u53ef\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u8a31\u53ef\u306f640\u3067\u3042\u308a\u3001\u6240\u6709\u8005\u306froot\u3067\u30012\u6b21\u306e\u6240\u6709\u8005\u306froot\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p><mark>-rw-r&#8212;&#8211;.<\/mark> 1 <mark>redis<\/mark> <mark>root<\/mark> 62192 Sep 6 22:20 \/etc\/redis\/redis.conf<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u6a29\u9650\uff08640\uff09\u306f\u3001Redis\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304credis\u30e6\u30fc\u30b6\u30fc\u3068root\u30b0\u30eb\u30fc\u30d7\u306e\u307f\u304c\u8aad\u307f\u53d6\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u30b9\u30c6\u30c3\u30d74\u3067\u8a2d\u5b9a\u3057\u305f\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001redis.conf\u306fredis\u30e6\u30fc\u30b6\u30fc\u306e\u6240\u6709\u3068redis\u30b0\u30eb\u30fc\u30d7\u306e\u6a29\u9650\u3092\u6301\u3064\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> redis:redis \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u6a29\u9650\u3092\u5909\u66f4\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u3060\u3051\u304c\u8aad\u307f\u66f8\u304d\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u524d\u56de\u306els\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u65b0\u3057\u3044\u6240\u6709\u6a29\u3068\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/var\/lib <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>total 40 <mark>drwxrwx&#8212;.<\/mark> 2 <mark>redis<\/mark> <mark>redis<\/mark> 22 Sep 6 22:22 redis<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/etc\/redis\/redis.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>total 40 <mark>-rw&#8212;&#8212;-.<\/mark> 1 <mark>redis<\/mark> <mark>redis<\/mark> 62192 Sep 6 22:20 \/etc\/redis\/redis.conf<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u3053\u308c\u3089\u306e\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306bRedis\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart redis<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u306b\u3088\u308a\u3001\u304a\u4f7f\u3044\u306eRedis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u78ba\u4fdd\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5834\u5408\u3001Redis\u56fa\u6709\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u305d\u308c\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u6700\u3082\u91cd\u8981\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u3088\u3063\u3066\u3001\u4e0d\u660e\u306a\u30e6\u30fc\u30b6\u30fc\u304c\u6700\u521d\u306e\u6bb5\u968e\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4fe1\u983c\u3067\u304d\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067Redis\u901a\u4fe1\u3092\u5b89\u5168\u306b\u884c\u3046\u5834\u5408\u3001Redis\u958b\u767a\u8005\u304c\u516c\u5f0fRedis\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ac\u30a4\u30c9\u3067\u63a8\u5968\u3059\u308b\u3088\u3046\u306b\u3001SSL\u30d7\u30ed\u30ad\u30b7\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Redis\u306f\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306b\u512a\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3067\u3059\u3002\u67d4\u8edf\u6027\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u305d\u3057\u3066\u591a\u8a00\u8a9e\u30b5\u30dd\u30fc\u30c8\u3067\u77e5\u3089\u308c\u308b\u975e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002 Redis\u306f [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,17],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bredis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bredis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-16T05:45:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T11:55:53+00:00\" \/>\n<meta name=\"author\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"28\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-04-16T05:45:56+00:00\",\"dateModified\":\"2025-07-31T11:55:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\"},\"description\":\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\",\"name\":\"\u7dbe\u4e43, \u4e00\u5e0c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"caption\":\"\u7dbe\u4e43, \u4e00\u5e0c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bredis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5","og_description":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bredis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-16T05:45:56+00:00","article_modified_time":"2025-07-31T11:55:53+00:00","author":"\u7dbe\u4e43, \u4e00\u5e0c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7dbe\u4e43, \u4e00\u5e0c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"28\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-04-16T05:45:56+00:00","dateModified":"2025-07-31T11:55:53+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff"},"description":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Rocky Linux 9\u306bRedis\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff","name":"\u7dbe\u4e43, \u4e00\u5e0c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","caption":"\u7dbe\u4e43, \u4e00\u5e0c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abredis%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":325706,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/325706"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}