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
Rad Web Hosting, an American hosting provider, ma...
Weji Host, a Chinese merchant, formerly 50kvm (in...
Evolution Host is an old business established in ...
Netcup, a German hosting company, was founded in ...
Supports Ubuntu 20, Debian 10/11, CentOS 7/8 and ...
Tencent Cloud’s 2019 Double 11 flash sale event h...
NCCK, a regular Chinese merchant (AS 136800), mai...
VoLLcloud LLC is an Internet service provider est...
Kuai Che Dao, a Chinese merchant, mainly provides...
BELIRA, an American hosting provider, has been pr...
Sweden Dedicated, a long-established Swedish host...
Virpus' VPS is offering a 15% discount, with ...
Tencent corporate email address: https://exmail.q...
PhotonVPS, a different brand from the same compan...
The official tutorial of Baota reproduced below i...