关闭或重新引导Solaris系统

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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值