memcache security related
May 30, 2019 pm 02:01 PMMemcache itself does not have a permission control module, so the memcache service open to the external network is easily scanned and discovered by attackers. Sensitive information in memcache can be directly read through command interaction.
To solve this problem, you can follow the following solutions:
1. Memcache is not provided for external network access
memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid
2. Memcache needs to be provided for external network access Open the firewall for network access
iptables -A INPUT -p tcp -s 192.168.0.2 --dport 11211 -j ACCEPT
The above rules mean that only the ip 192.168.0.2 is allowed to access port 11211.
The above is the detailed content of memcache security related. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to use Memcache in PHP development?

Utilizing Memcache caching technology to improve the concurrent processing capabilities of PHP applications

How to use Memcache for efficient data reading and writing operations in PHP development?

How to use Memcache to optimize data storage operations in your PHP application?

How to use Memcache to achieve efficient data caching and sorting operations in PHP development?

How to use Memcache for distributed caching in PHP development?

Application and practice of Memcache caching technology in PHP projects

How to use Memcache caching technology in PHP to improve the large concurrency performance of the website
