Start / Stop / Restart Lighttpd Web Server

https://w‮‬ww.lautturi.com
Start / Stop / Restart Lighttpd Web Server

To start, stop, or restart the Lighttpd web server on a FreeBSD system, you can use the service command. The syntax for the service command is:

service lighttpd [start|stop|restart]

Replace [start|stop|restart] with the desired action: start to start the Lighttpd server, stop to stop the Lighttpd server, or restart to stop and then start the Lighttpd server.

For example, to start the Lighttpd server, you can run the following command:

service lighttpd start

To stop the Lighttpd server, you can run the following command:

service lighttpd stop

To restart the Lighttpd server, you can run the following command:

service lighttpd restart

Note that the service command only works if the Lighttpd server is set up to start automatically at boot time. To configure the Lighttpd server to start automatically at boot time, you can add the following line to the /etc/rc.conf file:

lighttpd_enable="YES"

For more information about the service command and managing services on FreeBSD, you can refer to the service man page by running man service on the command line.

Created Time:2017-10-30 14:27:20  Author:lautturi