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 [2019/08/29 14:21]
qtwrk
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 LiteSpeed WebServer (LSWS) and LiteSpeed ADC (LSLB).  +This reference lists all of the commands for LiteSpeed WebServer (LSWS) and 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 ''​lsws''​ 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>​
  
-====SysVinit:====+**Note**: For ADC, the command is ''​./​lslbctrl''​. 
 + 
 +====SysVinit====
    
 <​code>​ <​code>​
Line 41: Line 44:
 <​code>​ chkconfig lsws {on|off} </​code>​ <​code>​ chkconfig lsws {on|off} </​code>​
  
-====systemd:====+====systemd====
  
 <​code>​ <​code>​
Line 54: Line 57:
 status ​     - show service status status ​     - show service status
 </​code>​ </​code>​
- 
-**Note**: ''​lsws''​ may vary depends on environment,​ it could also be ''​litespeed''​ or ''​lshttpd'',​ for LiteSpeed ADC, it should be ''​lslb''​ 
  
 To enable auto-start on system boot: To enable auto-start on system boot:
  
 <​code>​systemctl enable lsws</​code>​ <​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 82: 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
  • Admin
  • Last modified: 2020/11/18 15:35
  • by Lisa Clarke