1.stdout: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

cd bin/
vi catalina.sh
头部加入以下信息:

export JAVA_HOME=/home/gongzi/http/jdk1.6.0_26
export JRE_HOME=/home/gongzi/http/jdk1.6.0_26/jre

2.tomcat 启动不了
碰到ansible无法起停tomcat的时候,有两个点需要关注
1)、环境变量,在startup.sh中添加source /etc/profile
2)、后台运行,加上nohup...&


3. 只发一次上线通知

run_once: true


- command: /opt/application/upgrade_db.py
run_once: true
delegate_to: web01.example.org

指定在"web01.example.org"上执行

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-10-17
  • 2022-12-23
  • 2021-12-26
  • 2022-02-26
猜你喜欢
  • 2021-07-26
  • 2021-07-02
  • 2022-02-13
  • 2022-12-23
  • 2022-02-17
  • 2022-02-06
  • 2022-03-10
相关资源
相似解决方案