Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

turn off hashicorp vault server dev

I am messing around with and testing Hashicorp Vault. I am starting a vault server in dev mode within the mac terminal:

vault server -dev

Accordingly, I get some data if I do

vault status

However, if I want to turn the server off and start it again, I have to restart the computer. Closing the mac shell will not do the trick, as I assume that the server continues to live in the mac memory. I have googled a lot to see if there is a simple command to stop the dev server but found none.

Help is much appreciated.

like image 770
Alejandro Simkievich Avatar asked Nov 01 '25 03:11

Alejandro Simkievich


1 Answers

If you ctrl+c the proccess, vault will terminate and you will lose all the data you stored in there. No need to restart the computer.

If that doesn’t work, you can kill it with pkill -9 vault

like image 189
user2599522 Avatar answered Nov 04 '25 13:11

user2599522