./include/memory.sh: line 46: `Make-swapfile': not a valid identifier

问答中心分类: Linux./include/memory.sh: line 46: `Make-swapfile': not a valid identifier
匿名用户 asked 8 年 ago

3. Install MySQL-5.5
4. Install MariaDB-10.1
5. Install MariaDB-10.0
6. Install MariaDB-5.5
7. Install Percona-5.7
8. Install Percona-5.6
9. Install Percona-5.5
Please input a numberDefault 2 press Enter) 2
Please input the root password of database: ryXn1mLcC1MN

Do you want to install PHP? [y/n]: y

Please select a version of the PHP:
1. Install php-5.3
2. Install php-5.4
3. Install php-5.5
4. Install php-5.6
5. Install php-7
Please input a numberDefault 3 press Enter) 2

Do you want to install opcode cache of the PHP? [y/n]: y
Please select a opcode cache of the PHP:
1. Install Zend OPcache
2. Install XCache
3. Install APCU
4. Install eAccelerator-1.0-dev
Please input a numberDefault 1 press Enter) 1

Do you want to install ionCube? [y/n]: y

Do you want to install ImageMagick or GraphicsMagick? [y/n]: y
Please select ImageMagick or GraphicsMagick:
1. Install ImageMagick
2. Install GraphicsMagick
Please input a numberDefault 1 press Enter) 1

Do you want to install Pure-FTPd? [y/n]: n

Do you want to install phpMyAdmin? [y/n]: y

Do you want to install redis? [y/n]: y

Do you want to install memcached? [y/n]: y

Do you want to use jemalloc or tcmalloc optimize Database and Web server? [y/n]: y
Please select jemalloc or tcmalloc:
1. jemalloc
2. tcmalloc
Please input a numberDefault 1 press Enter) 1

Do you want to install HHVM? [y/n]: n
./include/memory.sh: line 46: `Make-swapfile': not a valid identifier

3 Answers

Best Answer

oneinstack answered 6 年 ago
#注:请勿sh install.sh或者bash install.sh这样执行

oneinstack answered 8 年 ago
后面红色字体不看的?
#注:请勿sh install.sh或者bash install.sh这样执行

123456 answered 6 年 ago
vi /include/memory.sh这个文件,把Make-swapfile这个函数改个名字就行
Make-swapfile这个定义的函数名出现了特殊字符无法解析改Makeswapfile就可以跑通,作者估计改错了