• 请不要在回答技术问题时复制粘贴 AI 生成的内容
linuxu2015
V2EX  ›  程序员

问下大家,你们公司的 jar 包程序都是如何运行起来的, Linux 系统的

  •  2
     
  •   linuxu2015 · Aug 10, 2018 · 5783 views
    This topic created in 3020 days ago, the information mentioned may be changed or developed.

    目前我这里使用有两种:

    1. nohup java -jar xxx.jar &
    2. 使用start-stop-deamon启动

    不知大家有什么好的方案啊

    19 replies  •  2018-08-11 14:01:20 +08:00
    sagaxu
    sagaxu
    Aug 11, 2018 via Android
    1
    supervisord
    tenwx
    tenwx
    Aug 11, 2018
    2
    apache commons daemon
    feather12315
    feather12315
    Aug 11, 2018❤️1
    3
    systemd
    acrisliu
    acrisliu
    Aug 11, 2018 via Android❤️1
    4
    打成 docker 镜像
    Bryan0Z
    Bryan0Z
    Aug 11, 2018 via Android
    5
    我们这里有一个 nohup.sh ,打开里面有几千行,以前遗留下来的,不知道用的啥技术,一直没功夫去看
    Tyanboot
    Tyanboot
    Aug 11, 2018 via Android
    6
    写个 systemd unit 去跑。或者放到 docker 里面去跑。
    lrh3321
    lrh3321
    Aug 11, 2018
    7
    打成 docker 镜像 +1
    changdy
    changdy
    Aug 11, 2018
    8
    略尴尬. 自己部署的系统只使用过 nohup
    rockyou12
    rockyou12
    Aug 11, 2018 via Android
    9
    docker
    yanaraika
    yanaraika
    Aug 11, 2018
    10
    systemd 限制资源占用、设置重启策略
    searene
    searene
    Aug 11, 2018
    11
    1. tmux,启动成功后 Ctrl + B, d
    2. 打成 docker 镜像
    lhx2008
    lhx2008
    Aug 11, 2018 via Android
    12
    自己的机器用 screen,居然没人说吗,nobup 感觉一点都不好用啊
    MithrandirW
    MithrandirW
    Aug 11, 2018
    13
    docker
    letitbesqzr
    letitbesqzr
    Aug 11, 2018
    14
    感觉 systemd unit 最方便啊...
    Clarencep
    Clarencep
    Aug 11, 2018
    15
    tmux
    lcorange
    lcorange
    Aug 11, 2018
    16
    docker ENTRYPOINT java -jar
    YuuuZeee
    YuuuZeee
    Aug 11, 2018 via Android
    17
    mvn....
    yuanfnadi
    yuanfnadi
    Aug 11, 2018 via iPhone
    18
    docker run
    zealinux
    zealinux
    Aug 11, 2018
    19
    pm2
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2516 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 11:50 · PVG 19:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.