我在一个Ubuntu虚拟机中安装了Vertica,我希望在启动过程中启动一个特定的数据库,而不是我必须登录,打开admintools并从那里开始.
那么,是否有一个命令行允许我在没有用户交互的情况下启动它?我应该在哪个运行级别添加此项?此外,我使用特定用户运行与Vertica相关的所有内容,是否需要在我的启动脚本中考虑这一点?
小智 6
admintools -t start_db
[dbadmin@hostname ~]$ admintools -t start_db --help
Usage: start_db [options]
Options:
-h, --help show this help message and exit
-d DB, --database=DB Name of database to be started
-p DBPASSWORD, --password=DBPASSWORD
Database password in single quotes
-i, --noprompts do not stop and wait for user input(default false)
-F, --force force the database to start at an epoch before data
consistency problems were detected.
Run Code Online (Sandbox Code Playgroud)