我正在使用centos 6.9,并希望安装xampp。但当我在终端上运行该命令时,它显示错误,即无法执行二进制文件。那么,如何解决这个问题并成功安装xampp呢?请帮帮我。
chmod +x xampp-linux-x64-7.0.22-0-installer.run
./xampp-linux-x64-7.0.22-0-installer.run 在这个命令之后,它显示了
bash: ./xampp-linux-x64-7.0.22-0-installer.run: cannot execute binary file发布于 2018-03-05 22:54:20
您可能正在使用较低权限的用户运行安装(二进制)。您必须使用根用户来修改SELinux设置,如下所示:
semanage fcontext -a -t httpd_sys_script_exec_t '/<install-location>(/.*)/?'
restorecon -R -v /<install-location>/https://stackoverflow.com/questions/45936693
复制相似问题