LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > command line to check litespeed is running or not

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2012, 12:14 PM
oginome oginome is offline
New Member
 
Join Date: Aug 2010
Posts: 6
Default command line to check litespeed is running or not

hi, how to check if the running webserver is litespeed or apache by command line?

Thx. Thx.
Reply With Quote
  #2  
Old 07-02-2012, 06:16 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
#netstat -ntlp

to check which process is listen to port 80
Reply With Quote
  #3  
Old 07-04-2012, 11:24 AM
oginome oginome is offline
New Member
 
Join Date: Aug 2010
Posts: 6
Quote:
Originally Posted by NiteWave View Post
#netstat -ntlp

to check which process is listen to port 80
Thx.
But it just list the IPs. All program names are blank (just hyphen).
Any other hint? Thx.
Reply With Quote
  #4  
Old 07-04-2012, 11:46 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
what OS and version are your running?
Reply With Quote
  #5  
Old 07-04-2012, 11:50 AM
oginome oginome is offline
New Member
 
Join Date: Aug 2010
Posts: 6
Quote:
Originally Posted by webizen View Post
what OS and version are your running?
CentOS.
It's the VPS at the hosting. I can use whm to check it.
But I want a cronjob to check it regularly.
Now I'm using ps -e | grep "litespeed"
Is it enough to determine if litespeed is running?
Deeply thx.
Reply With Quote
  #6  
Old 07-04-2012, 12:09 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
For CentOS, you can do
Quote:
netstat -ntpl | grep ':80 '
or
ps -ef | grep litespeed
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:52 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.