百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> 安装VestaCP导致MySQL无法启动的解决办法
分享文章到:

安装VestaCP导致MySQL无法启动的解决办法

发布时间:01/15 来源: 浏览: 关键词:
Vestacp除了为我们搭建网站提供简洁易用的管理面板外,还为我们提供了免费邮局功能和VPS性能监控,帮助我们更好地管理VPS服务器,但就是这个东西让我的mysql无法启动了,那么要怎么解决因安装VestaCP导致MySQL无法启动问题,具体步骤如下

问题描述

使用官方命令(如何安装)安装VestCP遇到如下错误

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h 16 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems at http://bugs.mysql.com/

update-rc.d: using dependency based boot sequencing
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
Error: mysql start failed

使用service mysql restart命令重启MySQL发现如下错误,

[ ok ] Stopping MySQL database server: mysqld.
[....] Starting MySQL database server: mysqld/usr/sbin/mysqld: error while loading shared libraries: libcrypt.so.1: cannot map zero-fill pages: Cannot allocate memory
[ .k
[info] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..

[ ok ] Stopping MySQL database server: mysqld.
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

解决过程

进入MySQL的错误日志(默认目录/var/log/mysql/error.log或到MySQL配置文件中查看/etc/mysql/my.cnf)

发现如下错误记录

InnoDB: Error: pthread_create returned 11

于是断定是InnoDB引起的,使用如下命令解决

ulimit -s unlimited

问题解决,当然,本文的问题同样可以用禁用innodb(如果不需要该功能)的方法解决。

如果你也是在安装VestaCP的时候遇到同样的问题,那么问题已经解决,可以继续(强制)安装VestaCP了

bash vst-install-debian.sh --force

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有4人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板