現(xiàn)在了解redis了,實(shí)際應(yīng)用自己在網(wǎng)上搜吧,我已經(jīng)實(shí)踐過(guò)了.
https://www.cnblogs.com/cnmenglang/p/6424236.html
https://www.cnblogs.com/cnmenglang/p/6424236.html
2017-11-24
先說(shuō)聲謝謝??!,然后提個(gè)意見(jiàn):希望能結(jié)合一個(gè)小項(xiàng)目重現(xiàn)下做緩存的場(chǎng)景!~
2017-11-23
* 提示time out錯(cuò)誤 需要再iptables防火墻上添加上6379端口 并重啟防火墻服務(wù)
* 提示connection refuse錯(cuò)誤 需要注釋掉redis.conf 文件中的 bind 127.0.0.1
* 提示JedisDataException錯(cuò)誤 需要將redis.conf文件中的protect-mode 置為no
最后重啟redis ~
* 提示connection refuse錯(cuò)誤 需要注釋掉redis.conf 文件中的 bind 127.0.0.1
* 提示JedisDataException錯(cuò)誤 需要將redis.conf文件中的protect-mode 置為no
最后重啟redis ~
2017-11-19
最新回答 / 5200414
看一下存入的db?是哪個(gè)??然后在虛擬機(jī) select相應(yīng)的db,進(jìn)去看一下,應(yīng)該就有你設(shè)置的值了
2017-11-15
如果是阿里云的話,需要開(kāi)放6379端口策略,還有就是redis用127.0.0.1訪問(wèn)正常,但是用ip訪問(wèn),就會(huì)報(bào)錯(cuò),解決方法,修改redis.conf文件1.bind 0.0.0.0設(shè)置允許訪問(wèn)的ip 2.requirepass123456設(shè)置訪問(wèn)密碼 3.protected-mode no關(guān)閉保護(hù)模式,./redis-server .././redis.conf 啟動(dòng),這樣設(shè)置了密碼,跟老師講的不一樣了,其中JedisPool連接池需要使用帶有password 的參數(shù),如:public JedisPool(poolConfig,host,port,timeout,password){}
2017-11-15