centos7 settings View startup items

1. Check the boot from Kai items
centos7 from the start chkconfig item has not changed:
systemctl List-Unit-Files
left the service name, the right is the state, enabled a boot, disabled is the boot does not start.

Of course, you can also filter such as: View startup items
systemctl list-unit-files | grep enable

2. Set the boot from Kai items
systemctl enable Redis
systemctl enable nginx.service

Start nginx
systemctl Start nginx.service

End nginx
systemctl STOP nginx.service

Restart nginx
systemctl restart nginx.service

Guess you like

Origin www.cnblogs.com/coffee_cn/p/11368293.html