在Linux系统中,可以使用以下命令来查看数据库的运行状态:
MySQL/MariaDB:查看MySQL服务是否正在运行:systemctl status mysql
或
service mysql status
查看MariaDB服务是否正在运行:systemctl status mariadb
或
service mariadb status
PostgreSQL:查看PostgreSQL服务是否正在运行:systemctl status postgresql
或
service postgresql status
MongoDB:查看MongoDB服务是否正在运行:systemctl status mongod
或
service mongod status
Redis:查看Redis服务是否正在运行:systemctl status redis
或
service redis status
以上命令将显示数据库服务的运行状态信息,包括进程ID、启动时间等。