CentOS 7 boot the system and service control process (c) (System Services Control Part)

VIII. The system control service

1. Common mode control type and

QQ picture 20190823174809.png

2. Check the operation of the system level

image.png

Use the init command to change run levels

image.png

  image.png

  

    4. Use the tools systemctl

Systemctl isolate graphical.target equivalent command init 5

image.png


Command systemctl isolate multi.user.target    equivalent to init 3

image.png

5. Review the default boot the system run level

systemctl   get-default

image.png


6. Modify the default boot runlevel

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

image.png


7. Review the service network port is currently running

netstat    -ntap

image.png

8. Check Services pseudo-terminal

Command ntsysv enter a space control whether check TAB to confirm the cancel button below

image.png


9. View the status of system services start

systemctl  is-enabled

image.png


10. Modify the service operating status

systemctl enable/disable 服务

QQ picture 20190824093521.png



Guess you like

Origin blog.51cto.com/14469918/2432169