CentOS8.1在安装LNMP1.7后mariadb10.2.32无法启动
本帖最后由 Jeremy 于 2020-6-5 15:29 编辑操作系统:CentOS 8.1.1911 x86_64
LNMP: lnmp1.7-full.tar.gzmd5正常
附件只能上传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_641.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:
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.
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-fpmdone
============================== Check install ==============================
Checking ...
[0;32mNginx: OK[0m
[0;32mMariaDB: OK[0m
[0;32mPHP: OK[0m
[0;32mPHP-FPM: OK[0m
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 Address:Port Peer Address:Port
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.
在日志最后看到是 /var/lock/subsys/mysql,删除此文件无用
查看 journalctl -xe 如下
-- mariadb.service 单元已开始启动。
6月 05 15:24:44 nextcloud mariadb: Starting MariaDB.200605 15:24:44 mysqld_safe Adding '/usr/lib/li>
6月 05 15:24:44 nextcloud mariadb: 200605 15:24:44 mysqld_safe Logging to '/usr/local/mariadb/var/m>
6月 05 15:24:44 nextcloud mariadb: 200605 15:24:44 mysqld_safe Starting mysqld daemon with database>
6月 05 15:24:45 nextcloud mariadb: /etc/init.d/mariadb: 第 265 行:kill: (1824) - 没有那个进程
6月 05 15:24:45 nextcloud mariadb:ERROR!
6月 05 15:24:45 nextcloud systemd: mariadb.service: Control process exited, code=exited status=1
6月 05 15:24:45 nextcloud systemd: mariadb.service: Failed with result 'exit-code'.
6月 05 15:24:45 nextcloud systemd: 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
感觉好像是这个启动文件有问题
按反馈必读要求上传一下安装日志和mariadb日志
如果按256行信息看的话可以看一下 /etc/init.d/functions 这个文件是否存在,如果不存在的话yum install initscripts 再试一下看看
页:
[1]