Redis Installation
Add the EPEL repository, and update YUM
		
		
			
			
			
			
				
					
				|  | sudo yum install epel-release sudo yum update -y | 
				
			 
		 
 
Install Redis
		
		
			
			
			
			
				
					
				|  | sudo yum install redis -y | 
				
			 
		 
 
Start Redis and setup automatically start Redis on boot
		
		
			
			
			
			
				
					
				|  | sudo systemctl start redis sudo systemctl enable redis | 
				
			 
		 
 
Verify the Installation
		
If Redis is running, it will return: PONG
 
Redis Configuration
Password settings
		
		
			
			
			
			
				
					
				|  | sudo vi /etc/redis.conf requirepass master_password | 
				
			 
		 
find and uncomment the requirepass line in the configuration file, and replace master_password with a secure password
 
Firewall settings
		
		
			
			
			
			
				
					
				|  | sudo yum install firewalld -y sudo firewall-cmd --permanent --add-port=6379/tcp sudo firewall-cmd --reload | 
				
			 
		 
 
Local Benchmark Test
		
		
			
			
			
			
				
					
				|  | redis-benchmark -q -n 100000 | 
				
			 
		 
 
Check Redis Version
		
 
Setup PHP session to Redis
		
		
			
			
			
			
				
					
				|  | yum install php-pecl-redis session.save_handler = redis session.save_path = "tcp://<redis_server_ip>:6379?auth=<password>" |