mongodb在shutdown時報錯:shutdown must run from localhost when running db without auth
mongodb環境: 3.2.6
初學mongo,在用工具連線時mongo,想關閉mongo時報錯如下:
意思是說:如果沒有auth,必須在本地shutdown
於是在一個同事的幫助下,終於找到了原因
在伺服器上輸入alias,看到我設定了一個快捷鍵如下:
alias mongo='/usr/bin/mongo 192.168.2.28:27017/test_astercc_com'
原來我用工具連線時,一直用192.168.2.28連線的,於是我更改了連線方式/usr/bin/mongo 127.0.0.1:27017/test_astercc_com,就可以正常關閉了
如有不對,歡迎提出指正.
相關推薦
mongodb在shutdown時報錯:shutdown must run from localhost when running db without auth
mongodb環境: 3.2.6 初學mongo,在用工具連線時mongo,想關閉mongo時報錯如下: 意思是說:如果沒有auth,必須在本地shutdown 於是在一個同事的幫助下,終於找到了原因 在伺服器上輸入alias,看到我設定了一個快捷鍵如下: alias mongo='
centos7安裝android sdk時報錯Unable to run mksdcard SDK
系統版本: $ cat /proc/version Linux version 3.10.0-229.20.1.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9
MySql5 6操作時報錯 You must SET PASSWORD before executing this st
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興! 參考前文利用安全模式成功登陸,然後修改密碼,等於給MySql設定了密碼。登陸進去後,想建立一個數據庫測試下。得到的結果確實:ERROR 1820 (HY000)
eclipse連結hadoop2.5.1時報錯Error:Call From roo/10.30.12.xxx to hostname1:9000 failed on connection excep
問題:我用eclipse(Mar.2 Release(4.5.2))連線hadoop2.5.1時報錯:Error:Call From roo/10.30.12.xxx to hostname1
brew安裝時報錯-/usr/local must be writable
local span update 當前 chown name 用戶 nbsp 系統 執行語句 udo chown -R $(whoami) /usr/local,即 sudo chown -R username /usr/local 其中username為系統當前用戶
Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法
smo font span links 命令 develop ebp amp webpack Laravel 5.4 Mix & Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法 首先
docker端口映射或啟動容器時報錯Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen
prot 服務 sina des ram pla sys from localhost 現象: [[email protected] ~]# docker run -d -p 9000:80 centos:httpd /bin/sh -c /usr/local/
Laravel 框架在 Mac 上使用命令 npm run dev 時報錯問題
教程 入門 印象 ron nod bsp img 感覺 sas 我是看的Summer寫的 Laravel 入門教程,用的 Mac 上 Homestead---Vagrant 第四章時一個步驟是要將 Laravel 默認生成的 .scss 文件編譯成 .css 才行。 命令如
java 連接 redis集群時報錯:Could not get a resource from the pool
rom idt log 圖片 pool 本機ip redis style exce 由於弄這個的時候浪費了太多的時間,所以才記錄下這個錯,給大夥參考下 檢查了一下,配置啥的都沒問題的,但在redis集群機器上就可以,錯誤如下: Exception in thread "
webpack打包時報錯ERROR in static/js/vendor.35f3cd6381fdca8d6f5b.js from UglifyJs
PE IT png alt 命令 分享圖片 ade inf AC 錯誤提示如下: operator (>) 表示這個運算符 (>) 有問題。 打開對應的emitter.js文件,可以看到有段es6的語法不解析。 我們需要在配置文件webpack.
Linux下使用RedisPool時報錯:redis.clients.jedis.HostAndPort getLocalHostQuietly 嚴重: cant resolve localhost address
ima 分享圖片 linu linux下 linux can bubuko IE bsp 解決方案: $ hostname ##查看主機名 $ vim /etc/hosts ##查看主機名是否包含在第一行中,若無,添加即可 OK Linux下使用R
Spring Boot 利用插件構造QueryDSL語句時報錯:You need to run build with JDK or have tools.jar on the classpath.If this occur....
cli roc ini文件 The 解決 tps proc 自己 沒有 You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse buil
寫hibernate.cfg.xml時報錯The content of element type "property" must match "(meta*,(column|formula)*,type?)".
原配置檔案是這樣的 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "htt
EADDRNOTAVAIL 。webpack -npm run dev 時報錯
剛拉的程式碼,但是執行就報錯了。 原因是因為在webpack中的devServer裡邊配置項裡有一個host:pcpppppp.jgdfhdd.com這樣一個域名,然後啟動服務的時候,貌似會經過dns解析,然後找到了一個我不認識的ip地
git push時報錯fatal: Could not read from remote repository.
將本地庫的所有內容推送到遠端庫,輸入命令: git bash報錯: 輸入命令: git bash 輸出: 對比github 兩處地址不一樣。 解決方法: 輸入以下兩個命令列: $ git remote set-url origin ht
通過xstart啟動gnome桌面 連線時報錯:Can't open display: localhost:10.0
window用Xmanager4.0的Xstart連線linux遠端桌面 安裝包: xorg-x11-xauth xterm.x86_64 0:253-1.el6 Execute command path:/usr/bin/xterm
執行hbase shell時報錯: hbase(main):001:0> list ERROR: Can't get master address from ZooKeeper; znode da
執行hbase shell時報錯: hbase(main):001:0> list ERROR: Can't get master address from ZooKeeper; znode data == null Here is some help for this comma
SVN同步時報錯:“Previous operation has not finished; run 'cleanup' if it was interrupted”
SVN同步時報錯:“Previous operation has not finished; run 'cleanup' if it was interrupted” 這大概是SVN之前的操作沒有完成,又進行下一個操作,造成死鎖。 SVN的operation是存放在”work_queue”
啟動Tomcat時報錯:Server at localhost was unable to start within 45 seconds
一、在Tomcat啟動時有時會報次錯 Server Tomcat v9.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing th
從遠端拉下來的專案執行`npm run dev`時報錯。
從遠端拉下來的專案執行npm run dev時報錯。 94% asset optimization ERROR Failed to compile with 18 errors14:20:00