安装phpstudy报错提示“install.sh: line 156: tar: command not found”
在Anolis OS 8.4中安装phpstudy 过程中显示报错如下,提示没有安装成功
install.sh: line 156: tar: command not found install.sh: line 200: /usr/local/phpstudy/system/phpstudyctl: No such file or directory install.sh: line 203: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 204: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 205: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 206: /usr/local/phpstudy/system/phpstudy: No such file or directory chmod: cannot access '/www': No such file or directory chown: cannot access '/www': No such file or directory =================安装完成================== 请用浏览器访问面板: 外网:http://:/ 内网:http://:/ 系统初始账号:admin 系统初始密码:EGAsShN5UK 官网:https://www.xp.cn 如果使用的是云服务器,请至安全组开放9080端口 如果使用ftp,请开放21以及30000-30050端口 =========================================== install.sh: line 336: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 337: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 338: /usr/local/phpstudy/system/phpstudy: No such file or directory install.sh: line 339: /usr/local/phpstudy/system/phpstudy: No such file or directory
通过排查,发现这是由于我之前安装的是最小化安装的AnolisOS,需要安装一下tar
yum install tar -y
安装好tar重新再次运行phpstudy安装命令后成功安装。