In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Purpose
Because the graphical interface takes up more resources, in order not to waste resources in the deployment, we usually use the command line interface, and use the command startx to switch to the graphical interface if necessary.
two。 View / etc/inittab file, cat / etc/inittab
[root@zabbix-elk ~] # 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 # Command Line Interface
# graphical.target: analogous to runlevel 5 # graphical interface
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#
3. View the current default mode
Use the command: systemctl get-default View
[root@zabbix-elk ~] # systemctl get-default
Multi-user.target
[root@zabbix-elk ~] #
4. Set the default mode
Use command: systemctl set-default TARGET.target to set the default mode
Systemctl set-default multi-user.target
Systemctl set-default graphical.target
[root@zabbix-elk ~] # 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.
[root@zabbix-elk ~] # 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.
5. Restart verification
Switch from command line mode to graphical interface to run the command: startx
The graphical interface is switched to the command line interface using: CTRL+ALT+F3
Switch from the command line interface to the graphical interface using: CTRL+ALT+F5
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.