This is an old revision of the document!


Commands Reference

This reference lists all the commands for LSWS and LSLB. Since most of them are license related, so we put in the license section.

  • 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, the command is “lslbctrl”
cd /usr/local/lsws
bin/lswsctrl help  -- will list the below options
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
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
 chkconfig lsws {on|off} 
  • Force re-install/update
/usr/local/lsws/admin/misc/lsup.sh -f -v <version>
cd /usr/local/lsws
  • Register a new license key (-r)
bin/lshttpd -r
  • Test current license locally (-t)
bin/lshttpd -t
  • Verify current license against license server (-V)
bin/lshttpd -V
  • Migrate current license (-m)
bin/lshttpd -m
  • 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>
  • Admin
  • Last modified: 2015/03/09 15:37
  • by Jackson Zhang