在虚拟机上安装宝塔面板,因为不能直接复制代码,于是手工输入:

    yum install -y wget && wget -o install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

报错如下:
loaded plugins:fastestmirror
loading mirror speeds from cached hostfile
base:mirrors.cn99.com
extras:mirrors.aliyun.com
updates:mirrors.aliyun.com
package wget-1.14-18.e17_6.1.x86_64 already installed and latest version
nothing to do
install.sh:line 1:--2020-02-29:command not found
install.sh:line 2:syntax error near unexpected token "("
install.sh:line 2:resolving download.bt.cn

折腾好长时间都没解决,突然想到Linux对大小写敏感(我是个刚入Linux门的菜鸟),而这代码里有个“o”,一般是看不出来大小写
3sfTzQ.jpg

于是把o改成

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

OK!
醉了。

Last modification:February 29th, 2020 at 01:37 pm
如果觉得我的文章对你有用,请随意赞赏