Basic memcache security

Since most clients are not aware of the security risk that memcache represents, there is one little fix that should be applied every time we install it for a client.

Once you have installed memcache, go to : /etc/sysconfig/ and edit the file called memcached.

In there find the OPTIONS="" line and make it : OPTIONS="-l 127.0.0.1" (that minus L).

Then restart memcached, /etc/init.d/memcached restart

This will prevent any one from the outside from connecting to memcached from outside.

  • 0 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

How To: Back Up MySQL Databases From The Command Line

While automated backups are important, sometimes you just want to take a quick and dirty snapshot...

How To Install MariaDB on CentOS 6

MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and...

How to Display (List) All Jobs in Cron / Crontab

View Root’s Cron Jobs crontab -l  View a User’s Cron Jobs crontab -u username -l Example with...

How To: Automate Server Scripts With Cron

Servers can automatically perform tasks that you would otherwise have to perform yourself, such...

How to find sending spam emails and enable mail header in php.ini

- In Linux servers if there are a lot of emails in the queue "over 100" emails. you can check if...