Challenge - 5 Problems
Nginx Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Nginx service status after installation
After installing Nginx on a Linux system using the package manager, what is the expected output of
systemctl status nginx if the service is running correctly?Nginx
systemctl status nginx
Attempts:
2 left
💡 Hint
Check the service status after installation and starting the service.
✗ Incorrect
When Nginx is installed and started successfully, systemctl status nginx shows it as active and running with a main process ID.
❓ Configuration
intermediate1:30remaining
Default Nginx configuration file location
Where is the default main configuration file for Nginx typically located on a standard Linux installation?
Attempts:
2 left
💡 Hint
Think about the standard configuration directory for system-wide services.
✗ Incorrect
The main Nginx configuration file is usually located at /etc/nginx/nginx.conf on Linux systems installed via package managers.
🔀 Workflow
advanced2:30remaining
Correct order to install and start Nginx on Ubuntu
What is the correct order of commands to install Nginx and start its service on an Ubuntu system?
Attempts:
2 left
💡 Hint
Update package lists before installing, then start and enable the service.
✗ Incorrect
First update package lists, then install Nginx, start the service, and enable it to start on boot.
❓ Troubleshoot
advanced2:00remaining
Error when starting Nginx: Address already in use
You try to start Nginx but get the error:
bind() to 0.0.0.0:80 failed (98: Address already in use). What is the most likely cause?Attempts:
2 left
💡 Hint
Port 80 can only be used by one service at a time.
✗ Incorrect
The error means some other service is already listening on port 80, so Nginx cannot bind to it.
✅ Best Practice
expert1:30remaining
Ensuring Nginx starts automatically after reboot
Which command ensures that Nginx will start automatically every time the system boots?
Attempts:
2 left
💡 Hint
Think about enabling services to run on boot.
✗ Incorrect
systemctl enable nginx configures the system to start Nginx automatically on boot.