iT邦幫忙

0

Change RunLevel in RHEL 7

The RHEL 7 / CentOS 7 comes with systemd (System Management Daemon) which is a init system uses target instade of Runlevel Numbers but the concept is same.

To List all active units/services just run the below command.

# systemctl list-units

Or you can filter the unit list to find targets by using the below command.

# systemctl list-units --type=target

To check currently system is running in which Runlevel by using below command.

# systemctl get-default

Here currently I am in Graphical User Interface (GUI) or Runlevel No. 5. Also you can use the below command to check the current Runlevel.

# runlevel

To Switch the Runlevel to Text mode use the below command.

# systemctl set-default multi-user.target

If you want to switch to GUI from Text Mode you can use the below command.

# systemctl set-default graphical.target

Source : http://www.elinuxbook.com/change-runlevel-in-rhel-7-centos-7-with-systemd-using-systemctl/


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言