Linux 命令重新启动鱿鱼代理服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5994907/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 00:55:29  来源:igfitidea点击:

Command to restart Squid proxy server?

linuxcommand-linesquid

提问by vincy

What command restarts the Squid proxy server on Linux distros?
I have tried squid restart, is that the correct command?

什么命令在 Linux 发行版上重新启动 Squid 代理服务器?
我试过了squid restart,这是正确的命令吗?

回答by DipSwitch

Most of the time services are started via the init system you can probably restart your service with

大多数情况下,服务是通过 init 系统启动的,您可以使用以下命令重新启动服务

/etc/init.d/squid restart

or on debian / ubuntu you should use the service application

或在 debian / ubuntu 上,您应该使用服务应用程序

service squid restart

or

或者

service squid3 restart

But maybe we should relay on tab completion to auto complete to the proper service:

但也许我们应该中继选项卡完成以自动完成正确的服务:

service squid<TAB> restart