我试图在我的php脚本中运行一个shell_exec命令。当我在虚拟机上使用相同的命令测试我的代码时,它运行得很好,但是当我在服务器上传输相同的代码时,它就没有了。我使用的虚拟机只是服务器的副本,在将代码集成到我的主计算机之前,我使用它来测试我的代码。我甚至双倍地检查了赋予文件的权限,它们都是相同的。else if($_POST['processtype'] == "server"){{
#--Fetching data from
在引用"man ls“之后,它显示"ls -Z”可以显示安全上下文: Display security context so it fits on most displays. Displays only mode, user, group, security context and file name.[root@localhost ~]# ls -Z
-rw-------. root root system_u:object_r:admin_home_t:s0 anaconda-ks