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

2018 年 8 月 10 日
 linuxu2015

目前我这里使用有两种:

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

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

5376 次点击
所在节点    程序员
19 条回复
sagaxu
2018 年 8 月 11 日
supervisord
tenwx
2018 年 8 月 11 日
apache commons daemon
feather12315
2018 年 8 月 11 日
systemd
acrisliu
2018 年 8 月 11 日
打成 docker 镜像
Bryan0Z
2018 年 8 月 11 日
我们这里有一个 nohup.sh ,打开里面有几千行,以前遗留下来的,不知道用的啥技术,一直没功夫去看
Tyanboot
2018 年 8 月 11 日
写个 systemd unit 去跑。或者放到 docker 里面去跑。
lrh3321
2018 年 8 月 11 日
打成 docker 镜像 +1
changdy
2018 年 8 月 11 日
略尴尬. 自己部署的系统只使用过 nohup
rockyou12
2018 年 8 月 11 日
docker
yanaraika
2018 年 8 月 11 日
systemd 限制资源占用、设置重启策略
searene
2018 年 8 月 11 日
1. tmux,启动成功后 Ctrl + B, d
2. 打成 docker 镜像
lhx2008
2018 年 8 月 11 日
自己的机器用 screen,居然没人说吗,nobup 感觉一点都不好用啊
MithrandirW
2018 年 8 月 11 日
docker
letitbesqzr
2018 年 8 月 11 日
感觉 systemd unit 最方便啊...
Clarencep
2018 年 8 月 11 日
tmux
lcorange
2018 年 8 月 11 日
docker ENTRYPOINT java -jar
YuuuZeee
2018 年 8 月 11 日
mvn....
yuanfnadi
2018 年 8 月 11 日
docker run
zealinux
2018 年 8 月 11 日
pm2

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.xtra.eu.org/t/478762

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX