Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:admin:command-reference [2015/07/27 20:00]
Michael Alegre created
litespeed_wiki:admin:command-reference [2019/09/24 15:31]
Jackson Zhang [Commands Reference]
Line 1: Line 1:
 ======Commands Reference====== ======Commands Reference======
-This reference lists all the commands for LSWS and LSLB.  +This reference lists all of the commands for LiteSpeed WebServer (LSWSand LiteSpeed Web ADC (ADC).  
-     ​For LSWSassume it's installed under /​usr/​local/​lsws/​ + 
-     * For LSLB, assume it's installed under /​usr/​local/​lslb/​, the commands are same as LSWS, you can just replace "​lshttpd"​ with "​lslbd"​.+**Note**: LiteSpeed Web ADC was previously known as LiteSpeed Load Balancerhence the ''​lslb''​ references throughout.  
 + 
 +By default, the commands covered here can be found in ''/​usr/​local/​lsws/​bin/''​ for LSWS and in ''/​usr/​local/​lslb/​bin/''​ for ADC
  
 =====Control Commands===== =====Control Commands=====
-    * For LSLB, the command is "​lslbctrl"​+
 <​code>​ <​code>​
-cd /​usr/​local/​lsws 
-bin/​lswsctrl help  -- will list the below options 
 Usage: ./lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help} Usage: ./lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help}
  
Line 22: Line 22:
 </​code>​ </​code>​
  
-./lswsctrl start will force communication with LiteSpeed licensing server immediately.+**Note**: For ADC, the command is ''​./lslbctrl''​. 
 + 
 +====SysVinit====
    
 <​code>​ <​code>​
Line 37: Line 39:
  
 </​code>​ </​code>​
 +
 +To enable auto-start on system boot:
 +
 <​code>​ chkconfig lsws {on|off} </​code>​ <​code>​ chkconfig lsws {on|off} </​code>​
  
-=====License Commands=====+====systemd====
  
-  cd /usr/local/lsws+<​code>​ 
 +systemctl {start|restart|stop|reload|condrestart|try-restart|status} lsws  
 + 
 +start       - start web server 
 +stop        - stop web server 
 +restart ​    - gracefully restart web server with zero down time 
 +reload ​     - same as restart 
 +condrestart - gracefully restart web server if server is running 
 +try-restart - same as condrestart 
 +status ​     - show service status 
 +</code> 
 + 
 +To enable auto-start on system boot: 
 + 
 +<​code>​systemctl enable lsws</code> 
 + 
 +**Note**: The ''​lsws''​ parameter used with ''​systemctl''​ may vary depending on the environment. It may also be ''​litespeed''​ or ''​lshttpd''​. For Web ADC, use ''​lslb''​. 
 + 
 +=====License Commands=====
  
    * Register a new license key (-r)    * Register a new license key (-r)
  
-  bin/lshttpd -r+  ​/​usr/​local/​lsws/​bin/lshttpd -r
  
    * Test current license locally (-t)    * Test current license locally (-t)
  
-  bin/lshttpd -t+  ​/​usr/​local/​lsws/​bin/lshttpd -t
  
    * Verify current license against license server (-V). This Command will force communication with LiteSpeed licensing server immediately.    * Verify current license against license server (-V). This Command will force communication with LiteSpeed licensing server immediately.
  
-  bin/lshttpd -V+  ​/​usr/​local/​lsws/​bin/lshttpd -V
  
    * Migrate current license (-m)    * Migrate current license (-m)
  
-  bin/lshttpd -m+  ​/​usr/​local/​lsws/​bin/lshttpd -m
  
  
  
 =====Misc Commands===== =====Misc Commands=====
-    * If you forgot ​your admin web console login, you can reset your password from command line+    * If you forget ​your admin web console login, you can reset your password from the command line
  
     /​usr/​local/​lsws/​admin/​misc/​admpass.sh     /​usr/​local/​lsws/​admin/​misc/​admpass.sh
Line 77: Line 100:
  
     /​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v <​version>​     /​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v <​version>​
 +
 +  * Force re-install/​update to a specific version and build
 +
 +    /​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v <​version>​ -b <build number>
  
   * Install/​Uninstall startup script   * Install/​Uninstall startup script
  • Admin
  • Last modified: 2020/11/18 15:35
  • by Lisa Clarke