Solaris is usually used as a server operating system. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn’t any data loss.
Solaris通常用作服务器操作系统。 因此,您需要确保尽可能优雅地关闭系统,以确保没有任何数据丢失。
For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d to gracefully shut down the service.
对于服务器上安装的每个应用程序,应确保在/etc/rc(x).d中具有正确的脚本以正常关闭服务。
ShutdownYou have more than one command option that you can use. The best command is this, executed as root:
关掉 您可以使用多个命令选项。 最好的命令是这样,以root身份执行:
shutdown -y -i5 -g0
关闭-y -i5 -g0
This will immediately shut the system down. You can also use the older command that still works:
这将立即关闭系统。 您还可以使用仍然有效的旧命令:
sync;sync;init 5
同步;同步;初始化5
You can even use:
您甚至可以使用:
poweroff
断电
RebootIf you are trying to reboot the system as opposed to turning it off, you could use:
重新引导如果您尝试重新引导系统而不是将其关闭,则可以使用:
shutdown -y -i6 -g0
关闭-y -i6 -g0
Or:
要么:
sync;sync;init 6
同步;同步;初始化6
Or even:
甚至:
reboot
重启
So many commands to do the same thing… almost seems silly.
这么多命令来做同样的事情……似乎很愚蠢。
翻译自: https://www.howtogeek.com/howto/solaris/shut-down-or-reboot-a-solaris-system/