Start / Stop / Restart Lighttpd Web Server

in Categories , , , , , last updated September 8, 2016

How do I start / stop or restart lighttpd web server under Linux / UNIX operating systems?

Most Linux distro includes lighttpd control script. Try following as per your distribution / UNIX version.

CentOS / Fedora / RHEL Linux – Start lighttpd

# /etc/init.d/lighttpd start
OR systemd based CentOS/RHEL 7.x & Fedora Linux latest:
# systemctl start lighttpd

CentOS / Fedora / RHEL Linux – Stop lighttpd

# /etc/init.d/lighttpd stop
OR systemd based CentOS/RHEL 7.x & Fedora Linux latest:
# systemctl stop lighttpd

CentOS / Fedora / RHEL Linux – Restart lighttpd

# /etc/init.d/lighttpd restart
OR systemd based CentOS/RHEL 7.x & Fedora Linux latest:
# systemctl restart lighttpd

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 3 comments/add one below):

3 comment

    Have a question? Post it on our forum!