Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

New acquaintance with Linux, simple configuration

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

For beginners, it is best to turn off the firewall and selinux after the operating system is installed. Today, I will briefly show you how to configure it.

Various unit types of systemd

Sysvinit run level

Several common types of control

Start (startup): run the specified system service program to realize the service function

Stop (stop): terminates the specified system service program and shuts down the corresponding function

Restart (restart): exit first, and then rerun the specified system service program

Reload (overload): does not quit the service program, but just refreshes the configuration, which is the same as restart in some services

Status (View status): view the running status and related information of the specified system service

View the target of the system

Because I am a graphic character switch, I can switch between init 3 and 5 3.

[root@centos ~] # init 0 / / shut down the current system

[root@centos ~] # init 6 / / restart the current system

Or

[root@centos ~] # systemctl poweroff / / shut down the current system

[root@centos ~] # systemctl reboot / / restart the current system

Use the systemctl tool

Systemctl control options common options for service names are as follows:

Enable: power on and start automatically

Disable: power on and shut down automatically

Is-enable: check boot status

[root@centos ~] # systemctl enable service name

[root@centos ~] # systemctl disable service name

[root@centos ~] # systemctl is-enable service name

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report