禁用 shell_exec 后如何在脚本中判断某 systemctl 自定义服务是否开启
centos7,apache中php网站需要在网站后台界面上提示某systemctl自定义服务是否开启,不想开启shell_exec,用什么方法能实现在脚本中判断某服务是否开启?
推荐文章: