Install Arch Linux:
1st command to install nginx server in your machine. following the command below:
$ sudo pacman -S nginx
2nd Command to enable nginx server on your Machine OS System. Following The command below:
$ sudo systemctl enable nginx
3rd command to start the nginx server on your local machine. Following the Command Below:
$ sudo systemctl start nginx
4th command to check the status on nginx server on your machine. Following the command Below:
$ sudo systemctl status nginx
5th command if you want to ensure nginx server do run on your machine: Go to web browser and try to this link: 127.0.0.1:80 or localhost:80
6th command if you want to check nginx version on your Machine. Try this command below:
$ nginx -v
7th Command if you anto to test nginx service on your machine: Try this command Below:
$ sudo nginx -t
8th command if you want to edit configuration on nginx server. check this command below:
$ sudo vim /etc/nginx/nginx.conf
Save and exit command on vim
:wq!
if you have use nano command line editor:
$ sudo nano /etc/nginx/nginx.conf
save and exit(ctrl+x, y, enter)
9th command if you want to reload nginx server. Try this command below:
$ sudo systemctl reload nginx
10th Command if you want to stop nginx server. Try this command below:
$ sudo systemctl stop nginx


No comments:
Post a Comment