Redis-cli命令重启redis服务器(Redis-cli command to restart the redis server)
我使用redis-cli中的SHUTDOWN终止了redis服务器。 现在提示显示'未连接>'。
我发现重启服务器的唯一方法是退出redis-cli提示符,然后重新启动redis服务。
我的问题是,有没有办法从redis-cli提示符重启服务器使用任何redis命令没有退出redis-cli提示符?
I terminated the redis server using SHUTDOWN from redis-cli. Now the prompt shows 'not connected>'.
The only way I found to restart the server was to exit the redis-cli prompt and then do a restart of the redis service.
My question is, is there any way to restart the server from the redis-cli prompt using any redis commands WITHOUT EXITING the redis-cli prompt?
原文:https://stackoverflow.com/questions/36348783
满意答案
mouseover
元素时可以设置标记。 像这样的东西:var disableScroll = true; $(document).on('mouseenter mouseleave', '.scroll', function(e) { disableScroll = (e.type == 'mouseleave'); });
然后检查滚动事件中的标志:
$('.page').on('mousewheel', function(event) { if (disableScroll) { event.preventDefault(); } });
这是一个更新的小提琴:
http://jsfiddle.net/o0krp0yf/1/
您可能想要添加一个检查以查看内部滚动元素是否已完成滚动(否则,滚动事件将继续到父级,这是不希望的...)
You can set a flag when you
mouseover
the element. Something like this:var disableScroll = true; $(document).on('mouseenter mouseleave', '.scroll', function(e) { disableScroll = (e.type == 'mouseleave'); });
And then check against the flag in your scroll event:
$('.page').on('mousewheel', function(event) { if (disableScroll) { event.preventDefault(); } });
Here's an updated fiddle:
http://jsfiddle.net/o0krp0yf/1/
You might want to add a check to see if the inner scrolling element has completed scrolling (otherwise, the scroll event will continue to the parent, which isn't desired...)
相关问答
更多在GWT ScrollPanel中使用MouseWheel进行水平滚动?(Horizontal Scroll with MouseWheel in GWT ScrollPanel?)
平滑的水平滚动绑定到鼠标滚轮(Smooth horizontal scroll bound to mousewheel)
Jquery,解开鼠标滚轮事件,然后在动作完成后重新绑定它?(Jquery, unbinding mousewheel event, then rebinding it after actions are completed?)
Javascript鼠标滚轮事件滚动(Javascript mousewheel event scroll)
有没有办法让鼠标滚轮在Javascript中触发“悬停”事件?(Is there a way to make a mousewheel trigger the “hover” event in Javascript?)
jQuery循环 - 用鼠标滚轮控制?(jQuery cycle - control with mousewheel? (How to prevent mousewheel from continuously cycling?))
需要滚动滚动usercontrol(Need to mousewheel scroll a usercontrol)
jQuery中的mousewheel问题(Problems with mousewheel in jQuery)
mousewheel和if语句jquery(mousewheel and if statements jquery)
检测页面底部的死循环(鼠标滚轮,滚动事件)(Detect dead scrolling at the bottom of the page (mousewheel, scroll events))
相关文章
更多Redis Cookbook
Redis概述
redis 集群环境搭建-redis集群管理
redis安装-redis集群管理
redis sentinel.conf详解-redis集群管理
基于linux下redis安装与配置
Redis配置文件详解
基于window安装redis
redis主从从架构搭建-redis集群管理
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!