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
litespeed_wiki:admin:command-reference [2019/08/29 14:21]
qtwrk
litespeed_wiki:admin:command-reference [2020/11/18 15:35] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-======Commands Reference====== +~~REDIRECT>https://docs.litespeedtech.com/products/lsadc/commands/~~
-This reference lists all the commands for LiteSpeed WebServer (LSWS) and LiteSpeed ADC (LSLB).  +
-     * For LSWS, assume 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''​. +
- +
-=====Control Commands===== +
-    * For LSLB, the command is ''​lslbctrl''​ +
-**/​usr/​local/​lsws/​bin/​lswsctrl help** ​ -- will list the below options +
-<code> +
-Usage./lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help} +
- +
-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 +
-help        - this screen +
- +
-</code> +
- +
-====SysVinit:​==== +
-  +
-<​code>​ +
-service lsws {start|restart|stop|reload|condrestart|try-restart|status|help} +
- +
-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 +
-help        - this screen +
- +
-</​code>​ +
- +
-To enable auto-start on system boot: +
- +
-<​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>​ +
- +
-**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: +
- +
-<​code>​systemctl enable lsws</​code>​ +
- +
-=====License Commands===== +
- +
-   * Register a new license key (-r) +
- +
-  /​usr/​local/​lsws/​bin/​lshttpd -r +
- +
-   * Test current license locally (-t) +
- +
-  /​usr/​local/​lsws/​bin/​lshttpd -t +
- +
-   * Verify current license against license server (-V)This Command will force communication with LiteSpeed licensing server immediately. +
- +
-  ​/usr/local/lsws/bin/lshttpd -V +
- +
-   * Migrate current license (-m) +
- +
-  /​usr/​local/​lsws/​bin/​lshttpd -m +
- +
- +
- +
-=====Misc Commands===== +
-    * If you forgot your admin web console login, you can reset your password from command line +
- +
-    /​usr/​local/​lsws/​admin/​misc/​admpass.sh +
- +
-   * Check version +
- +
-    /​usr/​local/​lsws/​bin/​lshttpd -v +
- +
-   * Switch version +
- +
-    /​usr/​local/​lsws/​admin/​misc/​mgr_ver.sh <​version>​ +
-  +
-  * Force re-install/​update +
- +
-    /​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 +
- +
-    /​usr/​local/​lsws/​admin/​misc/​rc-inst.sh +
-    /​usr/​local/​lsws/​admin/​misc/​rc-uninst.sh ​   ​+
  • Admin
  • Last modified: 2019/08/29 14:21
  • by qtwrk