mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
更新脚本
This commit is contained in:
parent
54c22a10aa
commit
c40997633b
1378
codes/linux/ops/soft/config/redis-remote-access.conf
Normal file
1378
codes/linux/ops/soft/config/redis-remote-access.conf
Normal file
File diff suppressed because it is too large
Load Diff
20
codes/linux/ops/soft/redis-config.sh
Normal file
20
codes/linux/ops/soft/redis-config.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user