[Linux] CentOS run level º¯°æ

   Á¶È¸ 5369   Ãßõ 0    

http://ehostidc.co.kr/center/EH050402.php?no=177716&page=6&choose=tit¡¦ (300)
https://blog.naver.com/goethe1/221607503878 (324)

CentOS 6 이하 버전과 CentOS 7 버전의 run level 변경 방법

A. CentOS 6 이하 버전

/etc/inittab 의 ID 만 변경

B. CentOS 7

1. /etc/inittab 내용

[root@logserver ~]# cat /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses "targets" instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target


1. 현재 run level 확인

[root@logserver ~]# systemctl get-default

multi-user.target


2. run level 변경

run level 5로 변경

[root@logserver ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.


run level 3 으로 변경

[root@logserver ~]# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.


3. 즉시 run level 변경

[root@logserver ~]# systemctl isolate multi-user.target







https://www.aiocp.co.kr/ ( 딥러닝,머신러닝 서버 판매 ,컨설팅) https://bigbangcloud.co.kr/ ( GPU 클라우드 서비스) ::: AI 서버의 모든것 ::: 인공지능의 시작~ (주)이호스트ICT
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


PDS
Á¦¸ñPage 23/77
2014-05   4968761   Á¤ÀºÁØ1
2015-12   1505086   ¹é¸Þ°¡
2016-07   19140   QS¿ÕÅëÅ°¼Õ¡¦
2009-02   19113   ±è¹«°Ç
2016-06   19061   ¸¼Àº¿©¸§
2013-12   19026   ȲÁø¿ì
2009-02   19009   TSHA
2010-12   19001   À̽¿±
2016-08   18989   ±èÁø¿µJK
2014-02   18959   sauoory
2016-09   18958   ¹Î¿í´Ô
2013-10   18953   ȸ¿øK
2010-07   18946   ¹Ú¿ì¿­
2009-07   18910   ¸ù¸ù
2012-05   18892   ¹é³²¾ï
2011-06   18888   À嵿°Ç2014
2009-03   18869   °­Å¿í
2012-07   18861   ¹Ú¹®Çü
2016-08   18821   ĵÀ§µå
2010-01   18810   ´Ù·ÕÀÌ
2022-06   18766   »ßµ¹À̽½ÇÄÀÌ
2011-05   18756   ÀüÁ÷P¿¬±¸¿ø