hostigation.com的OpenVZ,Memory:128 MB,Burst:256 MB,安装AMH2.0出错。
今天双11,AMH放出了新的版本,官方介绍新版本可以用在128的小内存VPS上面,就拿Hostigation来测试了一下,系统为Debian 6.0 32bit。
1 |
wget http://amysql.com/file/AMH/2.0/amh.sh; chmod 775 amh.sh; ./amh.sh; |
之后输入密码等待了一段时间 最后显示:
=============================================================
[LNMP/Nginx] Amysql Host – AMH 2.0http://Amysql.com
[OK] Nginx stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
=============================================================
[LNMP/Nginx] Amysql Host – AMH 2.0http://Amysql.com
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
MySQL server PID file could not be found! … failed![OK] MySQL stop
/etc/init.d/amh-start: line 11: /proc/sys/vm/drop_caches: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
=============================================================
[LNMP/Nginx] Amysql Host – AMH 2.0http://Amysql.com
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Starting MySQL.The server quit without updating PID file (/usr/local/mysql/data/test.pid). … failed!
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
=============================================================
[LNMP/Nginx] Amysql Host – AMH 2.0http://Amysql.com
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/usr/local/sbin/redhat.init: line 12: /etc/rc.d/init.d/functions: No such file or directory
Starting pure-config.pl: Running: /usr/local/sbin/pure-ftpd –daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -lunix -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z
touch: cannot touch `/var/lock/subsys/pure-config.pl’: No such file or directoryshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
=============================================================
[LNMP/Nginx] Amysql Host – AMH 2.0http://Amysql.com
/etc/init.d/amh-start: line 18: /proc/sys/vm/drop_caches: Permission denied
================================================================
[AMH] Congratulations, AMH 2.0 install completed.
AMH Management: http://127.0.0.2
206.253.165.****:8888
User:admin
Password:******
MySQL Password:************* SSH Management *******
Host: amh host
PHP: amh php
Nginx: amh nginx
MySQL: amh mysql
FTP: amh ftp
Backup: amh backup
Revert: amh revert
Info: amh info******* View dirs *******
WebSite: /home/wwwroot
Nginx: /usr/local/nginx
PHP: /usr/local/php
MySQL: /usr/local/mysql
MySQL-Data: /usr/local/mysql/dataStart time: Sun Nov 11 00:14:01 CST 2012
Completion time: Sun Nov 11 00:28:33 CST 2012
more help please visit:http://amysql.com
================================================================
然后登录IP:8888出现错误提示:
1 |
[Amysql-Notice] Access denied for user 'root'@'localhost' (using password: YES) Mysql链接出错,请配置/Amysql/config.php文件。# |
经过查看确定/Amysql/config.php文件配置无误
在/usr/local/mysql/data找到错误日志test.err,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
121111 00:23:32 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:23:32 InnoDB: The InnoDB memory heap is disabled 121111 0:23:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:23:32 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:23:32 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:23:32 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:23:32 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended 121111 00:28:32 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:28:32 InnoDB: The InnoDB memory heap is disabled 121111 0:28:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:28:32 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:28:32 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:28:32 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:28:32 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended 121111 00:36:13 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:36:13 InnoDB: The InnoDB memory heap is disabled 121111 0:36:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:36:13 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:36:13 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:36:13 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:36:13 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended 121111 00:36:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:36:24 InnoDB: The InnoDB memory heap is disabled 121111 0:36:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:36:24 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:36:24 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:36:24 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:36:24 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended 121111 00:36:32 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:36:32 InnoDB: The InnoDB memory heap is disabled 121111 0:36:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:36:32 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:36:32 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:36:32 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:36:32 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended 121111 00:44:18 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 121111 0:44:18 InnoDB: The InnoDB memory heap is disabled 121111 0:44:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121111 0:44:18 InnoDB: Compressed tables use zlib 1.2.3.4 121111 0:44:18 InnoDB: Initializing buffer pool, size = 142.0M 121111 0:44:18 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 121111 00:44:18 mysqld_safe mysqld from pid file /usr/local/mysql/data/test.pid ended |
通过查看日志得到信息:
1 |
InnoDB: Error: pthread_create returned 11 |
然后修改/etc/my.cnf
[mysqld]添加
1 2 |
default-storage-engine=MyISAM loose-skip-innodb |
amh mysql重启MYSQL,可以正常启动,但是web访问8888后台 还是出现