--------------------Nginx
become root user
sudo su -
install nginx
apt install nginx
confirm nginx installation
nginx -v
or
systemctl status nginx (q to end)
or
browser -> 192.168.0.3:80,
most used directories in nginx
/etc/nginx
an configuration is stored in
/etc/nginx/sites-available
other useful directories are log files "/var/log/nginx"
and AcctualFiles(html,css,other) /var/www
start nginx
systemctl start nginx
stop nginx
systemctl stop nginx
is active check
systemctl is-active nginx
reload service
systemctl reload nginx
nginx help
nginx -h
test configuration
nginx -t
nginx main configuration file
/etc/nginx/nginx.conf
documentation File
/etc/nginx/conf.d
No comments:
Post a Comment