I just compiled the latest version of Nginx on Ubuntu 15.10 and installed it using
dpkg -i nginx_1.9.15-1_amd64.deb
However, the systemd service script was not created so nginx is not running. How exactly do I do this and what are the proper steps to install nginx after self-compiling so that all of the necessary files are present and in their proper locations?
Thanks!
Have a look at my tutorial. Here's how I build and install Nginx and a few modules. The key part for you is "make install".
Do not compile nginx yourself unless you absolutely must. In your case there are two possibilities:
Use NGINX Mainline PPA.
To use PPA, execute commands:
Since 1.9.11 Nginx supports dynamic modules and they have nginx-module-perl.
To use nginx's official repository create file
/etc/apt/sources.list.d/nginx.list
with following lines (wily
is codename for Ubuntu 15.10):and execute commands: