Squid's powerful and flexible cross-platform caching proxy server is one of the best solutions in its field. Thanks to its open source and free software, Squid today runs on a huge number of computers connected to the Internet. To permanently or temporarily change the operating parameters, it is sometimes necessary to restart Squid.
Necessary
root credentials
Instructions
Step 1
Start a terminal emulator or switch to a text console. If the work is carried out in any graphical environment (KDE, Gnome, etc.), shortcuts for emulators can be found in the main menu of the shell. If you can't find them, try using the application launcher functionality, also available from this menu. If there are no suitable programs, install them using, for example, Synaptic.
If you will not be using a terminal emulator in a graphical environment, switch to a text console. To do this, press one of the keyboard shortcuts Ctrl + Alt + F1- Ctrl + Alt + F12.
Step 2
Start a root user session. In a terminal emulator, run the su command. Then enter the root credentials (in both the graphical and text-based console).
Step 3
Query the current status of the squid daemon. Enter the command:
service squid status
Analyze the displayed text. A message like squid is running indicates that the squid service is running. The squid is stopped text says that the proxy server is not running, and the service: squid: Unrecognized service line will appear if Squid is simply not installed.
If Squid is installed but does not work, start it with the command:
service squid start
If you need to install this software, please use Synaptic or the package manager apt-get. Install from the command line with the command:
apt-get install squid
Step 4
Restart Squid with default parameters. Run the command:
service squid restart
Wait for the restart process to complete.
Step 5
If the purpose of the restart is to change Squid's execution options, determine how long it should run with the new options. If the new parameters are to be in effect permanently, edit the squid.conf configuration file and restart in the manner described in the fourth step.
If you need to make a short start of the proxy server with changed parameters, stop it with the command:
service squid stop
Print help for Squid command line options:
squid -h
Start the server from the console by setting the required options on the command line.