As I was revisiting my notes about Linux processes I decided to post this about a simple setup for a Nginx server from my Kali Linux Virtual Machine.
Prerequisites
- Have a virtualised environment i.e Virtual Box and your preferred Virtual OS, I am using Kali Linux on my Oracle Virtualbox.
- A command line interface/terminal.
- Sudo access(never run your services as root.
Check if NGINX is installed
kali> sudo apt list ¦ grep -t nginx
If not available, download using
kali>sudo apt-get install nginx
Find the running processes
a= all processes, u=user that it belongs to, x=processes not executed
kali> sudo ps -aux
Find if nginx is up and running
kali > sudo ps -aux ¦ grep nginx
Start up the nginx server
kali> sudo systemctl start nginx
Review if your nginx server is up and running
kali> sudo systemctl status nginx
Review if your nginx server is up and running on a tab
First get your machine's ip address
kali> sudo ip address
-Paste your ip address on a terminal and search it, if the page is up and running, it will display a generic welsome page.
Stop up the nginx server
kali> sudo systemctl stop nginx
That's it, look up for more updates as I learn how to launch more complex servers.
Top comments (0)