Ã÷È·LinuxϵͳÖвî±ðµÄÖØÆô·½·¨
ÎÊÌ⣺ÉîÈë̽ÌÖLinuxϵͳÖеÄÖØÆô·½·¨¼°´úÂëʾÀý
ÔÚLinuxϵͳÖУ¬ÖØÆôÊÇÒ»ÖÖ³£¼ûµÄ²Ù×÷£¬¿ÉÒÔͨ¹ý²î±ðµÄ·½·¨À´ÊµÏÖÖØÆô£¬°üÀ¨Ê¹ÓÃÏÂÁîÐлòÕßͨ¹ýͼÐνçÃæ¡£±¾ÎĽ«ÉîÈë̽ÌÖLinuxϵͳÖвî±ðµÄÖØÆô·½·¨£¬²¢ÌṩÏêϸµÄ´úÂëʾÀý£¬×ÊÖú¶ÁÕ߸üºÃµØÃ÷È·ºÍʹÓÃÕâЩÊÖÒÕ¡£
1. ʹÓÃÏÂÁîÐÐÖØÆôLinuxϵͳ
1.1. ʹÓÃrebootÏÂÁîÖØÆôϵͳ
ÔÚLinuxϵͳÖУ¬¿ÉÒÔʹÓÃrebootÏÂÁîÀ´Ö´ÐÐÖØÆô²Ù×÷£¬¸ÃÏÂÁîºÜÊǼòÆÓ£¬Ö»ÐèÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁî¼´¿É£º
sudo reboot
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁî»áÏòϵͳ·¢³öÖØÆôÐźţ¬²¢ÔÚÍê³ÉÐëÒªµÄÕûÀí²Ù×÷ºóÖØÐÂÆô¶¯ÏµÍ³¡£
1.2. ʹÓÃshutdownÏÂÁîÖØÆôϵͳ
ÁíÒ»ÖÖ³£¼ûµÄÖØÆô·½·¨ÊÇʹÓÃshutdownÏÂÁ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîʵÏÖϵͳÖØÆô£º
sudo shutdown -r now
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁî»áÁ¬Ã¦¹Ø±Õϵͳ²¢ÖØÆô¡£ÈôÊÇÄãÏëÒªÑÓ³ÙÖØÆôʱ¼ä£¬¿ÉÒÔÌí¼ÓÒ»¸öʱ¼ä²ÎÊý£¬ÀýÈ磺
sudo shutdown -r +5
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁÔÚ5·ÖÖÓºóÖØÆôϵͳ¡£
2. ʹÓÃͼÐνçÃæÖØÆôLinuxϵͳ
³ýÁËÏÂÁîÐз½·¨Í⣬ͼÐνçÃæÒ²ÌṩÁËÖØÆôϵͳµÄÑ¡Ïͨ³££¬ÔÚ×ÀÃæÇéÐεIJ˵¥ÖлáÓÐÒ»¸ö¡°¹Ø»ú¡±Ñ¡Ïµã»÷ºó»áÏÔʾ¹Ø»ú¡¢ÖØÆôµÈÑ¡ÏѡÔñÖØÆô¼´¿ÉʵÏÖϵͳµÄÖØÆô²Ù×÷¡£
3. ÆäËûÖØÆô·½·¨
3.1. ʹÓÃsystemctlÏÂÁî
systemctlÊÇÒ»¸öÓÃÓÚÖÎÀíϵͳЧÀ͵Ť¾ß£¬Ò²¿ÉÒÔÓÃÀ´ÖØÆôϵͳ¡£Í¨¹ýÒÔÏÂÏÂÁî¿ÉÒÔÖØÆôϵͳ£º
sudo systemctl reboot
µÇ¼ºó¸´ÖÆ
3.2. ʹÓÃinitÏÂÁî
Ôھɰ汾µÄLinuxϵͳÖУ¬¿ÉÒÔʹÓÃinitÏÂÁîÀ´ÖØÆôϵͳ£¬ÈçÏÂËùʾ£º
sudo init 6
µÇ¼ºó¸´ÖÆ
½áÓï
ͨ¹ý±¾ÎĵÄÏÈÈÝ£¬ÎÒÃÇÉîÈë̽ÌÖÁËLinuxϵͳÖвî±ðµÄÖØÆô·½·¨£¬²¢ÌṩÁËÏêϸµÄ´úÂëʾÀý¡£ÎÞÂÛÊÇͨ¹ýÏÂÁîÐС¢Í¼ÐνçÃ棬ÕÕ¾ÉʹÓÃsystemctlºÍinitÏÂÁ¶¼¿ÉÒÔÇáËÉʵÏÖϵͳµÄÖØÆô²Ù×÷¡£Ï£Íû¶ÁÕßͨ¹ý±¾ÎĵÄÄÚÈÝÄܹ»¸üºÃµØÃ÷È·ºÍÕÆÎÕLinuxϵͳÖеÄÖØÆôÊÖÒÕ¡£
ÒÔÉϾÍÊÇÃ÷È·LinuxϵͳÖвî±ðµÄÖØÆô·½·¨µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡