VPS侦探论坛

 找回密码
 注册
查看: 1918|回复: 4

lnmp1.8 重新安装错误!

[复制链接]
发表于 2022-6-27 16:23:47 | 显示全部楼层 |阅读模式



背景:
去年安装的1.8版本,最近发现mysql无法启动,一直提示MySQL server PID file could not be found!

然后网上找了不少教程修复,结果全部都没用。mysql一直无法启动。然后就备份了nginx,mysql等配置文件,运行uninstall.sh执行了卸载操作


重新安装(重新安装之前都会使用uninstall.sh进行反安装)了三次。。安装结果都出现相同的错误!
------------------------------
中间执行过下面帖子的帮助
LNMP安装失败,nginx、mysql、php全部失败 - Powered by Discuz! (vpser.net)

-----------------------------

Checking ...
Nginx: OK
Error: MySQL install failed.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-27 19:56:32 | 显示全部楼层


MySQL server PID file could not be found!
提示这个很多可能原因,如果安装成功了,按反馈必读要求提供mysql日志信息

[ 40%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc.cc.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
。。。。。。
/root/lnmp1.8/src/php-7.4.21/Zend/zend_execute.c:3235:42: warning: ‘seen_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   } else if (needs_coercion && seen_type != ZEND_TYPE_CODE(prop->type)) {
                                          ^
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

你的vps只有512MB内存是不够用的,MySQL是无法编译安装的,lnmp 1.9上可用选择mysql 5.7的二进制但是运行起来这个内存也不够流畅,小内存只能选择尽量低的mysql版本和php版本
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-27 20:57:15 | 显示全部楼层

主要是我去年安装没问题,运行也没问题。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-28 12:00:20 | 显示全部楼层



syntaxs 发表于 2022-6-27 20:57
主要是我去年安装没问题,运行也没问题。

那你检查一下你系统上是否有其他在运行的比较占内存的程序
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-28 13:29:41 | 显示全部楼层

licess 发表于 2022-6-28 12:00
那你检查一下你系统上是否有其他在运行的比较占内存的程序

因为我这台主机主要功能是FRP内网穿透的外网IP。。除了frp和lnmp没有安装其他任何东西。
所以我上午尝试把系统重新做了一下,仍然是centos7.9,仍然使用lnmp1.8进行安装,j结果仍然失败,所以我认为你的判断是对的,很可能确实是内存的问题。
最后我按照你给的建议,我把MYSQL降到5.5.62版重新安装成功!
感谢军哥!

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 13:36 , Processed in 0.027437 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表