1. 程式人生 > >Redis (error) NOAUTH Authentication required. 解決方法

Redis (error) NOAUTH Authentication required. 解決方法

今天去用Jedis去連線我的redis伺服器的時候發現報錯
這裡寫圖片描述
如何進redis伺服器
這裡寫圖片描述
在redis的bin資料夾裡,有redis-cli可以進去redis伺服器

如何設定密碼
用vi 進入redis.conf

然後

/requirepassword
1
按n就找下一個,就能找到下圖這一行,開啟#號就能設定密碼
這裡寫圖片描述
問題我也沒弄出在哪兒,聽別人說是由於快取的原因。

然後我重啟了redis伺服器,並把設定的密碼取消了,就連線成功了

重啟redis伺服器
ps -ef | grep redis

kill pid **

redis-server ../redis.conf
1
2
3
4
5
基本就是這三個命令,先殺死程序即是推出,然後啟動就行,因為我配了多個配置檔案,所以每次啟動最好把哪個配置檔案指定好,避免出錯。

相關推薦

Redis (error) NOAUTH Authentication required.解決方法

style data- itl digg ews command root details tools 出現認證問題,應該是設置了認證密碼,輸入密碼既可以啦 註意密碼是字符串形式! [plain] view plain copy 127.0.0.1:6379&

Redis (error) NOAUTH Authentication required. 解決方法

今天去用Jedis去連線我的redis伺服器的時候發現報錯 如何進redis伺服器 在redis的bin資料夾裡,有redis-cli可以進去redis伺服器 如何設定密碼 用vi 進入redis.conf 然後 /requirepasswo

redis (error) NOAUTH Authentication required.

問題描述: 在redis-cli客戶端輸入任務redis命令都會出去以下錯誤 (error) NOAUTH Authentication required. 錯誤截圖: 錯誤分析: 這

MASTER aborted replication with an error: NOAUTH Authentication required.已解決

MASTER aborted replication with an error: NOAUTH Authentication required. 解決方法: 啟動從redis庫時redis.log報上述錯誤,也

redis安全 (error) NOAUTH Authentication required

redis安全 (error) NOAUTH Authentication required   Redis 安全 我們可以通過 redis 的配置檔案設定密碼引數,這樣客戶端連線到 redis 服務就需要密碼驗證,這樣可以讓你的 redis 服務更安全。 例項

service redis stop Stopping ... (error) NOAUTH Authentication required. Waiting

Redis伺服器設定密碼後,使用service redis stop 會出現以下資訊: [[email protected] ~]# service redis stop Stopping ... (error) NOAUTH Authentication required

Redis報錯 : (error) NOAUTH Authentication required.

這個錯誤是因為沒有用密碼登陸認證 , 先輸入密碼試試 . 127.0.0.1:6379> auth "yourpassword" 例如密碼是‘root’,當出現認證問題時候,輸入“auth ‘root’”就可以了. 127.0.0.1:6379> set name "

redis客戶端連線(error) NOAUTH Authentication required

redis客戶端連線成功,但是操作報異常——(error) NOAUTH Authentication required 錯誤的含義是說你沒有認證,說明沒有使用密碼連線 檢視密碼: 進入redis的安裝

Spring boot整合redisNOAUTH Authentication required

1、報這個錯說明redis伺服器設定的有密碼,但客服端訪問時沒有設定密碼。2、在Spring boot的application.properties中配置redis密碼:spring.redis.password=yourpassword,一般認為這樣就可以了,但知道什麼原因

Redis服務停止報錯解決方案[NOAUTH Authentication required]

Redis服務停止報錯解決方案[NOAUTH Authentication required] Redis伺服器設定密碼後,使用service redis stop 會出現以下資訊:   service redis stop

redis異常解決 :idea啟動本地redis出現 jedis.exceptions.JedisDataException: NOAUTH Authentication required

第一次安裝在本地redis服務,試試跑專案,結果卻出現nested exception is redis.clients.jedi

redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.

在用jedis叢集中,用ShardedJedisPool對主從進行hash演算法選取redis服務端,然而我在redis主從都設定了密碼,在配置連線時報如下錯誤  at redis.clients.jedis.Protocol.processError(Protocol.

NOAUTH Authentication required redis

今天突然之間遇到redis:NOAUTH Authentication required的問題,登入伺服器也無法對redis進行儲存查詢操作。上網查了下說是被黑客攻擊,具體各位可以在網上查到。這裡說下

NOAUTH Authentication required redis(二) The server is ruuning without a config file

    上次進行redis重啟後是可以正常運行了,但是由於工作太忙,而且測試環境一直在用,所以就沒有進行安全設定。直到昨天,一直處於被攻擊狀態,重啟了好幾次。無奈之下只能進行安全設定。   於是按照網

安裝Scrapy報錯 error: Microsoft Visual C++ 14.0 is required解決方法

all 目錄 ros 報錯 頁面 color style whl mage 【問題背景】:在Windows 10系統,pip install Scrapy,報錯error: Microsoft Visual C++ 14.0 is required,還有提示Twisted需

REdis MASTER aborted replication NOAUTH Authentication required

expected use lock sca stat using apr port con 對於REdis集群,如果設置了requirepass,則一定要設置masterauth,否則從節點無法正常工作,查看從節點日誌可以看到哪下內容:19213:S 22 Apr 2019

關於mysql登錄出現報錯信息:ERROR 1045 (28000)的解決方法

myql 登錄 error 1045 登錄mysql數據庫出現報錯信息ERROR 1045(28000)如下:[[email protected] ~]# mysql -uroot -p fanshine Enter password: ERROR 1045 (28000): Acce

mysql出現ERROR 1819 (HY000)的解決方法

() cor sele mys ber item 設置 生成 pass ERROR 1819 (HY000): Your password does not satisfy the current policy requirements, 出現這個問題怎麽辦? 為了加強安全

windows下使用pip安裝模塊發生“failed with error code 1”的解決方法

pil blank local 出現 自己 comm exec app ted win不愧是最爛的開發平臺,在安裝第三方模塊時經常出現些幺蛾子。 今天在window中使用python3自帶的pip安裝scrapy時,出錯,錯誤代碼如下: Command "f:\python

pycharm18.2.4 + Python3.7.1 安裝salt報錯python pip install salt: Command "python setup.py egg_info" failed with error code 10 及解決方法

最近在使用Python3.7.1 + pycharm + salt編寫程式中需要用到salt模組,但是在pycharm中使用pip install salt 安裝時出現錯誤:   1、提示需要 microsoft visual c++ 14.0     解決方法:可以去官網http://land