安装方法: 1.centos默认没有安装tcl: sudo yum install -y tcl wget http://download.redis.io/releases/redis-2.8.13.tar.gz tar zxvf red[…]

启动脚步 #!/bin/bash if [ $# != 0 ];then port=$1; else port=27017 fi mkdir -p /opt/mongodb/data_$port /opt/mongodb/bin/mongo[…]