Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:admin:command-reference [2016/07/14 13:27] Jackson Zhang [Control Commands] |
litespeed_wiki:admin:command-reference [2019/08/29 14:21] qtwrk |
||
---|---|---|---|
Line 1: | Line 1: | ||
======Commands Reference====== | ======Commands Reference====== | ||
- | This reference lists all the commands for LSWS and LSLB. | + | 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 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 "lshttpd" with "lslbd". | + | * 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===== | =====Control Commands===== | ||
- | * For LSLB, the command is "lslbctrl" | + | * For LSLB, the command is ''lslbctrl'' |
+ | **/usr/local/lsws/bin/lswsctrl help** -- will list the below options | ||
<code> | <code> | ||
- | /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 21: | Line 21: | ||
</code> | </code> | ||
- | ./lswsctrl start will force communication with LiteSpeed licensing server immediately. | + | ====SysVinit:==== |
<code> | <code> | ||
Line 36: | Line 36: | ||
</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> | ||
+ | |||
+ | **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) | * 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 |
Line 76: | Line 97: | ||
/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 |