远程请求redis服务器后EXCEPTION解决方案

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/chaopioneer/article/details/79230330

在redis.conf配置中,有一项配置为:bind 127.0.0.1。只需修改成: bind 0.0.0.0

在.conf文章中有如下解释:

# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using
# the "bind" configuration directive, followed by one or more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
#
# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
# internet, binding to all the interfaces is dangerous and will expose the
# instance to everybody on the internet. So by default we uncomment the
# following bind directive, that will force Redis to listen only into
# the IPv4 lookback interface address (this means Redis will be able to
# accept connections only from clients running into the same computer it
# is running).

翻译过来是:默认情况下,如果bind配置并不明确,redis会监听所有可用网络接口。redis有可能监听一个或多个已选择的bind绑定的ip地址,如下所示:# bind 192.168.1.100 10.0.0.1 , bind 127.0.0.1 ::1
警告:如果当前服务器运行的redis暴露给整个互联网,绑定所有端口,这种行为很危险并且将会暴露redis实例。所以默认情况下不建议bind参数暴露给所有ip地址


展开阅读全文

使用D3DX10CreateEffectFromFile后报错,请求解决方案

11-18

在开发使用的机子上不管使用debug还是release执行程序都不会出错。rnrn但是在别的机器上运行程序会报错:“E_FAIL(0x80004005) Calling: D3DX10CreateEffectFromFile Do you want to degug the application?”现在就是不知道怎么会报这样的错误。rnrn报错的机器都没有安装DX SDK。rnrn//************************************************************rn//下面是代码:rn//把其中的DXTrace(__FILE__, (DWORD)__LINE__, hr, L"D3DX10CreateEffectFromFile",true);注释掉也不行。rnrn[code=C/C++]rnbool CDirect3D10Device::CreateEffect(ShaderEffectStruct* pShaderEffect)rnrn //rn //rn //创建效果rn ID3D10Blob* compilationErrors = 0;rn HRESULT hr = 0;rn hr = D3DX10CreateEffectFromFile(pShaderEffect->pFileName, 0, 0, "fx_4_0",sD3D10_SHADER_ENABLE_STRICTNESS, 0, md3dDevice, 0, 0, &pShaderEffect->pEffect, &compilationErrors, 0);rnrn if(FAILED(hr))rn rn if( compilationErrors )rn rn MessageBoxA(0, (char*)compilationErrors->GetBufferPointer(), 0, 0);rn ReleaseCOM(compilationErrors);rn rn DXTrace(__FILE__, (DWORD)__LINE__, hr, L"D3DX10CreateEffectFromFile",true);rnrn return false;rn rn[/code]rnrn//************************************************************rn起初以为是DX10自身带有debug功能的原因,但是我已经把这功能关闭了:rn[code=C/C++]rnD3D10CreateDeviceAndSwapChain(rn 0, //默认监视器rn D3D10_DRIVER_TYPE_HARDWARE,rn 0, //不启用软件模拟rn 0, rn D3D10_SDK_VERSION,rn &DXswap,rn &mSwapChain,rn &md3dDevice)rn[/code]rnrnrnrn请大家看看这要怎样解决? 论坛

没有更多推荐了,返回首页