啟動(dòng)
進(jìn)入etc目錄下 啟動(dòng)redis
sudo ../bin/redis-server ./redis.conf
停止 ./redis-cli shutdown 注釋:這里關(guān)閉默認(rèn)端口號(hào) ./redis-cli -h 127.0.0.1 -p 7001 shutdown 注釋:關(guān)閉指定端口號(hào) 實(shí)時(shí)查看日志 tail -f /usr/local/redis/log-redis.log //----------------端口占用問(wèn)題處理 $ ps aux | grep redis Find the port that its running on.. In my case..
MyUser 8821 0.0 0.0 2459704 596 ?? S 4:54PM 0:03.40 redis-server *:6379
And then close the port manually
$ kill -9 8821
Re-run redis
$ redis-server //------------------同一臺(tái)機(jī)器啟動(dòng)多個(gè)實(shí)例redis Sorry, the cluster configuration file nodes.conf is already used by a different Redis Cluster node. Please make sure that differen t nodes use different cluster configuration files. 需要在 redis.conf配置文件中配置 cluster-config-file nodes.conf 為不同名稱
以上這篇redis啟動(dòng),停止,及端口占用處理方法就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。
標(biāo)簽:廣東 揚(yáng)州 景德鎮(zhèn) 林芝 澳門 贛州 香港 唐山
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《redis啟動(dòng),停止,及端口占用處理方法》,本文關(guān)鍵詞 redis,啟動(dòng),停止,及,端口,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。