assuming you have the example running from example folder in the standard 
distribution by doing java -jar start.jar 

this is what I did to get the same running as a service 

download the jetty distribution (I used 6.1.21) 

copy the bin folder over to example 
copy etc\jetty-win32-service.xml to example\etc 
copy lib\win32 folder over to example\lib 

in example\bin\jetty-service.conf 
add this after wrapper.java.additional.2=-Djetty.logs=../logs 
wrapper.java.additional.3=-Dsolr.solr.home=../solr 

in example\solr\conf 
change this line 
<dataDir>${solr.data.dir:./solr/data}</dataDir> 
to 
<dataDir>${solr.data.dir:../solr/data}</dataDir> 
(double .. instead of single . before /solr ) 

then as administrator from cmd prompt 
in the bin folder do 

Jetty-Service.exe --install jetty-service.conf 
net start jetty6-service 

HTH 
Ron 

----- Original Message ----- 
From: "Roland Villemoes" <r...@alpha-solutions.dk> 
To: solr-user@lucene.apache.org 
Sent: Friday, 5 February, 2010 6:07:03 PM 
Subject: SV: Running Solr (LucidWorks) as a Windows Server 

Hi All, 

Thanks a lot for your help in this. 

I have tried to use the Win32Wrapper, and the Jetty-Service.exe but still no 
success. 
I was actually hoping the some of you guys out there actually had a running 
copy so I could so how to configure it? 

Looks like it must go the Tomcat way... 

Roland 

-----Oprindelig meddelelse----- 
Fra: Ron Chan [mailto:rc...@i-tao.com] 
Sendt: 5. februar 2010 12:55 
Til: solr-user@lucene.apache.org 
Emne: Re: Running Solr (LucidWorks) as a Windows Server 

jetty can be run as a Windows Service, see 

http://docs.codehaus.org/display/JETTY/Win32Wrapper 


----- Original Message ----- 
From: "Roland Villemoes" <r...@alpha-solutions.dk> 
To: solr-user@lucene.apache.org 
Sent: Thursday, 4 February, 2010 7:18:57 PM 
Subject: Running Solr (LucidWorks) as a Windows Server 

Hi, 

I need to have Solr/Jetty running as a Windows Service. 
I am using the Lucid distribution. 

Does anyone have a running example and tool for this? 


med venlig hilsen/best regards 


Reply via email to