Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8275479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:05:20+00:00 2026-06-08T08:05:20+00:00

My nginx was compile from the source, only give the flag that –conf-path=/etc/nginx/nginx.conf Everything

  • 0

My nginx was compile from the source, only give the flag that --conf-path=/etc/nginx/nginx.conf

Everything works and I was trying to use this service init.d script to make nginx as a system service,

Here’s the script that I made only 2 minor changes:

1. DAEMON=/usr/local/nginx/sbin/nginx

2.NGINX_CONF_FILE="/etc/nginx/nginx.conf"

then sudo service nginx start

it works

yozloy@SNDA-172-17-10-158:/usr/local$ sudo service nginx start
 * Starting Nginx Server...
   ...done

.

but service nginx stop and service nginx reload

give me a error

yozloy@SNDA-172-17-10-158:/usr/local$ sudo service nginx stop
 * Stopping Nginx Server...
   ...fail!

and the error doesn’t appear on the log/error.log file

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:05:22+00:00Added an answer on June 8, 2026 at 8:05 am

    I’ve had similar problems with Nginx on Ubuntu 12.04, with nginx compile from source and init script taken from a similar source as yours.

    Service started well with the init file, but stop or restart didn’t.
    In the end the cause was a different path to the pid file in the nginx.conf and the init script.
    Make sure they both point to the same location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that nginx does not support chunked requests well. But I'm trying to
Does NGINX or Apache benefit from a server that has either: Multi-cores, or Multiple
I want Nginx to log requests that start with /path to a certain log
When configuring nginx with a site that has ssl, the examples I find online
I'm working with a source base written almost entirely in straight-c (nginx). It does,
in nginx conf file,i use: location ~ \.jsp { proxy_pass http://127.0.0.1:86; } to parse
I'm using nginx with this script as FastCGI wrapper, that I start with: spawn-fcgi
nginx is handling all static page requests, but from within my fastcgi application I
I have nginx receiving POST requests and a tiny PHP script that puts request
Yet another nginx redirect question. I've been trying to redirect domain.com/blog/post-1 , /blog/post-2 to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.