关闭或重新引导Solaris系统

本文介绍如何在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/

您可能感兴趣的与本文相关的镜像

Wan2.2-T2V-A5B

Wan2.2-T2V-A5B

文生视频
Wan2.2

Wan2.2是由通义万相开源高效文本到视频生成模型,是有​50亿参数的轻量级视频生成模型,专为快速内容创作优化。支持480P视频生成,具备优秀的时序连贯性和运动推理能力

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值