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.
$ 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.