centos7
设置开机启动
systemctl enable httpd.service
查看服务是否开机自启动
systemctl list-unit-files | grep httpd
开机自启动的文件放在了/etc/systemd/system/multi-user.target.wants目录下
centos7
设置开机启动
systemctl enable httpd.service
查看服务是否开机自启动
systemctl list-unit-files | grep httpd
开机自启动的文件放在了/etc/systemd/system/multi-user.target.wants目录下