本帖最后由 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然后出現(xiàn)的界面中選擇 [YES]或[NO] ,然后選擇[NO]就能正確運(yùn)行了。 會出現(xiàn)以下結(jié)果
出現(xiàn)結(jié)果: 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 |