VPS侦探论坛

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

lnmp1.8 mysql安装失败

[复制链接]
发表于 2021-6-18 15:00:43 | 显示全部楼层 |阅读模式

liunx系统 CentOS 8.2 64bit

安装反馈如下(已上传安装日志):
Nginx: OK
Error: MySQL install failed.
PHP: OK
PHP-FPM: OK
Sorry, Failed to install LNMP!

本帖子中包含更多资源

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

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


iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Redirecting to /bin/systemctl reload iptables.service
Add iptables service at system startup...
Add Startup and Starting LNMP...
Add nginx service at system startup...
Synchronizing state of nginx.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /etc/systemd/system/nginx.service.
Add mysql service at system startup...
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
Add php-fpm service at system startup...
Synchronizing state of php-fpm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /etc/systemd/system/php-fpm.service.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-6-18 15:31:05 | 显示全部楼层

● mysql.service - MySQL Community Server
   Loaded: loaded (/etc/systemd/system/mysql.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2021-06-18 15:23:26 CST; 7min ago

Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd[1]: Starting MySQL Community Server...
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd[1]: mysql.service: Control process exited, code=exited status=203
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd[1]: mysql.service: Failed with result 'exit-code'.
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd[1]: Failed to start MySQL Community Server.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-6-18 16:34:11 | 显示全部楼层



以下代码转载:https://bbs.vpser.net/thread-25638-1-1.html
centos 8的cmake是有bug的,包含centos同系oracle linux之类的
你可以执行:cmake --version 看一下是不是报如下错误信息:cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
如果是的话还是论坛里说了N多遍的话退centos保平安,debian不香吗
非要执着的用centos的话自行升级cmake,一块给你附上升级方法:
  1. cd /usr/local/
  2. wget https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-linux-x86_64.tar.gz
  3. tar zxf cmake-3.20.3-linux-x86_64.tar.gz
  4. mv cmake-3.20.3-linux-x86_64 cmake
  5. mv /usr/bin/cmake /usr/bin/cmake.backup
  6. ln -sf /usr/local/cmake/bin/cmake /usr/bin/cmake
复制代码


我安装了cmake安装mysql8.0.25依然不行,安装mysql5.7.34成功了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-6-18 17:00:04 | 显示全部楼层

https://lnmp.org/install.html 官网安装要求里面有说明
“CentOS 8自带cmake有问题,请勿使用该版本或自行升级cmake。”
“MySQL 8.0.24以上版本升级或安装必须Debian 11+,Ubuntu 20.04+,Fedora 33+且必须使用1.8!!!”
安装要求不是上面只贴出的这些,任一条件不满足都不行

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

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

本版积分规则

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

GMT+8, 2024-11-24 16:46 , Processed in 0.028436 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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