Linux start-up script for java application

前端 未结 6 1017
醉梦人生
醉梦人生 2021-01-07 11:31

I have Jar file to run in Linux using this command:

java -jar SyslogAgent_01.jar 192.168.2.154 1998 D:/apachelog.log ApacheLog 13

Can anyon

6条回答
  •  -上瘾入骨i
    2021-01-07 11:55

    If you want to run the app as linux daemon (service) checkout Java Wrapper: http://wrapper.tanukisoftware.com/doc/english/download.jsp

    Check this answer too (is for windows, but for linux changes a little bit): How to install a Java application as a service

提交回复
热议问题