所谓覅破解 发表于 2017-12-16 14:26:40

启动mongodb报错问题

# bin/mongod -f config/mongo.cnf &
30549
# 2017-06-09T07:13:09.423+0000 F CONTROL Failed global initialization: BadValue: Invalid or no user locale set.
  Please ensure LANG and/or LC_* environment variables are set correctly.
+Exit 1                  bin/mongod -f config/mongo.cnf
  解决方法:
  vi /etc/profile
  增加环境变量设置:export LC_ALL=C
  重启mongodb即可
  vi/etc/environment
  增加 LANG=en_US.utf-8
页: [1]
查看完整版本: 启动mongodb报错问题