LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2013, 02:21 AM   #1
phumy
LQ Newbie
 
Registered: Aug 2012
Location: Viet Nam
Posts: 4

Rep: Reputation: Disabled
Cannot stop nginx service on windows


Hi,

I installed nginx on windows and starting nginx sucessfuly. But when i issued "nginx -s reload", i saw this line:

"nginx: [error] CreateFile() "c:\nginx-1.4.2/logs/nginx.pid" failed (2: The syste
m cannot find the file specified)"

And then I cannot stop nginx service ( i tried restart, shutdown windows, remove nginx folder ... ).

Any help will be greatly appreciated !
 
Old 08-07-2013, 03:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by phumy View Post
"nginx: [error] CreateFile() "c:\nginx-1.4.2/logs/nginx.pid" failed (2: The system cannot find the file specified)"
I'm not a windows man in any way, but the forward slashes look wrong. Windows uses backslashes (\) and unix/linux use forward slashes (/).

If that isn't the issue: Although LQ users might be familiar with Windows, this is a Linux board. Maybe you should post this question on a Windows dedicated board.

EDIT: Just dug up these 2 links:
- nginx for Windows
- How to install Nginx in Windows

Last edited by druuna; 08-07-2013 at 08:15 AM. Reason: typo: baord -> board.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
puppet needs to stop a service, do something, then start the service edwardcode Programming 1 12-03-2012 01:58 PM
Web service and reverse proxy with the speedy nginx jeremy LQ Articles Discussion 0 02-23-2010 04:42 PM
start und stop windows service using nagios cccc Debian 1 03-11-2008 07:43 AM
FC6 service command and nginx LaoTzu Linux - Server 2 02-27-2008 11:10 AM
How to stop Iptables service? Infernal211283 Slackware 5 08-02-2006 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration