更新脚本

pull/11/head
Zhang Peng 2019-05-07 17:20:50 +08:00
parent 54c22a10aa
commit c40997633b
2 changed files with 1398 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
cat << EOF
###################################################################################
# 配置 Redis 脚本
# @system: 适用于 CentOS
# @author: Zhang Peng
###################################################################################
EOF
path=/opt/redis/redis-5.0.4
if [[ -n $1 ]]; then
path=$1
fi
echo -e "\n>>>>>>>>> config redis"
cp ${path}/redis.conf ${path}/redis.conf.default
wget -N https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/config/redis-remote-access.conf -O ${path}/redis.conf