Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

How to Install Redis on CentOS / RHEL / Ubuntu and Windows

Install Redis 7 on CentOS 7 / RHEL 7


# Update your CentOS 7 / RHEL 7
$ sudo yum -y update

# Add REMI repository
$ sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# Install Redis on CentOS 7 / RHEL 7
$ sudo yum --enablerepo=remi install redis
$ rpm -qi redis

# Start Redis Service on CentOS 7 / RHEL 7
$ sudo systemctl enable --now redis

# Enable network Listen for Redis Service (Optional)
$ sudo vi /etc/redis.conf

bind 172.21.10.11				# Bind to to your server IP
bind * -::*					# To listen on all available interfaces
requirepass  mypasword		# Configure Redis Authentication for clients to require AUTH <PASSWORD>
appendonly yes				# Set persistence mode by changing the appendonlyvalue to yes
appendfilename "appendonly.aof"	# Set persistence mode by changing the appendonlyvalue to yes

# Restart redis service after making the changes
$ sudo systemctl restart redis
$ sudo systemctl status redis

# You can view the port and IP used by Redis service using the sscommand:
$ sudo ss -tunelp | grep 6379

# If you have an active firewalld service, allow port 6379
$ sudo firewall-cmd --add-port=6379/tcp --permanent
$ sudo firewall-cmd --reload

# Test connection to Redis Server
$ redis-cli
127.0.0.1:6379>
127.0.0.1:6379> AUTH mypasword
OK
127.0.0.1:6379> INFO Server
Code language: PHP (php)

How to add Sample Data in Redis?


$ redis-cli
127.0.0.1:6379> auth mypassword
127.0.0.1:6379> SET shapes:triangles "3 sides"
127.0.0.1:6379> SET shapes:squares "4 sides"

127.0.0.1:6379> GET shapes:triangles
127.0.0.1:6379> GET shapes:squares

127.0.0.1:6379> save
127.0.0.1:6379> exit

$ sudo cat /var/lib/redis/dump.rdbCode language: PHP (php)

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x