centos7 modify the default run level changes

In learning centos7, centos6 used in video teaching, the command to view the permission file is cat /etc/inittab/

But this happens when entering the following command in centos7

This is no longer needed. Now the command to modify permissions is modified as follows: systemctl set-default TARGET.target

View the current runlevel

Of course, you can also switch the runlevel in the current terminal: init N

Finally, attach a run level table

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325282910&siteId=291194637