Linux 上常见的数据库及其启动命令如下:
1. MySQL/MariaDB:
- 启动命令: `sudo systemctl start mysql` 或 `sudo service mysql start`
2. PostgreSQL:
- 启动命令: `sudo systemctl start postgresql` 或 `sudo service postgresql start`
3. SQLite:
- SQLite 是一种轻量级的嵌入式数据库,通常不需要单独启动,直接在应用程序中使用即可。
4. MongoDB:
- 启动命令: `sudo systemctl start mongodb` 或 `sudo service mongodb start`
5. Redis:
- 启动命令: `sudo systemctl start redis` 或 `sudo service redis start`
6. Apache Cassandra:
- 启动命令: `sudo systemctl start cassandra` 或 `sudo service cassandra start`
7. Apache HBase:
- 启动命令: `start-hbase.sh`
需要注意的是,启动数据库服务前,请确保已经安装并配置好相应的数据库软件。启动命令可能因系统版本和数据库版本的不同而有所差异,请根据实际情况进行调整。