@bobbie.kris
To install nginx on Ubuntu, you can follow these steps:
- Update the package manager's package list by running the following command:
- Install nginx by running the following command:
- Once the installation is complete, you can start the nginx service by running the following command:
1
|
sudo systemctl start nginx
|
- You can also enable nginx to start automatically at boot time by running the following command:
1
|
sudo systemctl enable nginx
|
- To check the status of the nginx service, you can run the following command:
1
|
sudo systemctl status nginx
|
This should install and start nginx on your Ubuntu system. You can then access the default nginx welcome page by visiting http://localhost
in your web browser.