[Linux] CentOS run level º¯°æ

   Á¶È¸ 5704   Ãßõ 0    

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

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/78
2015-12   1768690   ¹é¸Þ°¡
2014-05   5243391   Á¤ÀºÁØ1
2016-03   9914   ȸ¿øK
2015-12   9922   ¼Ò¸Á»ç¶û71
2019-02   9939   À¸¶óÂ÷Â÷Â÷
2024-01   9961   Á¦°¥±âõ
2018-08   9965   ¿¥ºê¸®¿À
2015-12   9969   ¼Ò¸Á»ç¶û71
2015-12   9977   ¼Ò¸Á»ç¶û71
2015-12   10031   ¼Ò¸Á»ç¶û71
2022-05   10037   ±èÀå¿ì
2018-06   10057   ¹èº´·Ä
2016-03   10060   HEUo±è¿ë¹Î
2016-11   10091   Ȳ¼ºÁø
2018-07   10109   ½Ãµµ´Ï
2016-04   10126   ¹Ú¸í±ÙTN
2024-07   10172   Chobo01
2022-06   10181   »ßµ¹À̽½ÇÄÀÌ
2015-12   10184   ¼Ò¸Á»ç¶û71
2020-10   10189   ÀÌõdz
2018-06   10193   ¹«¾Æ
2024-07   10236   sbg2005