Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:admin:command-reference [2016/07/14 13:36]
Jackson Zhang [License Commands]
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"​ +
-**/​usr/​local/​lsws/​bin/​lswsctrl help** ​ -- will list the below options+
 <​code>​ <​code>​
 Usage: ./lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help} Usage: ./lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help}
Line 21: 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 36: Line 39:
  
 </​code>​ </​code>​
 +
 +To enable auto-start on system boot:
 +
 <​code>​ chkconfig lsws {on|off} </​code>​ <​code>​ chkconfig lsws {on|off} </​code>​
 +
 +====systemd====
 +
 +<​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===== =====License Commands=====
Line 59: Line 85:
  
 =====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 74: 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