redis启动,停止,及端口占用处理方法
2019/6/30 22:29:50
本文主要是介绍redis启动,停止,及端口占用处理方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
启动
进入etc目录下 启动redis
sudo ../bin/redis-server ./redis.conf
停止 ./redis-cli shutdown 注释:这里关闭默认端口号 ./redis-cli -h 127.0.0.1 -p 7001 shutdown 注释:关闭指定端口号 实时查看日志 tail -f /usr/local/redis/log-redis.log //----------------端口占用问题处理 $ 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 //------------------同一台机器启动多个实例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启动,停止,及端口占用处理方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持找一找教程网。
这篇关于redis启动,停止,及端口占用处理方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-21redisinsight-v2
- 2024-02-26Typed property App\Api\Mapper\GamePropsConfigMapper::$apiRedis must not be accessed before initia-icode9专业技术文章分享
- 2024-02-21redisson getlock
- 2024-02-20redis config
- 2024-02-20redis leaderboard
- 2024-01-23缓存选型:Redis or MemCache
- 2024-01-22面试官:Redis持久化能关吗?怎么关?
- 2024-01-21Redis压测工具redis-benchmark-icode9专业技术文章分享
- 2024-01-19这才是你应该了解的Redis数据结构!
- 2024-01-18Redis系列:使用 Redis Module 扩展功能