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.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay