lnmp1.6安装失败
# sh -x install.sh lnmp+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
+ export PATH
++ id -u
+ '[' 0 '!=' 0 ']'
++ pwd
+ cur_dir=/root/scripts/lnmp1.6
+ Stack=lnmp
+ '[' lnmp = '' ']'
+ Stack=lnmp
+ LNMP_Ver=1.6
+ ./lnmp.conf
+ . include/main.sh
++ DB_Info=('MySQL 5.1.73' 'MySQL 5.5.62' 'MySQL 5.6.44' 'MySQL 5.7.26' 'MySQL 8.0.13' 'MariaDB 5.5.63' 'MariaDB 10.0.38' 'MariaDB 10.1.40' 'MariaDB 10.2.24' 'MariaDB 10.3.15')
++ PHP_Info=('PHP 5.2.17' 'PHP 5.3.29' 'PHP 5.4.45' 'PHP 5.5.38' 'PHP 5.6.40' 'PHP 7.0.33' 'PHP 7.1.30' 'PHP 7.2.19' 'PHP 7.3.6')
++ Apache_Info=('Apache 2.2.34' 'Apache 2.4.39')
+ . include/init.sh
+ . include/mysql.sh
+ . include/mariadb.sh
+ . include/php.sh
+ . include/nginx.sh
+ . include/apache.sh
+ . include/end.sh
+ . include/only.sh
+ . include/multiplephp.sh
include/multiplephp.sh: line 203: `Install_MPHP5.2': not a valid identifier
这是-x 执行结果,开始的时候还有个错误报 lnmp.conf 找不到,然后我手动在哪一行加了 ./现在剩下另一个问题,谁能告诉我怎么回事?
脚本是用bash编写的
sh不一定是bash还可能是dash或其他,语法都不有差异,bash写的必须要bash才行 licess 发表于 2019-11-12 16:32
脚本是用bash编写的
sh不一定是bash还可能是dash或其他,语法都不有差异,bash写的必须要bash才行 ...
好的,谢谢.我再试试
页:
[1]