Linux Disabling Squid Proxy Server

Q. How do I disable Squid Proxy Serer under CentOS Linux operating system so that I can directly connect to the internet?

A. To disable squid proxy server or service you need to type the following command as the root user.
[a] chkconfig command – provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating thenumerous symbolic links in those directories.
[b] service command – start / stop / restart or run a System V init script or services such as httpd or squid.

Task: Stop Squid

Type the following command:
# service squid stop
OR
# /etc/init.d/squid stop
To turn off service on boot, enter:
# chkconfig squid stop
You may also need to disable http_proxy variable by editing shell startup files. At shell prompt enter:
export http_proxy=
You need to edit GUI browser Internet settings to disable proxy access.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one

CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • mastiya Jul 28, 2010 @ 8:52

    what if i disable squid on server, will it slowdown my website?

  • Hassan Ammar Mar 9, 2015 @ 12:27

    chkconfig squid off

  • ghmm Oct 15, 2015 @ 3:09

    /usr/sbin/squid -k shutdown

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @ webmaster@cyberciti.biz