Home  >  Q&A  >  body text

Error starting the same maven project twice on the same server with different ports

A depends on B, mvn compile B

    mvn install B
    mvn compile A
    nohup mvn -Dspring.profiles.active=p -Dexec.args="AA" spring-boot:run &
    nohup mvn -Dspring.profiles.active=t -Dexec.args="AA_test" spring-boot:run &

Start two web services, AA_test will affect AA, please tell me how to solve it.
AA sets the third-party callback address to axxxxx.com, and AA_test sets the third-party callback address to a_txxxxx.com. However, the third-party callback always calls back to axxxxx.com.

An error occurs when starting the same maven project twice on the same server with different ports. Why is it affected? How to solve it?

某草草某草草2713 days ago421

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-16 13:34:52

    Have you restarted nginx after modifying the configuration file? .

    reply
    0
  • Cancelreply