龙腾宇内 发表于 2016-9-10 12:47:37

LNMP1.3突然出现数据库服务无法启动,求助军哥。

今天执行lnmp restart时,数据库服务无法启动,期间没有修改过其他任何东西。不知道为什么。我把错误信息发上来,麻烦军哥帮忙瞧瞧。
root@digitalocean:~# lnmp restart
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            http://lnmp.org            |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
[ ok ] Stopping mysql (via systemctl): mysql.service.
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx...done
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
failed!
Starting php-fpmdone
root@digitalocean:~# systemctl status mysql.service
● mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since Sat 2016-09-10 12:40:08 CST; 33s ago
Process: 3220 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)

Sep 10 12:40:06 digitalocean systemd: Starting LSB: start and stop MySQL...
Sep 10 12:40:06 digitalocean mysql: Starting MySQL
Sep 10 12:40:08 digitalocean mysql: ..The server quit without updating PID file (/usr/local/mysql/var/digitalocean....ailed!
Sep 10 12:40:08 digitalocean systemd: mysql.service: control process exited, code=exited status=1
Sep 10 12:40:08 digitalocean systemd: Failed to start LSB: start and stop MySQL.
Sep 10 12:40:08 digitalocean systemd: Unit mysql.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@digitalocean:~#


执行journalctl -xn显示如下信息:

root@digitalocean:~# journalctl -xn
-- Logs begin at Wed 2016-08-03 19:00:26 CST, end at Sat 2016-09-10 12:45:42 CST. --
Sep 10 12:45:36 digitalocean sshd: Failed password for root from 116.31.116.26 port 48647 ssh2
Sep 10 12:45:37 digitalocean sshd: Received disconnect from 116.31.116.26: 11:
Sep 10 12:45:37 digitalocean sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116
Sep 10 12:45:38 digitalocean sshd: Failed password for invalid user divya from 192.169.245.28 port 37234 ssh2
Sep 10 12:45:38 digitalocean sshd: pam_unix(sshd:auth): check pass; user unknown
Sep 10 12:45:40 digitalocean sshd: Failed password for invalid user divya from 192.169.245.28 port 37234 ssh2
Sep 10 12:45:40 digitalocean sshd: pam_unix(sshd:auth): check pass; user unknown
Sep 10 12:45:42 digitalocean sshd: Failed password for invalid user divya from 192.169.245.28 port 37234 ssh2
Sep 10 12:45:42 digitalocean sshd: Connection closed by 192.169.245.28
Sep 10 12:45:42 digitalocean sshd: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=ip-192-169
lines 1-11/11 (END)


麻烦军哥帮忙看看。非常感谢。

licess 发表于 2016-9-10 15:26:56

按反馈必读提供mysql日志
页: [1]
查看完整版本: LNMP1.3突然出现数据库服务无法启动,求助军哥。