vi ~/.bashrc
ESC
:wq
Enter
export CATALINA_HOME=/home/bigdinosaur/apache-tomcat-8.0.9
Important Command Whether tomcat is running or not
ps -ef | grep java | grep 8080
for creating a new file
Touch filename
setting environmental variable
vi ~/.bashrc
ESC
:wq
Enter
export JAVA_HOME=/home/bigdinosaur/jdk1.8.0_11 in bashrc
vi ~/.deploy
vi ~/.bash_profile
chmod +x deploy.sh
chmod 744 deploy.sh
sudo touch deploy.sh
chmod 755 deploy.sh
to remove
rm abc.txtgit
rm /home/git-repo/bigdinosaur
rm -r /home/git-repo/bigdinosaur
sh /opt/bigdinosaur/tomcat/bin/startup.sh
No comments:
Post a Comment