操作部署某个环境的时候使用的是CentOS7版本,在需要启动httpd服务的时候惯性的使用service httpd start命令,提示有"/bin/systemctl start httpd.service"问题。
当然,为了兼容性,我们原来习惯使用的service命令在CentOS7中仍然是可以使用的,它会重定向命令到新的systemctl工具命令。
第一、启动、终止、重启
操作部署某个环境的时候使用的是CentOS7版本,在需要启动httpd服务的时候惯性的使用service httpd start命令,提示有"/bin/systemctl start httpd.service"问题。
当然,为了兼容性,我们原来习惯使用的service命令在CentOS7中仍然是可以使用的,它会重定向命令到新的systemctl工具命令。
第一、启动、终止、重启