master
livejq 3 years ago
parent 59591d800f
commit 692e5d0740
  1. 12
      AutoPing.sh

@ -91,9 +91,9 @@ configureUb() {
timedatectl set-timezone Asia/Shanghai timedatectl set-timezone Asia/Shanghai
#Agent #Agent
mkdir -p /var/monitor_agent mkdir -p /var/monitor_agent
wget $origin/Agent/agentMain.jar -O /var/monitor_agent wget $origin/Agent/agentMain.jar -P /var/monitor_agent
wget $origin/Agent/conf -O /var/monitor_agent wget $origin/Agent/conf -P /var/monitor_agent
wget $origin/Agent/AgentRestart.sh -O /root wget $origin/Agent/AgentRestart.sh -P /root
chmod 755 -R /var/monitor_agent chmod 755 -R /var/monitor_agent
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
/root/AgentRestart.sh /root/AgentRestart.sh
@ -141,9 +141,9 @@ configureCe() {
timedatectl set-timezone Asia/Shanghai timedatectl set-timezone Asia/Shanghai
#Agent #Agent
mkdir -p /var/monitor_agent mkdir -p /var/monitor_agent
wget $origin/Agent/agentMain.jar -O /var/monitor_agent wget $origin/Agent/agentMain.jar -P /var/monitor_agent
wget $origin/Agent/conf -O /var/monitor_agent wget $origin/Agent/conf -P /var/monitor_agent
wget $origin/Agent/AgentRestart.sh -O /root wget $origin/Agent/AgentRestart.sh -P /root
chmod 755 -R /var/monitor_agent chmod 755 -R /var/monitor_agent
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
/root/AgentRestart.sh /root/AgentRestart.sh

Loading…
Cancel
Save