systemctl status mariadb
时间: 2023-12-12 17:33:13 浏览: 130
C基础 mariadb处理的简单实例
以下是systemctl status mariadb的介绍和演示:
systemctl status mariadb命令用于查看mariadb数据库服务的状态。具体操作如下:
```shell
systemctl status mariadb
```
执行上述命令后,会输出mariadb数据库服务的详细状态信息,包括服务是否正在运行、服务的主进程号、服务的启动时间、服务的控制信息等。例如:
```shell
● mariadb.service - MariaDB 10.3.29 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-11-09 14:08:23 CST; 1h 2min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 1234 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 30 (limit: 4915)
Memory: 137.9M
CGroup: /system.slice/mariadb.service
└─1234 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mariadb/mariadb.log --pid-file=/run/mariadb/mariadb.pid --socket=/run/mariadb/mariadb.sock
Nov 09 14:08:22 localhost.localdomain systemd[1]: Starting MariaDB 10.3.29 database server...
Nov 09 14:08:23 localhost.localdomain systemd[1]: Started MariaDB 10.3.29 database server.
```
阅读全文