Commit 61b06d8a authored by kalvin's avatar kalvin

alias log

parent 3fafcfab
...@@ -76,6 +76,7 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -76,6 +76,7 @@ if [[ $CLUSTER == "3B" ]]; then
tail -f $log_path/*log tail -f $log_path/*log
else else
echo "clean ${log_path}/*" echo "clean ${log_path}/*"
#历史遗留问题,抽空fix #历史遗留问题,抽空fix
echo "replaceGitRemote" echo "replaceGitRemote"
replaceGitRemote(){ replaceGitRemote(){
...@@ -107,8 +108,8 @@ else ...@@ -107,8 +108,8 @@ else
replaceGitRemote replaceGitRemote
rm -rf ${log_path}/* rm -rf ${log_path}/*
echo "kill java process" echo "kill java process"
kill -9 $(ps -ef |grep '/home/quant_group/project/app.jar' | grep -v 'grep' | awk '{ print $2 }') kill -9 $(ps -ef |grep '/home/quant_group/project/app.jar' | grep -v 'grep' | awk '{ print $2 }')
echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts
echo 192.168.4.117 apollo-dev.quantgroups.com >> /etc/hosts echo 192.168.4.117 apollo-dev.quantgroups.com >> /etc/hosts
...@@ -142,7 +143,9 @@ else ...@@ -142,7 +143,9 @@ else
touch ./logs/error.log touch ./logs/error.log
echo "Log is not exist or java server start error." >> ./logs/error.log echo "Log is not exist or java server start error." >> ./logs/error.log
fi fi
echo "export alias log='cd logs;tail -500f *log';" >> ~/.bashrc
source ~/.bashrc
source ~/.bash_profile source ~/.bash_profile
echo "cd /home/qg-xterm/;git pull;cd -" echo "cd /home/qg-xterm/;git pull;cd -"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment