In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
In redhat7, the concept of "run level" is no longer available. Linux systems have to do a lot of initialization work when starting up, such as mounting file systems and swap partitions, starting various process services, and so on, which can be regarded as a Unit. Systemd replaces the concept of run level in System V init with target. The difference is as follows:
Init runlevel systemd target name function 0runlevel0.target-poweroff.target shutdown 1runlevel1.target-rescue.target single user mode 2runlevel2.target-multi-user.target equivalent to level 33runlevel3.target-multi-user.target multi-user text interface 4runlevel4.target-multi-user.target equivalent to level 35runlevel5.target-graphical.target multi-user image interface 6runlevel6.target-reboot.target restart emergencyemergency.target emergency shell
If you need to change the default running target of the system to "multi-user, no graphics" mode, you can directly use the ln command to connect the multi-user mode target file to the / etc/systemd/system/ directory:
Ln-sf / lib/systemd/system/multi-user.target / etc/systemd/system/default.target
Use the systemctl command to manage services on redhat7, commonly used commands:
Command action systemctl start foo.service startup service systemctl stop foo.service stop service systemctl restart foo.service restart service systemctl reload foo.service reload configuration file systemctl status foo.service view service status systemctl enable foo.service boot self-start systemctl disable foo.service boot non-self-start systemctl is-enabled foo.service check whether the service is boot self-start systemctl list-unit-files-- type=service to view the startup and prohibition of services at all levels
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.