One problem description
An error is reported when executing systemctl enable httpd:
[root@Centos7-Mode-V7 apache]# systemctl enable httpd
httpd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig httpd on
service httpd does not support chkconfig
Two solutions
Modify /etc/rc.d/init.d/httpd and add after #!/bin/sh:
# chkconfig: 2345 85 15
Shell script mode:
#In the second line add# chkconfig: 2345 85 15 can be:
sed -i '2i # chkconfig: 2345 85 15' /etc/rc.d/init.d/httpd