LNMP1.8於CentOS8.4不能升級mariadb
前一個月以上,我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-fpmdone
======== upgrade MariaDB failed ======
upgrade MariaDB log: /root/upgrade_mariadb.log
You upload upgrade_mariadb.log to LNMP Forum for help.
這幾天安裝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也失敗了
查看日志确认为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应该是可以安装上的,但是可能会比较慢 LNMP 1.8 安裝完成了
Vultr可以順利安裝
但是阿里輕量2G內存可以先安裝Ngx,PHP8,然後單獨安裝mariadb 10.4可以成功
不過阿里輕量2G內存從mariadb 10.4升級10.5就失敗了,好像是CPU time的問題就死機
页:
[1]