---
# System prepended metadata

title: Redis 小筆記

---

Redis 小筆記
===

## 執行階段

---
## 安裝
[安裝指南](https://centos.pkgs.org/7/epel-aarch64/redis-3.2.12-2.el7.aarch64.rpm.html)

```
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install redis -y
systemctl enable redis
systemctl start redis
```

#### 設定檔位置
```
vim /etc/redis.conf
```

#### 開放所有連線
```
bind 0.0.0.0
```
---
```
version: '3.3'

services:
  redis:
    container_name: redis
    restart: always
    image: redis:3.2.12
    volumes:
      - ./redis.conf:/usr/local/etc/redis/redis.conf
    ports:
      - 3000:80
```