1. Check your apt source list.
vi /etc/apt/source.list
2. Add this lines of code below.
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main non-free contrib
deb-src http://deb.debian.org/debian/ stretch-updates main non-free contrib
deb http://ftp.debian.org/debian/ stretch main non-free contrib
deb-src http://deb.debian.org/debian/ stretch main non-free contrib
3. Update the system.
apt update
4. Install nginx.
apt install nginx
5. Check the status of nginx.
service nginx status
6. Check the status on browser.
http://localhost or ip address
No comments:
Post a Comment