How To Install thttpd on CentOS 7

In this tutorial we learn how to install thttpd on CentOS 7. thttpd is A tiny, turbo, throttleable lightweight HTTP server

Introduction

In this tutorial we learn how to install thttpd on CentOS 7.

What is thttpd

Thttpd is a very compact no-frills httpd serving daemon that can handle very high loads. While lacking many of the advanced features of Apache, thttpd operates without forking and is extremely efficient in memory use. Basic support for cgi scripts, authentication, and ssi is provided for. Advanced features include the ability to throttle traffic.

We can use yum or dnf to install thttpd on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install thttpd.

Install thttpd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install thttpd using yum by running the following command:

sudo yum -y install thttpd

Install thttpd on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install thttpd using dnf by running the following command:

sudo dnf -y install thttpd

How To Uninstall thttpd on CentOS 7

To uninstall only the thttpd package we can use the following command:

sudo dnf remove thttpd

References

Summary

In this tutorial we learn how to install thttpd on CentOS 7 using yum and dnf.