Home Backend Development PHP Tutorial memcache security related

memcache security related

May 30, 2019 pm 02:01 PM
memcache

Memcache 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
Copy after login

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
Copy after login

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!

Statement of this Website
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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use Memcache in PHP development? How to use Memcache in PHP development? Nov 07, 2023 pm 12:49 PM

How to use Memcache in PHP development?

Utilizing Memcache caching technology to improve the concurrent processing capabilities of PHP applications Utilizing Memcache caching technology to improve the concurrent processing capabilities of PHP applications May 18, 2023 am 08:12 AM

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 for efficient data reading and writing operations in PHP development? Nov 07, 2023 pm 03:48 PM

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 optimize data storage operations in your PHP application? Nov 08, 2023 pm 09:06 PM

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 to achieve efficient data caching and sorting operations in PHP development? Nov 07, 2023 pm 02:28 PM

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? How to use Memcache for distributed caching in PHP development? Nov 07, 2023 pm 03:04 PM

How to use Memcache for distributed caching in PHP development?

Application and practice of Memcache caching technology in PHP projects Application and practice of Memcache caching technology in PHP projects May 17, 2023 pm 02:10 PM

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 How to use Memcache caching technology in PHP to improve the large concurrency performance of the website May 17, 2023 pm 05:00 PM

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

See all articles