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
LoVPS, a US hosting company under SpeedMax, is sa...
Open http://freeaccount.partnersite.myorderbox.co...
DGCHost, a Singapore hosting provider under Digic...
Clouvider, a British hosting provider, operates a...
Alibaba Cloud International Edition has launched ...
“EU.org, free domain names since 1996”. eu.org is...
Uniregistry is an American domain name registrar,...
Details: LRShost: $9.9/month/1GB memory/75GB spac...
Onetsolutions, a French hosting company, is a for...
drServer seems to be a VPS provided by an individ...
TripodCloud, a Chinese business, mainly focuses o...
DeinServerHost, a German hosting provider, was es...
Asiahostonline, a foreign hosting provider, was e...
Tencent Cloud has launched a lightweight cloud se...
See: Gdrive: Sync Google Drive files and automati...