修改redis.conf后,重啟redis,發(fā)現(xiàn)修改的配置未生效,原來是需要在啟動(dòng)redis的時(shí)候在命令中加上配置文件,命令如下
./redis-server /usr/local/redis-3.2.8/redis.conf &
仔細(xì)閱讀配置文件可以開頭看到有這樣的描述
# Note that in order to read the configuration file, Redis must be# started with the file path as first argument:## ./redis-server /path/to/redis.conf
所以問題就在這里。
以上這篇完美解決linux上啟動(dòng)redis后配置文件未生效的問題就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持武林網(wǎng)。
新聞熱點(diǎn)
疑難解答
圖片精選