Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xindoo
redis
提交
001f8da2
R
redis
项目概览
xindoo
/
redis
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
001f8da2
编写于
10月 03, 2011
作者:
D
dvir volk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixes to install script and template
上级
9210e701
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
8 deletion
+14
-8
utils/install_server.sh
utils/install_server.sh
+12
-6
utils/redis.conf.tpl
utils/redis.conf.tpl
+2
-2
未找到文件。
utils/install_server.sh
浏览文件 @
001f8da2
...
...
@@ -41,10 +41,18 @@ if [ !"$REDIS_CONFIG_FILE" ] ; then
REDIS_CONFIG_FILE
=
$_REDIS_CONFIG_FILE
echo
"Selected default -
$REDIS_CONFIG_FILE
"
fi
#try and create
#try and create it
mkdir
-p
`
dirname
"
$REDIS_CONFIG_FILE
"
`
||
die
"Could not create redis config directory"
#read the redis log file path
_REDIS_LOG_FILE
=
"/var/log/redis_
$REDIS_PORT
.log"
read
-p
"Please select the redis log file name [
$_REDIS_LOG_FILE
] "
REDIS_LOG_FILE
if
[
!
"
$REDIS_LOG_FILE
"
]
;
then
REDIS_LOG_FILE
=
$_REDIS_LOG_FILE
echo
"Selected default -
$REDIS_LOG_FILE
"
fi
#get the redis data directory
_REDIS_DATA_DIR
=
"/var/lib/redis/
$REDIS_PORT
"
read
-p
"Please select the data directory for this instance [
$_REDIS_DATA_DIR
] "
REDIS_DATA_DIR
...
...
@@ -52,9 +60,7 @@ if [ !"$REDIS_DATA_DIR" ] ; then
REDIS_DATA_DIR
=
$_REDIS_DATA_DIR
echo
"Selected default -
$REDIS_DATA_DIR
"
fi
#try the data directory setting
mkdir
-p
`
dirname
"
$REDIS_DATA_DIR
"
`
||
die
"Could not create redis data directory"
mkdir
-p
$REDIS_DATA_DIR
||
die
"Could not create redis data directory"
#get the redis executable path
_REDIS_EXECUTABLE
=
`
which redis-server
`
...
...
@@ -104,7 +110,7 @@ CONF=\"$REDIS_CONFIG_FILE\"\n\n
echo
$REDIS_INIT_HEADER
>
$TMP_FILE
&&
cat
$INIT_TPL_FILE
>>
$TMP_FILE
||
die
"Could not write init script to
$TMP_FILE
"
#copy to /etc/init.d
cp
-f
$TMP_FILE
$INIT_SCRIPT_DEST
||
die
"Could not copy redis init script to
$INIT_SCRIPT_DEST
"
cp
-f
$TMP_FILE
$INIT_SCRIPT_DEST
&&
chmod
+x
$INIT_SCRIPT_DEST
||
die
"Could not copy redis init script to
$INIT_SCRIPT_DEST
"
echo
"Copied
$TMP_FILE
=>
$INIT_SCRIPT_DEST
"
#Install the service
...
...
utils/redis.conf.tpl
浏览文件 @
001f8da2
...
...
@@ -14,7 +14,7 @@
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize
no
daemonize
yes
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
# default. You can specify a custom pid file location here.
...
...
@@ -317,7 +317,7 @@ auto-aof-rewrite-min-size 64mb
# Max execution time of a Lua script in milliseconds.
# This prevents that a programming error generating an infinite loop will block
# your server forever. Set it to 0 or a negative value for unlimited execution.
lua-time-limit 60000
#
lua-time-limit 60000
################################## SLOW LOG ###################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录