1. Redis configuration, installation, etc. 1. Redis introduction and advantages REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo. Redis provides a variety of data structures, including lists, sets, ordered sets, and hashes, as well as the same strings structure as Memcached. Redis also includes rich operations on these data structures. Advantages of Redis High performance – Redis can support over 100K+ read and write frequencies per second. 2. Installation on VPS Installation under Debian: wget http://download.redis.io/releases/redis-2.8.9.tar.gz Installation under Centros: wget http://download.redis.io/releases/redis-2.8.19.tar.gz 3. Copy files Put several executable files in the src directory redis-benchmark, redis-check-aof, redis-check- mkdir -p /usr/local/redis/{bin,etc,var} 4. Configure the boot-up auto-start redis-server Under Debian: sudo useradd redis Centros: 5. Start redis Centros: 6. Testing /usr/local/redis/bin/redis-cli 7. Close redis service redis-server stop 2. Configure WordPress 1. Enable WordPress to support Redis Recommend predis. Add to the root directory of WordPress and execute the following wget http://uploads.staticjw.com/ji/jim/predis.php 2. Front-end cached PHP script Add to the root directory of WordPress and execute the following wget https://gist.githubusercontent.com/JimWestergren/3053250/raw/d9e279e31cbee4a1520f59108a4418ae396b2dde/index-with-redis.php Modify index-with-redis.php according to your needs, as follows: $cf = 0; // set to 1 if you are using cloudflare Replace index.php mv index.php index.php_bk #Replace with the original index.php, or change the nginx pseudo-static rules References: |
<<: Onra Host: $12.99/year/1 core/128MB memory/2GB SSD/500GB bandwidth/KVM
>>: HostWithLinux: $6/month/2 cores/4GB memory/100GB space/2TB traffic/1 IP/OpenVZ
RootNerds, a German hosting company founded in 20...
Juna Web is a hosting provider founded in August ...
Linode, a super stable merchant, is the first cho...
Event page : https://centerhop.com/black-friday-2...
NOVOS, a Belgian merchant, a formal company VAT r...
The name of the blog has been changed to AiBa Blo...
ServerHub, a long-established American hosting pr...
PacificIDC was founded in 2014. The team consists...
Ikoula, a French merchant, was founded in 1998 an...
OwnBox, a British merchant, was introduced once i...
Details : Microbase host: 84 yuan/month/1GB memor...
White Sands Hosting, an American hosting provider...
Reliable Hosting Services, introduced in early 20...
My Custom Hosting2009年就提供主機服務,之前有過介紹: https://zhu...
2CY, a domestic merchant, provides various types ...