~/.bash_profile中加入下面配置项

# 启动redis服务
redis-server >~/logs/redis/redis-start-log.txt&

相关文章: