Home >

LunaSH Command Reference Guide > LunaSH Commands > webserver > webserver enable

webserver enable

Enable the REST API service. After enabling the service, use “service start webserver” to start the service.

Syntax

webserver enable [-force]

Option    Shortcut   Description
-force   -f   Force the action without prompting - useful for scripting.

Example

lunash:>webserver enable -force

Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]

Command Result : 0 (Success)