Oracle ApexのAmazonLinux2で自動起動サービスの作成

Amazon Linux2にインストールされたApexを自動起動するように設定する

起動サービス

ords.war

のパスはインストールされているパスに変更してください。

vim /etc/systemd/system/apex.service

[Unit]
Description = Apex

[Service]
ExecStart = /usr/bin/java -jar /home/ec2-user/ords/ords.war
Restart = always
Type = simple

[Install]
WantedBy = multi-user.target

起動・自動起動コマンド


$ systemctl start apex
$ systemctl enable apex
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
0
Would love your thoughts, please comment.x
()
x