A
A
Anatoly2017-10-16 16:47:52
Nginx
Anatoly, 2017-10-16 16:47:52

For some reason, “service nginx start” does not work (Collected Nginx from source)?

OS Debian 7.11 amd64 / Nginx 1.12.1
With a standard install, apt-get install nginx
service nginx start
works great! But as soon as I build from source, I get the message:
nginx: unrecognized service
Build process in short:
cd ~
rm -r ~/nginx-1.12.1
wget nginx.org/download/nginx-1.12.1.tar.gz
tar xfz nginx -1.12.1.tar.gz
cd nginx-1.12.1
apt-get install build-essential libpcre++-dev zlib1g-dev libssl-dev libgeoip-dev gcc make checkinstall libgd2-noxpm-dev
./configure --prefix=/etc/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/ nginxinx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --user=nginx --group=nginx - -with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --with-http_sub_module --with-http_v2_module
checkinstall

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2017-10-16
@Tolly

You don't have an init script in /etc/init.d
Get it here

Z
zooks, 2017-10-16
@zooks

Because in the case of building nginx, you need to run it with a version number.
service nginx-1.12 start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question