VPS侦探论坛

 找回密码
 注册
查看: 118|回复: 1

CentOS8.1在安装LNMP1.7后mariadb10.2.32无法启动

[复制链接]
发表于 2020-6-5 15:27:19 | 显示全部楼层 |阅读模式



本帖最后由 Jeremy 于 2020-6-5 15:29 编辑

操作系统:CentOS 8.1.1911 x86_64
LNMP: lnmp1.7-full.tar.gz  md5正常
附件只能上传89KB的文件压缩日志还有202kB
上传最后一部分
Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Failed to set locale, defaulting to C.UTF-8
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 - Base - mirrors.aliyun.com             15 kB/s | 3.9 kB     00:00   
CentOS-8 - Extras - mirrors.aliyun.com           22 kB/s | 1.5 kB     00:00   
CentOS-8 - AppStream - mirrors.aliyun.com       2.8 MB/s | 4.3 kB     00:00   
Extra Packages for Enterprise Linux 8 - x86_64  1.9 MB/s | 4.7 kB     00:00   
Package iptables-services-1.8.2-16.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
Redirecting to /bin/systemctl reload iptables.service
iptables.service is not active, cannot reload.
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.
Starting nginx...  done
Add mariadb service at system startup...
Synchronizing state of mariadb.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable mariadb
Starting mariadb (via systemctl):  Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
[FAILED]
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.
Starting php-fpm  done
============================== Check install ==============================
Checking ...
Nginx: OK
MariaDB: OK
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V1.7 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /home/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password: Yaoling                          |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 4435) is running...
php-fpm is runing!
ERROR! MariaDB is not running, but lock file (/var/lock/subsys/mysql) exists
State    Recv-Q    Send-Q        Local Addressort        Peer Addressort   
LISTEN   0         128                 0.0.0.0:80               0.0.0.0:*      
LISTEN   0         128                 0.0.0.0:80               0.0.0.0:*      
LISTEN   0         128                 0.0.0.0:22               0.0.0.0:*      
LISTEN   0         128                    [::]:22                  [::]:*      
Install lnmp takes 57 minutes.
Install lnmp V1.7 completed! enjoy it.


在日志最后看到是 /var/lock/subsys/mysql,删除此文件无用

查看 journalctl -xe 如下
-- mariadb.service 单元已开始启动。
6月 05 15:24:44 nextcloud mariadb[1705]: Starting MariaDB.200605 15:24:44 mysqld_safe Adding '/usr/lib/li>
6月 05 15:24:44 nextcloud mariadb[1705]: 200605 15:24:44 mysqld_safe Logging to '/usr/local/mariadb/var/m>
6月 05 15:24:44 nextcloud mariadb[1705]: 200605 15:24:44 mysqld_safe Starting mysqld daemon with database>
6月 05 15:24:45 nextcloud mariadb[1705]: /etc/init.d/mariadb: 第 265 行:kill: (1824) - 没有那个进程
6月 05 15:24:45 nextcloud mariadb[1705]:  ERROR!
6月 05 15:24:45 nextcloud systemd[1]: mariadb.service: Control process exited, code=exited status=1
6月 05 15:24:45 nextcloud systemd[1]: mariadb.service: Failed with result 'exit-code'.
6月 05 15:24:45 nextcloud systemd[1]: Failed to start MariaDB Server.
-- Subject: mariadb.service 单元已失败




再查看 /etc/init.d/mariadb 中256行

   if $bindir/mysqladmin ping >/dev/null 2>&1; then
      log_success_msg
      return 0
    elif kill -0 $! ; then
      :  # mysqld_safe is still running
    else


感觉好像是这个启动文件有问题



美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-6-5 20:04:42 | 显示全部楼层


上面贴出的信息没有有用信息,按反馈必读要求上传一下安装日志和mariadb日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2020-7-11 15:02 , Processed in 0.050181 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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