1.开启Redis后台启动命令
grep -v '#' redis.conf #去除redis.conf中到注释符号#
grep -v '^$' redis.conf #去除redis.conf中的空白行
查看后台启动的参数改了没即daemonize no ----->daemonize yes
sed -e 's/daemonize yes/daemonize no/g' redis.conf |grep -v '#'|grep -v '^$'
要使参数修改有效可以将 e 换成 i 修改