Maison > php教程 > PHP开发 > le corps du texte

Linux基本命令-注销、关机、重启

高洛峰
Libérer: 2016-12-17 16:32:16
original
1239 Les gens l'ont consulté

  一、注销,关机,重启 
   
  注销系统的logout命令 
   
  1,Logout 注销是登陆的相对操作,登陆系统后,若要离开系统,用户只要直接下达logout命令即可: 
   
  [root@localhost root]#logout 
   
  Red Hat Linuxrelease 9(Shike) 
   
  Kernel 2.4.20.8 on an i686 
   
  Login: ← 回到登陆的画面 
   
  2,关机或重新启动的shutdown命令 
   
  Shutdown命令可以关闭所有程序,依照用户的需要,重新启动或关机。 
   
  参数说明如下: 
   
  l 立即关机:-h 参数让系统立即关机。范例如下: 
   
  [root@localhost root]#shutdown –h now ← 要求系统立即关机 
   
  l 指定关机时间:time参数可指定关机的时间;或设置多久时间后运行shutdown命令,范例如下: 
   
  [root@localhost root]#shutdown now ← 立刻关机 
   
  [root@localhost root]#shutdown +5 ← 5分钟后关机 
   
  [root@localhost root]#shutdown 10:30 ← 在10:30时关机 
   
  l 关机后自动重启:-r 参数设置关机后重新启动。范例如下: 
   
  [root@localhost root]#shutdown -r now ← 立刻关闭系统并重启 
   
  [root@localhost root]#shutdown -r 23:59 ← 指定在23:59时重启动 
   
  3,重新启动计算机的reboot命令 
   
  顾名思义,reboot命令是用来重新启动系统的。常用的参数如下: 
   
  l -f 参数:不依正常的程序运行关机,直接关闭系统并重新启动计算机。 
   
  l -I 参数:在在重新启动之前关闭所有网络接口。 
   
  虽然reboot命令有个参数可以使用,但是一般只需要单独运行reboot命令就可以了



    更多Linux基本命令-注销、关机、重启相关文章请关注PHP中文网!

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!