Home  >  Article  >  Backend Development  >  memcached 和 web server跑在同一台server,怎么配置防火墙

memcached 和 web server跑在同一台server,怎么配置防火墙

WBOY
WBOYOriginal
2016-06-13 11:59:27909browse

memcached 和 web server跑在同一台server,如何配置防火墙
memcached 和 web server跑在同一台server,如何配置防火墙阻止外网telnet 到memcached,

telnet登陆memcached也无需密码什么的就能浏览memcached。一般大家都是如何解决安全的。
------解决方案--------------------
memcached 使用内网IP就可以了。
启动参数使用 -l   绑定地址设置为127.0.0.1就只能本机访。

例如:memcached -d -m 256 -c 2048 -p 11211 -u www -l 127.0.0.1
------解决方案--------------------

本帖最后由 PhpNewnew 于 2014-06-08 11:06:06 编辑 是的 启动的时候使用内网IP就好了,除非你要和其他服务器分享数据,那么你可以把其他服务器的IP加到防火墙的白名单内

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn