0
0
Redisquery~10 mins

Redis server startup and configuration - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to start the Redis server with the default configuration file.

Redis
redis-server [1]
Drag options to blanks, or click blank then click option'
A--help
B/etc/redis/redis.conf
C--version
D/var/log/redis.log
Attempts:
3 left
💡 Hint
Common Mistakes
Using --help or --version instead of a config file path.
Providing a log file path instead of a config file.
2fill in blank
medium

Complete the command to start Redis server in the background (daemon mode).

Redis
redis-server [1] --daemonize yes
Drag options to blanks, or click blank then click option'
A/etc/redis/redis.conf
B--version
C--help
D/var/run/redis.pid
Attempts:
3 left
💡 Hint
Common Mistakes
Using --help or --version instead of the config file.
Providing a PID file path instead of the config file.
3fill in blank
hard

Fix the error in the command to start Redis server with a custom port 6380.

Redis
redis-server --port [1]
Drag options to blanks, or click blank then click option'
A6379
Bdaemonize yes
Credis.conf
D6380
Attempts:
3 left
💡 Hint
Common Mistakes
Using the config file name instead of a port number.
Using daemonize option as port value.
4fill in blank
hard

Fill both blanks to start Redis server with a custom config file and enable protected mode.

Redis
redis-server [1] --protected-mode [2]
Drag options to blanks, or click blank then click option'
A/home/user/redis_custom.conf
Byes
Cno
D/etc/redis/redis.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Using the default config file instead of the custom one.
Setting protected mode to 'no' when you want it enabled.
5fill in blank
hard

Fill all three blanks to start Redis server with a config file, set maxmemory to 256mb, and run as a daemon.

Redis
redis-server [1] --maxmemory [2] --daemonize [3]
Drag options to blanks, or click blank then click option'
A/etc/redis/redis.conf
B256mb
Cyes
D512mb
Attempts:
3 left
💡 Hint
Common Mistakes
Using 512mb instead of 256mb for maxmemory.
Not running Redis as a daemon when required.