search

Home  >  Q&A  >  body text

java - linux不同用户使用jps命令查看进程结果不一样

巴扎黑巴扎黑2770 days ago1028

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:46:08

    Generally, you need to use the account that starts the application to execute the jps command, and use jps in the same version of jdk.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:46:08

    Addition to the one above:

    If the environment variables of the two users are different, then the jps command you execute is not the same command. Maybe there are two versions of jdk, which are like two containers that are unrelated to each other.

    reply
    0
  • Cancelreply