我按照此处的说明设置用户...
然后从另一台机器我做:
mongo -u admin -p adminpassword host/collection
我得到的回应是:
MongoDB shell 版本:2.6.10 连接到:host/collection 2019-07-12T06:20:36.336+0000 错误:2 { ok:0.0,errmsg:“未指定身份验证机制”,代码:2,代码名称:“BadValue”在 src/mongo/shell/db.js:1287 异常:登录失败
现在,我想这是不同版本的问题,但我真正想要的是从节点脚本远程连接,这也失败了,但唯一的消息是:“MongoError:身份验证失败。”
有谁知道解决方案?
我在gemspecs中看到了很多这样的东西:
s.add_dependency 'some_gem', '~> 1.5.0'
Run Code Online (Sandbox Code Playgroud)
什么〜>是什么意思?
如何隐藏echarts中的xaxis和ticks?我最接近的是将颜色设置为页面颜色,但刻度线仍然显示为灰色:
\nxAxis: {\n type: 'category',\n splitLine:{ \xe3\x80\x80\xe3\x80\x80\xe3\x80\x80\xe3\x80\x80show:false \xe3\x80\x80\xe3\x80\x80},\n axisLabel: {\n textStyle: {\n color: 'white'\n }\n },\n}\nRun Code Online (Sandbox Code Playgroud)\n 将模块从node_modules导入React应用程序的正确方法是什么?
当我做: import MyModule from '../node_modules/my_module'
我得到: Module not found: You attempted to import ../node_modules/my_module which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/
不要告诉我我应该每次都将node_modules复制到src /吗?
注意:我在没有符号链接的Windows上。