[Linux] CentOS run level º¯°æ

   Á¶È¸ 5355   Ãßõ 0    

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

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 22/77
2015-12   1489666   ¹é¸Þ°¡
2014-05   4953152   Á¤ÀºÁØ1
2019-09   4652   µö·¯´×¼­¹ö
2019-09   4569   µö·¯´×¼­¹ö
2019-09   6241   µö·¯´×¼­¹ö
2019-09   7340   µö·¯´×¼­¹ö
2019-09   4747   ±¤Áֱ¸®
2019-09   5523   µö·¯´×¼­¹ö
2019-09   4217   ¹«¾Æ
2019-09   3532   FOXBI
2019-09   5529   µö·¯´×¼­¹ö
2019-09   6096   µö·¯´×¼­¹ö
2019-09   5429   ½ºÄµl¹ÎÇö±â
2019-09   6132   µö·¯´×¼­¹ö
2019-09   5406   À¯Á¤È£»þÄÜ´À
2019-09   5531   µö·¯´×¼­¹ö
2019-09   4800   ±èȲÁß
2019-09   5447   µö·¯´×¼­¹ö
2019-08   6951   ¾Óµå·¹ÁØ
2019-08   5284   µö·¯´×¼­¹ö
2019-08   5356   µö·¯´×¼­¹ö
2019-08   4228   Á¦°¥±âõ