DEV Community

Msaghu
Msaghu

Posted on

2 1

HOW TO START AND STOP A NGINX SERVER FROM MY KALI LINUX VM

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

  1. Have a virtualised environment i.e Virtual Box and your preferred Virtual OS, I am using Kali Linux on my Oracle Virtualbox.
  2. A command line interface/terminal.
  3. 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.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook