宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】数据库又自动停止了,启动不了

发表在 Linux面板2024-6-12 19:21 [复制链接] 12 1184

第三次出现这样的问题了自动停止,启动不了,删除了重装报错






360截图20240612192045604.jpg




使用道具 举报 只看该作者 回复
发表于 2024-6-13 10:22:10 | 显示全部楼层
您好,您在您ssh终端执行free -m查看剩余内存是多少,根据您提示信息来看,剩余空间不足128m导致无法安装
使用道具 举报 回复 支持 反对
发表于 2024-6-13 12:31:00 | 显示全部楼层
运维技术阿闯 发表于 2024-6-13 10:22
您好,您在您ssh终端执行free -m查看剩余内存是多少,根据您提示信息来看,剩余空间不足128m导致无法安装 ...

               total        used        free      shared       buff/cache    available
Mem:           3789         695         306         255        2787        2547
Swap:          4095           0        4095



使用道具 举报 回复 支持 反对
发表于 2024-6-13 14:32:53 | 显示全部楼层
本帖最后由 fkenuiabcd 于 2024-6-13 14:45 编辑
运维技术阿闯 发表于 2024-6-13 10:22
您好,您在您ssh终端执行free -m查看剩余内存是多少,根据您提示信息来看,剩余空间不足128m导致无法安装 ...

是因为可用内存太少了,内存信息,可用才102了,清理了就可以安装了,过一会可用内存又变的很少。又要清理,这是为什么。



慢日志有太多出现下面这样的


/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument

使用道具 举报 回复 支持 反对
发表于 2024-6-13 16:07:24 | 显示全部楼层
fkenuiabcd 发表于 2024-6-13 14:32
是因为可用内存太少了,内存信息,可用才102了,清理了就可以安装了,过一会可用内存又变的很少。又要清理 ...

您好,确保没有尝试启动多个MySQL实例。可以使用ps命令或systemctl(如果你使用的是systemd)来检查正在运行的MySQL进程。

如果没有的话需要检查日志信息了
使用道具 举报 回复 支持 反对
发表于 2024-6-13 17:07:30 | 显示全部楼层
运维技术阿闯 发表于 2024-6-13 16:07
您好,确保没有尝试启动多个MySQL实例。可以使用ps命令或systemctl(如果你使用的是systemd)来检查正在 ...

[root@localhost ~]# systemctl
UNIT                                                           LOAD   ACTIVE SUB       DESCRIPTION
proc-sys-fs-binfmt_misc.automount                              loaded active waiting   Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:0-0:0:0:0-block-sr0.device loaded active plugged   QEMU_DVD-ROM
sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device    loaded active plugged   Virtio network device
sys-devices-pci0000:00-0000:00:04.0-virtio1-net-eth1.device    loaded active plugged   Virtio network device
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda-vda1.device loaded active plugged   /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda/vda1
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda.device   loaded active plugged   /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda
sys-devices-pci0000:00-0000:00:08.0-virtio4-block-vdb-vdb1.device loaded active plugged   /sys/devices/pci0000:00/0000:00:08.0/virtio4/block/vdb/vdb1
sys-devices-pci0000:00-0000:00:08.0-virtio4-block-vdb.device   loaded active plugged   /sys/devices/pci0000:00/0000:00:08.0/virtio4/block/vdb
sys-devices-platform-serial8250-tty-ttyS1.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-pnp0-00:04-tty-ttyS0.device                        loaded active plugged   /sys/devices/pnp0/00:04/tty/ttyS0
sys-module-configfs.device                                     loaded active plugged   /sys/module/configfs
sys-subsystem-net-devices-eth0.device                          loaded active plugged   Virtio network device
sys-subsystem-net-devices-eth1.device                          loaded active plugged   Virtio network device
-.mount                                                        loaded active mounted   /
dev-hugepages.mount                                            loaded active mounted   Huge Pages File System
dev-mqueue.mount                                               loaded active mounted   POSIX Message Queue File System
run-user-0.mount                                               loaded active mounted   /run/user/0
run-user-1003.mount                                            loaded active mounted   /run/user/1003
sys-kernel-config.mount                                        loaded active mounted   Configuration File System
sys-kernel-debug.mount                                         loaded active mounted   Debug File System
www.mount                                                      loaded active mounted   /www
systemd-ask-password-plymouth.path                             loaded active waiting   Forward Password Requests to Plymouth Directory Watch
systemd-ask-password-wall.path                                 loaded active waiting   Forward Password Requests to Wall Directory Watch
session-267.scope                                              loaded active abandoned Session 267 of user root
session-293.scope                                              loaded active running   Session 293 of user root
session-c1.scope                                               loaded active abandoned Session c1 of user redis
auditd.service                                                 loaded active running   Security Auditing Service
bt.service                                                     loaded active running   LSB: starts bt
chronyd.service                                                loaded active running   NTP client/server
crond.service                                                  loaded active running   Command Scheduler
dbus.service                                                   loaded active running   D-Bus System Message Bus
lines 1-34...skipping...
UNIT                                                           LOAD   ACTIVE SUB       DESCRIPTION
proc-sys-fs-binfmt_misc.automount                              loaded active waiting   Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:0-0:0:0:0-block-sr0.device loaded active plugged   QEMU_DVD-ROM
sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device    loaded active plugged   Virtio network device
sys-devices-pci0000:00-0000:00:04.0-virtio1-net-eth1.device    loaded active plugged   Virtio network device
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda-vda1.device loaded active plugged   /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda/vda1
sys-devices-pci0000:00-0000:00:05.0-virtio2-block-vda.device   loaded active plugged   /sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vda
sys-devices-pci0000:00-0000:00:08.0-virtio4-block-vdb-vdb1.device loaded active plugged   /sys/devices/pci0000:00/0000:00:08.0/virtio4/block/vdb/vdb1
sys-devices-pci0000:00-0000:00:08.0-virtio4-block-vdb.device   loaded active plugged   /sys/devices/pci0000:00/0000:00:08.0/virtio4/block/vdb
sys-devices-platform-serial8250-tty-ttyS1.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device               loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-pnp0-00:04-tty-ttyS0.device                        loaded active plugged   /sys/devices/pnp0/00:04/tty/ttyS0
sys-module-configfs.device                                     loaded active plugged   /sys/module/configfs
sys-subsystem-net-devices-eth0.device                          loaded active plugged   Virtio network device
sys-subsystem-net-devices-eth1.device                          loaded active plugged   Virtio network device
-.mount                                                        loaded active mounted   /
dev-hugepages.mount                                            loaded active mounted   Huge Pages File System
dev-mqueue.mount                                               loaded active mounted   POSIX Message Queue File System
run-user-0.mount                                               loaded active mounted   /run/user/0
run-user-1003.mount                                            loaded active mounted   /run/user/1003
sys-kernel-config.mount                                        loaded active mounted   Configuration File System
sys-kernel-debug.mount                                         loaded active mounted   Debug File System
www.mount                                                      loaded active mounted   /www
systemd-ask-password-plymouth.path                             loaded active waiting   Forward Password Requests to Plymouth Directory Watch
systemd-ask-password-wall.path                                 loaded active waiting   Forward Password Requests to Wall Directory Watch
session-267.scope                                              loaded active abandoned Session 267 of user root
session-293.scope                                              loaded active running   Session 293 of user root
session-c1.scope                                               loaded active abandoned Session c1 of user redis
auditd.service                                                 loaded active running   Security Auditing Service
bt.service                                                     loaded active running   LSB: starts bt
chronyd.service                                                loaded active running   NTP client/server
crond.service                                                  loaded active running   Command Scheduler
dbus.service                                                   loaded active running   D-Bus System Message Bus
firewalld.service                                              loaded active running   firewalld - dynamic firewall daemon
getty@tty1.service                                             loaded active running   Getty on tty1
irqbalance.service                                             loaded active running   irqbalance daemon
kdump.service                                                  loaded active exited    Crash recovery kernel arming
kmod-static-nodes.service                                      loaded active exited    Create list of required static device nodes for the current ker
kuaiyun.service                                                loaded active running   KuaiYunTools
network.service                                                loaded active exited    LSB: Bring up/down networking
nginx.service                                                  loaded active running   LSB: starts the nginx web server
oneavd.service                                                 loaded active running   ONEAV DAEMON
php-fpm-70.service                                             loaded active running   LSB: starts php-fpm
polkit.service                                                 loaded active running   Authorization Manager
postfix.service                                                loaded active running   Postfix Mail Transport Agent
pure-ftpd.service                                              loaded active exited    LSB: starts pureftpd server
redis.service                                                  loaded active exited    LSB: starts Redis
rhel-dmesg.service                                             loaded active exited    Dump dmesg to /var/log/dmesg
rhel-domainname.service                                        loaded active exited    Read and set NIS domainname from /etc/sysconfig/network
rhel-import-state.service                                      loaded active exited    Import network configuration from initramfs

使用道具 举报 回复 支持 反对
发表于 2024-6-13 17:19:01 | 显示全部楼层
fkenuiabcd 发表于 2024-6-13 17:07
[root@localhost ~]# systemctl
UNIT                                                           LOAD  ...

不好意思,刚才回答有误,您检查一下磁盘是否充足,df -Th,信息是磁盘空间不足
使用道具 举报 回复 支持 反对
发表于 2024-6-14 09:07:34 | 显示全部楼层
运维技术阿闯 发表于 2024-6-13 17:19
不好意思,刚才回答有误,您检查一下磁盘是否充足,df -Th,信息是磁盘空间不足 ...

Welcome to  KUAIYUN Vps!
[root@localhost ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/vda1      xfs        40G  5.6G   35G  14% /
devtmpfs       devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs          tmpfs     1.9G   16K  1.9G   1% /dev/shm
tmpfs          tmpfs     1.9G  185M  1.7G  10% /run
tmpfs          tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vdb1      ext4       99G   90G  4.1G  96% /www
tmpfs          tmpfs     379M     0  379M   0% /run/user/1003
tmpfs          tmpfs     379M     0  379M   0% /run/user/0
[root@localhost ~]# ^C

使用道具 举报 回复 支持 反对
发表于 2024-6-14 12:12:18 | 显示全部楼层
fkenuiabcd 发表于 2024-6-14 09:07
Welcome to  KUAIYUN Vps!
[root@localhost ~]# df -Th
Filesystem     Type      Size  Used Avail Use% ...

您好,/www目录空间不足导致的
使用道具 举报 回复 支持 反对
发表于 2024-6-14 14:19:10 | 显示全部楼层
运维技术阿闯 发表于 2024-6-14 12:12
您好,/www目录空间不足导致的

好的,我删除了一部份了,现在WWW目录空间有7G空间了
使用道具 举报 回复 支持 反对
发表于 2024-6-14 16:07:31 | 显示全部楼层
fkenuiabcd 发表于 2024-6-14 14:19
好的,我删除了一部份了,现在WWW目录空间有7G空间了

好的,后续在看一下是否停止的时候使用df -Th看一下磁盘空间以及free -m内存空间
使用道具 举报 回复 支持 反对
发表于 2024-6-14 17:05:04 | 显示全部楼层
运维技术阿闯 发表于 2024-6-14 16:07
好的,后续在看一下是否停止的时候使用df -Th看一下磁盘空间以及free -m内存空间 ...

好的,我在看看
使用道具 举报 回复 支持 反对
发表于 2024-6-14 17:20:09 | 显示全部楼层

好的,后续有情况可以在发一下呢
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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