有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

具有用户的java Start-stop demon不是以给定用户启动

我需要使用“vsinv”用户(作为服务)启动jar

我正在使用

start-stop-daemon --start --quiet --make-pidfile --pidfile /usr/local/vsinv/conf/vsinv.pid --chuid vsinv --background --exec /usr/bin/java -- -jar /usr/local/vsinv/vsInv.jar /usr/local/vsinv/conf/vs-system.properties

但这根本不会启动,但如果我删除chuid并在下面的命令下运行,它就会工作(但以root用户或当前用户的身份启动)

start-stop-daemon --start --quiet --make-pidfile --pidfile /usr/local/vsinv/conf/vsinv.pid --background --exec /usr/bin/java -- -jar /usr/local/vsinv/vsInv.jar /usr/local/vsinv/conf/vs-system.properties

要开始使用vsinv用户,vsinv用户是否需要进行一些配置,我是否缺少一些配置


共 (0) 个答案