0
0
Nginxdevops~10 mins

Nginx installation - Interactive Code Practice

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

Complete the command to update the package list before installing Nginx.

Nginx
sudo [1] update
Drag options to blanks, or click blank then click option'
Ainstall
Bremove
Capt
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'apt' causes a command error.
Using 'remove' or 'upgrade' changes packages instead of updating the list.
2fill in blank
medium

Complete the command to install Nginx using apt.

Nginx
sudo apt [1] nginx
Drag options to blanks, or click blank then click option'
Aupdate
Binstall
Cremove
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' deletes packages instead of installing.
Using 'update' only refreshes package lists, does not install.
3fill in blank
hard

Fix the error in the command to start the Nginx service.

Nginx
sudo systemctl [1] nginx
Drag options to blanks, or click blank then click option'
Astart
Bdisable
Creload
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' turns off the service.
Using 'disable' prevents the service from starting automatically.
4fill in blank
hard

Fill both blanks to check the status of the Nginx service.

Nginx
sudo systemctl [1] [2]
Drag options to blanks, or click blank then click option'
Astatus
Bnginx
Capache2
Drestart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'restart' instead of 'status' changes the service state.
Using 'apache2' instead of 'nginx' checks the wrong service.
5fill in blank
hard

Fill all three blanks to enable Nginx to start automatically on boot and then verify it.

Nginx
sudo systemctl [1] nginx && sudo systemctl [2] nginx && sudo systemctl [3] nginx
Drag options to blanks, or click blank then click option'
Aenable
Bstart
Cstatus
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' disables the service instead of enabling it.
Checking status before starting may show it as inactive.