关于 centos7 软件自启动

当使用chkconfig时会显示一下的内容,标绿的字体时告诉你尽量使用systemctl这个命令。chkonfig将要淘汰。

[root@liuquanbo local]# chkconfig --list |grep docker.service

Note: This output shows SysV services only and does not include native

systemd services. SysV configuration data might be overridden by native

systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.

To see services enabled on particular target use

'systemctl list-dependencies [target]'.

使用systemctl命令:

systemctl list-unit-files:查看软件开机自启情况

systemctl enable httpd 使httpd开机自启

猜你喜欢

转载自blog.csdn.net/weixin_41436549/article/details/82183348