1.查看开机自启项 centos7自启项已不用chkconfig改为: systemctl list-unit-files 左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动