摘要:
0. 设置环境变量 1. 创建目录 2. 配置 3. 启动 mongo 121.9.245.183/admin -u <username> -p 阅读全文
摘要:
强制关闭Redis快照导致不能持久化。 解决方案: 运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。 root@ubuntu:/usr/local/redis/bin# ./r 阅读全文
摘要:
系统自启动 sslocal 随系统启动 重启系统 阅读全文
摘要:
scp -P 20536 Twisted-17.9.0.tar.bz2 58.221.71.10:/home/scp -P 20530 Twisted-17.9.0.tar.bz2 58.221.71.10:/home/scp -P 22192 Twisted-17.9.0.tar.bz2 223. 阅读全文
摘要:
1. 下载 2. 解压 3. make mkdir /etc/redis cp redis.conf /etc/redis/ 阅读全文
摘要:
1. 下载 2. 解压配置 3. 设置软连接 阅读全文
摘要:
远程连接 阅读全文
摘要:
# 搜索最小值 def index_of_minimum(lyst): """Returns the index of the minimum item.""" min_index = 0 current_index = 0 while current_index lyst[current_index]: min_index = cur... 阅读全文
摘要:
“%-10d” 左对齐 “%10d” 右对齐 for exponent in range(7, 11): print("%-8d%20d" % (exponent,10**exponent)) “%6.3f” %3.14 输出为 3.140 阅读全文
摘要:
1. user admin db.createUser({user:"admin", pwd:"password", roles:[{role: "userAdminAnyDatabase", db: "admin"}]}) 2. 使用权限启动MongoDB ./mongod --dbpath /p 阅读全文