redis启动,停止,及端口占用处理方法-成都快上网建站

redis启动,停止,及端口占用处理方法

启动

创新互联专注为客户提供全方位的互联网综合服务,包含不限于成都网站制作、成都网站建设、外贸营销网站建设、汶上网络推广、小程序定制开发、汶上网络营销、汶上企业策划、汶上品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联为所有大学生创业者提供汶上建站搭建服务,24小时服务热线:18980820575,官方网址:www.cdcxhl.com

进入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启动,停止,及端口占用处理方法
文章分享:http://kswjz.com/article/gdccjs.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流