VPS侦探论坛

 找回密码
 注册
查看: 5604|回复: 3

LNMP1.8於CentOS8.4不能升級mariadb

[复制链接]
发表于 2021-11-4 02:04:28 | 显示全部楼层 |阅读模式

前一個月以上,我CentOS 8安裝LNMP 1.8都很順利,運行PHP論壇蠻快速

不過這幾天,安裝別台服務器,問題不斷,CentOS 8與CentOS 7試過都一樣,也試過DD乾淨版CentOS7與8,結果還是一樣

我試過不升級mariadb,就安装imageMagick,結果imageMagick安裝失敗

看來碰到No such file or directory 之後的安裝步驟也無法進行了



LNMP 1.8

CentOS 8.4

Vultr 日本區,2GB內存

---------------------------------------
include/mariadb.sh: line 31: /etc/init.d/mariadb: No such file or directory
include/mariadb.sh: line 39: /etc/init.d/mariadb: No such file or directory
include/mariadb.sh: line 42: /usr/local/mariadb/bin/mysqladmin: No such file or directory
include/mariadb.sh: line 44: /etc/init.d/mariadb: No such file or directory
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
failed, try other way...
include/mariadb.sh: line 50: /etc/init.d/mariadb: No such file or directory
include/mariadb.sh: line 59: /usr/local/mariadb/bin/mysql: No such file or directory
Set password failed!
include/mariadb.sh: line 62: /usr/local/mariadb/bin/mysql: No such file or directory
FLUSH PRIVILEGES failed!
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
Update root password...
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Remove anonymous users...
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 761: /usr/local/mariadb/bin/mysql: No such file or directory
... Failed!
include/mariadb.sh: line 88: /etc/init.d/mariadb: No such file or directory
include/upgrade_mariadb.sh: line 209: /etc/init.d/mariadb: No such file or directory
Restore backup databases...
include/upgrade_mariadb.sh: line 212: /usr/local/mariadb/bin/mysql: No such file or directory
Repair databases...
include/upgrade_mariadb.sh: line 214: /usr/local/mariadb/bin/mysql_upgrade: No such file or directory
include/upgrade_mariadb.sh: line 216: /etc/init.d/mariadb: No such file or directory

Starting LNMP...
Starting nginx...  done
Starting php-fpm  done
======== upgrade MariaDB failed ======
upgrade MariaDB log: /root/upgrade_mariadb.log
You upload upgrade_mariadb.log to LNMP Forum for help.


本帖子中包含更多资源

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

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



這幾天安裝lnmp1.8  試過不知多少次了

主要是在阿里雲輕量香港2GB內存主機上,想裝lnmp,之前測好幾次都死在mariadb安裝進度50%左右

後來更換阿里輕量4GB內存主機,才安裝上lnmp 1.8 + CentOS8

這幾天想再次挑戰 阿里輕量2GB內存 能不能裝上lnmp 1.8 + CentOS8 ..... 但是失敗 ..... 會有錯誤 No such file or directory


結果我換原本很好用的Vultr VPS
這次居然lnmp1.8也失敗了


Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-11-4 12:23:08 | 显示全部楼层

查看日志确认为mariadb官网停用了原来的下载地址导致的
编辑 include/upgrade_mariadb.sh 查找 https://downloads.mariadb.org/interstitial/mariadb-${mariadb_version}/source/mariadb-${mariadb_version}.tar.gz 替换为 https://archive.mariadb.org/mariadb-${mariadb_version}/source/mariadb-${mariadb_version}.tar.gz 保存,再删掉 src 下的对应的mariadb版本的.tar.gz 的文件
也可以重新官网下载lnmp安装包

2GB应该是可以安装上的,但是可能会比较慢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-11-6 18:59:10 | 显示全部楼层



LNMP 1.8 安裝完成了
Vultr可以順利安裝

但是阿里輕量2G內存可以先安裝Ngx,PHP8,然後單獨安裝mariadb 10.4可以成功
不過阿里輕量2G內存從mariadb 10.4升級10.5就失敗了,好像是CPU time的問題就死機
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-28 06:07 , Processed in 0.027373 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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