1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SpringBootで実行可能jarをリモートから起動する

Posted at

#実行コマンド

ssh user@remotehost "sudo nohup java -jar myaply-0.0.1-SNAPSHOT.jar > log.txt 2> errors.txt < /dev/null &"

#必要な準備
sudoはリモートで実行できないため、sshのユーザーについて、
ttyの

#参照
http://qiita.com/yuku_t/items/0f15d487ed6232d21410

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?