Skip to content

Instantly share code, notes, and snippets.

@goodGid
Last active April 26, 2020 11:55
Show Gist options
  • Save goodGid/1710d1542368ebf637b315882bc419d2 to your computer and use it in GitHub Desktop.
Save goodGid/1710d1542368ebf637b315882bc419d2 to your computer and use it in GitHub Desktop.
Alias Setting

FYI

  • Alias Setting for server management

Start Server

alias st_sv='nohup java -jar /home/ubuntu/ODOT/target/odot-0.0.1-SNAPSHOT.jar > /home/ubuntu/ODOT/nohup.log 2>&1 &'

Stop Server

  • If you want to set the alias, you should do as follows.
alias stop_sv='kill -9 `ps -ef | grep odot | awk '\''{print $2}'\''`'
  • If you want to use it directly in the shell, you should do as follows.
kill -9 `ps -ef | grep odot | awk '{print $2}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment