本帖最后由 glire 于 2017-7-17 18:02 编辑
安装wdCP v3正式版 sh lanmp.sh 命令无效,怎么解决?
localhost@-min:~/wdcp# sh lanmp.sh
lanmp.sh: 47: lib/common.conf: function: not found
lanmp.sh: 71: lib/common.conf: Syntax error: "}" unexpected
解决方法:
在终端中输入: sudo dpkg-reconfigure dash然后出现的界面中选择 [YES]或[NO] ,然后选择[NO]就能正确运行了。 会出现以下结果
出现结果: Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash |