更新脚本
parent
54c22a10aa
commit
c40997633b
File diff suppressed because it is too large
Load Diff
|
@ -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
|
Loading…
Reference in New Issue