标签:tar 编译安装 oca Fix tle gcc rom 容器 docker title
#!/bin/bash yum install -y gcc gcc-c++ make openssl openssl-devel cd /home/redis-4.0.9 make && make PREFIX=/usr/local/redis install mkdir -p /usr/local/redis/conf/ cp /home/redis-4.0.9/redis.conf /usr/local/redis/conf/ sed -i ‘69s/127.0.0.1/0.0.0.0/‘ /usr/local/redis/conf/redis.conf sed -i ‘88s/protected-mode yes/protected-mode no/‘ /usr/local/redis/conf/redis.conf
FROM centos:7 ADD redis-4.0.9.tar.gz /home COPY redis_install.sh /home RUN sh /home/redis_install.sh ENTRYPOINT /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis.conf
标签:tar 编译安装 oca Fix tle gcc rom 容器 docker title
原文地址:https://www.cnblogs.com/weisunblog/p/12238011.html