Welcome! Log In Create A New Profile

Advanced

Debian Linux Nginx web server.

Posted by Russell1 
Debian Linux Nginx web server.
January 23, 2021 11:44AM
Have downloaded and installed the Nginx web server on my Debian version 9 ( Stretch ) Linux virtual machine. Initially, after typing in the following command, I received an error message that the web server failed to start:

$ sudo systemctl start nginx

After searching the Internet, I realized that the "nginx.service" file was missing under my "/etc/systemd/system" directory, so I created this file. I also realized that the "nginx.pid" file was missing under my "/run" directory, so I created this file as well. After typing the above-given Linux "systemctl" command again, I noticed that the "nginx.pid" file was missing from my "/run" directory. What am I doing wrong? What do I need to do to successfully start my Linux Nginx web server? Please see the attached files for additional information.
Attachments:
open | download - tempsnip_Linux_nginx_1.png (118.4 KB)
open | download - tempsnip_Linux_nginx_2.png (186 KB)
open | download - tempsnip_Linux_nginx_3.png (152.8 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready