LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-26-2008, 07:17 PM   #1
LaoTzu
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
FC6 service command and nginx


I am on FC6. Initially I used yum to install nginx. It works fine except that it picked up an older version. I wanted the latest version, so I compiled it with the latest nginx source. By default, it installs nginx in /usr/local/nginx. Unfortunately, I can't start nginx with the service command, I have to start it by typing out the whole path to the nginx executable, /usr/local/nginx/sbin/nginx. When I used yum, I could use the service command to start nginx. Is there a way for me to install nginx so that I can use the service command? I am guessing that yum puts the exes in a common location so that service can pick it up but I can't find where that location is.
 
Old 02-27-2008, 07:33 AM   #2
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
You need to create/replace script in /etc/init.d for controlling Nginx. This article might be helpful for you: http://blog.labratz.net/articles/200...ongrel-cluster

well, just for info, for what purpose, you're using Nginx? simple webserver or as load balancer?

Regards,
 
Old 02-27-2008, 11:10 AM   #3
LaoTzu
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
That doesn't help me adapt nginx to use the service command though, right? Like
"service nginx start", "service nginx stop", "servie nginx restart", etc.

I am using nginx as webserver and load balancer talking to a mongrel cluster. I have been using Apache up until now but it is a memory hog. I am seeing significant reduction in memory usage by nginx so far.
 
  


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
FC6 2.6.18.1 telnet server error: Name or service not known: Illegal seek rylan76 Linux - Server 3 08-30-2010 09:01 PM
LXer: How To Install A Complete LEMP (Linux - EngineX (Nginx HTTP SERVER) - Mysql - P LXer Syndicated Linux News 0 10-19-2007 08:00 PM
LXer: Nginx HTTP Server + PHP5 (With fast-cgi And xcache) On Ubuntu Feisty Fawn LXer Syndicated Linux News 0 10-10-2007 06:30 PM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
nginx documentation ?? ciscohead Linux - Software 0 01-02-2005 11:36 AM

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

All times are GMT -5. The time now is 11:53 AM.

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