lnmp1.8 mysql安装失败
liunx系统 CentOS 8.2 64bit安装反馈如下(已上传安装日志):
Nginx: OK
Error: MySQL install failed.
PHP: OK
PHP-FPM: OK
Sorry, Failed to install LNMP!
iptables: Saving firewall rules to /etc/sysconfig/iptables:
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.
● 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: Starting MySQL Community Server...
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd: mysql.service: Control process exited, code=exited status=203
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd: mysql.service: Failed with result 'exit-code'.
Jun 18 15:23:26 iZ8vb6emo7uk28qn77k3rrZ systemd: Failed to start MySQL Community Server.
以下代码转载: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,一块给你附上升级方法:
cd /usr/local/
wget https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-linux-x86_64.tar.gz
tar zxf cmake-3.20.3-linux-x86_64.tar.gz
mv cmake-3.20.3-linux-x86_64 cmake
mv /usr/bin/cmake /usr/bin/cmake.backup
ln -sf /usr/local/cmake/bin/cmake /usr/bin/cmake
我安装了cmake安装mysql8.0.25依然不行,安装mysql5.7.34成功了。 https://lnmp.org/install.html 官网安装要求里面有说明
“CentOS 8自带cmake有问题,请勿使用该版本或自行升级cmake。”
“MySQL 8.0.24以上版本升级或安装必须Debian 11+,Ubuntu 20.04+,Fedora 33+且必须使用1.8!!!”
安装要求不是上面只贴出的这些,任一条件不满足都不行
页:
[1]