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