traffic_ctl command not found

In this troubleshooting guide we learn how to fix traffic_ctl command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

traffic_ctl: command not found

or when using sudo you get the following error message

sudo: traffic_ctl: command not found

Solutions to traffic_ctl: command not found

How To Fix traffic_ctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu traffic_ctl is provided by trafficserver package.

trafficserver is:

This package provides the Apache Traffic Server, a fast, scalable reverse proxy server which may operate as forward proxy as well. Apache Traffic Server supports:

  • Caching: improve response time while reducing server load and bandwidth needs by caching and reusing frequently-requested web pages, images, and web service calls.
  • Proxying: add keep-alive, filter or anonymize content requests, or add load balancing by adding a proxy layer.
  • Scaling: handle 10s of thousands of requests per second on modern SMP hardware.
  • Extensions: use the API to do anything from modifying HTTP headers to handling ESI requests to writing your own cache algorithm.

To fix this problem, we can install more using the command below.

sudo apt-get -y install trafficserver

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install trafficserver.

sudo apt -y install trafficserver

Or if you have aptitude installed you can use the following command.

sudo aptitude install trafficserver

Summary

In this tutorial we learn how to fix traffic_ctl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.