kafka 命令重新启动
When you’re in the same room as a server, shutting it down or rebooting it is simple. You could hold the power button or even unplug the whole machine. Not only are these solutions inelegant, they have the potential to corrupt your data and potentially damage your hardware! They also don’t work when you’re logged into your favorite remote server.
当您与服务器位于同一房间时,关闭或重新启动它很简单。 您可以按住电源按钮,甚至拔下整个机器的电源。 这些解决方案不仅笨拙,而且还可能破坏您的数据并可能损坏您的硬件! 当您登录到喜欢的远程服务器时,它们也不起作用。
Depending on your hosting provider, you very well may have a nice GUI interface at your disposal, completely with a shiny red button to shutdown or reboot the machine. It’s a sufficient solution, but doesn’t necessarily scale across different hosting providers.
根据主机提供商的不同,您可能会拥有一个不错的GUI界面,完全带有一个闪亮的红色按钮来关闭或重新启动计算机。 这是一个足够的解决方案,但不一定跨不同的托管服务提供商扩展。
Knowing how to do things on the command-line allows you to be as stack agnostic as possible. You can switch easily between hosting providers and always have the same consistent set of tools at your disposal. This flexibility comes in extra handy when you’re working with a brand new stack that you’re not familiar with.
知道如何在命令行上执行操作可以使您尽可能地与堆栈无关。 您可以在托管服务提供商之间轻松切换,并始终拥有相同的一致工具集。 当您使用不熟悉的全新堆栈时,这种灵活性特别方便。
入门 (Getting started)
The commands discussed in this article, shutdown</