-
Notifications
You must be signed in to change notification settings - Fork 6
/
tomcat bulid and Deploy
36 lines (34 loc) · 1.15 KB
/
tomcat bulid and Deploy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Tomcat-apache
===============================================
$ cd /opt
$ sudo wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.45/bin/apache-tomcat-9.0.45.tar.gz
$ ls
$ apache-tomcat-9.0.45.tar.gz
$ sudo tar -xvzf apache-tomcat-9.0.44.tar.gz [to exract the file]
$ ls
$ apache-tomcat-9.0.45 apache-tomcat-9.0.45.tar.gz
$ sudo chmod -R 777 apache-tomcat-9.0.44 [giving full permistion to the floder]
$ cd apache-tomcat-9.0.44
$ cd bin [bin forlder has starting scripts]
$ sh startup.sh [to start the apache server]
$ ps -ef | grep java [to check the apache server is runing are not]
$ netstat -tupln [ To check the port number and port is runingare not]
$ sh shutdown.sh [to shutdown the server]
To bulid and deploy in tomcat
=================================
$ cd maven-web-app
$ ls
$ mvn clean install [to do bulid function]
$ cd /opt
$ ls
$ cd apache-tomcat-9.0.44
$ ls
$ cd webapps
$ pwd
/opt/apache-tomcat-9.0.44/webapps [copy the path]
$ cd
$ cd maven-web-app
$ ls
$ cd target
$ cp posh-technologies.war /opt/apache-tomcat-9.0.44/webapps [we are cp war file and delpoy to server]
$ ip:8080/posh-technologies [To check the application is deploy]