跳至主要内容

统信UOS 离线安装 redis

 


redis 安装

https://redis.io/download/
tar -zxvf redis-7.0.12.tar.gz
cd redis-7.0.12
make && make install


redis 配置

vi redis.conf

#以下为修改内容
bind 127.0.0.1 -::1 修改为 bind 0.0.0.0 -::1 ;开启远程登录


supervisor 管理配置

[program:redis]
command=/home/tools/redis-7.0.12/src/redis-server /home/tools/redis-7.0.12/redis.conf
autostart=true
autorestart=true
stderr_logfile=/home/logs/redis.err.log
stdout_logfile=/home/logs/redis.out.log
user=root
logfile_maxbytes=50MB
logfile_backups=10
startsecs=1
stopsignal=INT

评论

此博客中的热门博文

Docker-Compose 安装 PolarDB

 version: '3.1' services:   polardb:     container_name: polardb     restart: always     image: polardb/polardb_pg_local_instance     ports:       - 5432:5432     networks:       - net_db     environment:       TZ: Asia/Shanghai     volumes:       - ./polardb:/var/polardb networks:   net_db:     external: true

Docker-Compose 安装 xxl-job-admin

 version: '3' services:  xxl-job-admin:    image: xuxueli/xxl-job-admin:2.3.0    restart: always    container_name: xxl-job-admin    #environment:    #  PARAMS: '--spring.datasource.url= jdbc:mysql://192.168.1.110:3305/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&useSSL=false --spring.datasource.username=root --spring.datasource.password=123456'    ports:      - 80:8080    networks:      - net_db    volumes:      - ./data/applogs:/data/applogs networks:  net_db:    external: true

Docker-Compose 安装 ClickHouse

 version: '3' services: clickhouse-server: restart: always image: yandex/clickhouse-server container_name: clickhouse-server ulimits: nofile: soft: 262144 hard: 262144 ports: - 8123:8123 - 9000:9000 - 9009:9009 volumes: - ./data:/var/lib/clickhouse - ./config.xml:/etc/clickhouse-server/config.xml - ./users.xml:/etc/clickhouse-server/users.xml - ./log:/var/log/clickhouse-server networks: - net_db healthcheck: test: wget --no-verbose --tries=1 --spider localhost:8123/ping || exit 1 interval: 2s timeout: 2s retries: 16 #clickhouse-client: # restart: always # image: yandex/clickhouse-client # container_name: clickhouse-client # command: ['--host', 'clickhouse-server', '--query', 'select * from system.functions order by name limit 4'] # networks: # - net_db # depends_on: # clickhouse-server: #