让rethinkdb在后台运行,且关闭终端后持续运行
创建脚本 start_rethinkdb.sh:
# /bin/sh echo "start..." cmd="'rethinkdb --bind all --http-port 8090'" #echo ${cmd} bash -c "nohup sh -c ${cmd} &"
执行脚本./start_rethinkdb.sh即可