WEBVTT

00:01.090 --> 00:02.230
Hey, welcome back.

00:02.260 --> 00:05.950
So let's go ahead and get our hands dirty with setting up our development environment.

00:06.070 --> 00:11.170
In this video, I'm going to show you how to install Tomcat on the Mac operating system.

00:15.170 --> 00:15.650
All right.

00:15.650 --> 00:19.890
So what we need to do is open up a web browser and visit the Tomcat website.

00:19.910 --> 00:23.330
So I need to go to Tomcat dot Apache dot org.

00:26.170 --> 00:29.350
So this will bring me to the main Apache Tomcat website.

00:29.800 --> 00:32.200
This is where we can actually download the software.

00:32.320 --> 00:38.260
So over on the left hand side there is a download section and it has the different versions of Tomcat

00:38.260 --> 00:41.590
that we can download at the time of this video recording.

00:41.620 --> 00:43.510
The current version is Tomcat eight.

00:43.660 --> 00:48.330
However, there may be a new version and you can simply download the appropriate version.

00:48.340 --> 00:55.150
So I'll go ahead and select Tomcat eight for this video and this will show me the Tomcat eight downloads.

00:55.180 --> 00:56.770
I'll just scroll down a bit.

00:57.970 --> 01:02.770
And I'll move down to the binary distributions that mean this is the binary code or whatever.

01:05.650 --> 01:10.110
Since I'm doing this for a mac, I'll go ahead and choose Target Z.

01:10.120 --> 01:15.730
So it's simply a zip file that preserves the file permissions and I'll select the link here.

01:17.300 --> 01:23.060
My browser is going to prompt me for the actual file and I'll say Save the file and I'll hit, okay?

01:23.060 --> 01:27.890
And so this will actually download the Tomcat file to my local computer.

01:29.800 --> 01:30.640
All right, great.

01:30.640 --> 01:33.610
So we've actually downloaded the file to our file system.

01:33.610 --> 01:35.560
So let me go over and open up my finder.

01:35.830 --> 01:40.720
Let me move into the downloads directory and this is where I'll find the actual file that was just downloaded.

01:40.720 --> 01:42.580
So here, Apache Tomcat eight.

01:43.390 --> 01:48.190
Now what I need to do is actually unzip the file so I can just unzip it by double clicking it.

01:48.550 --> 01:50.080
So I'll go ahead and do that now.

01:51.590 --> 01:55.520
And now I have this file or this folder here for Apache Tomcat eight.

01:55.520 --> 01:58.610
So this is the unzip version of the file.

01:58.790 --> 02:03.410
All right, so what I normally like to do is actually move this into another directory so I can make

02:03.410 --> 02:04.090
use of it.

02:04.100 --> 02:12.680
So we'll actually make use of a directory for this training class, and I'll call it JSF for Beginners.

02:12.680 --> 02:15.170
So let me go ahead and open up a new window here.

02:15.260 --> 02:19.220
I'll move down to the bottom and I'll say, New folder.

02:22.150 --> 02:24.580
And I'll call it JSF for Beginners.

02:24.580 --> 02:31.090
So this is really just like a little empty scratch temp folder that we're going to use for this training

02:31.090 --> 02:31.800
class.

02:31.810 --> 02:35.350
I'll put all of our apps in here, all of our servers and so forth.

02:35.350 --> 02:39.310
So just one central location JSF for beginners.

02:39.700 --> 02:40.570
So it's empty now.

02:40.570 --> 02:42.400
I'll just double click, move into it.

02:43.120 --> 02:48.340
And what I'd like to do is that folder I just expanded up top Tomcat eight.

02:48.430 --> 02:52.020
I'll just grab it, drag and drop it into this new folder.

02:52.030 --> 02:53.620
JSF for Beginners.

02:53.620 --> 02:57.820
So all it did was just copy that expanded directory to this new folder.

02:57.850 --> 02:59.440
JSF for beginners.

02:59.570 --> 03:00.970
Okay, so this looks pretty good.

03:05.490 --> 03:10.290
All right, so now that I have the file extracted, I actually want to verify the Tomcat installation.

03:10.410 --> 03:11.970
I'm actually running the server.

03:12.210 --> 03:14.640
So what I'll do is I'll open up a terminal window here.

03:14.790 --> 03:19.560
And what I'd like to do is actually move into that Tomcat installation directory.

03:22.100 --> 03:23.990
So I'll just do a CD.

03:24.020 --> 03:29.360
I'm moving to that JSF for Beginners that we just created, and then the Apache Tomcat Directory that

03:29.360 --> 03:30.650
we just copied over.

03:34.250 --> 03:34.730
All right, great.

03:34.730 --> 03:36.350
So I'm in the directory now.

03:36.350 --> 03:39.320
Just do an LS just to see the contents of this file.

03:39.620 --> 03:41.420
Sorry, the contents of this directory.

03:41.420 --> 03:44.360
And you'll see that this directory has a startup.

03:44.720 --> 03:47.880
S-H All right, so this is in the bin directory startup at S-H.

03:47.930 --> 03:50.840
This is what I'll use to actually start the Tomcat server.

03:50.840 --> 03:57.620
So in my command line here, I'll type in bin slash startup S-H and this will actually start the Tomcat

03:57.620 --> 04:03.290
server for me so we can see some logs and then we'll see in the bottom left Tomcat started.

04:03.290 --> 04:04.340
So this is really good.

04:04.340 --> 04:07.910
So our server is installed and we've also started the server.

04:07.910 --> 04:12.410
So at this point Tomcat is up and running and it's listening for a request.

04:17.780 --> 04:18.350
All right, great.

04:18.350 --> 04:22.130
So now that I serve as running, then we can we can actually access our server.

04:22.130 --> 04:30.260
So in my browser, I can simply type local host 8080 and this will connect to my Tomcat server by default.

04:30.290 --> 04:33.860
Tomcat is listing on Port 8080 and that's how we connect to it.

04:33.860 --> 04:39.440
So here we make it to a page Tomcat with a version number, and then they'll even tell you, Hey, if

04:39.440 --> 04:44.180
you're seeing this page, you successfully install Tomcat, so in a really good shape here.

04:44.180 --> 04:51.650
So we downloaded the server, we installed it, and we also started the server and then we accessed

04:51.650 --> 04:52.820
it via our web browser.

04:52.820 --> 04:54.710
So we know that things are looking really good for us.

04:54.710 --> 04:56.150
So good job so far.

05:00.870 --> 05:06.060
And one final thing we want to do is actually stop the server or shut down the server because later

05:06.060 --> 05:07.920
on we're going to use it via Eclipse.

05:07.920 --> 05:14.250
So when I've been directory we can say just been slash shutdown S-H and that'll actually stop the Tomcat

05:14.250 --> 05:14.880
server.

05:14.970 --> 05:16.110
But don't worry.

05:16.140 --> 05:20.640
Once we install Eclipse, then we'll actually run Tomcat from the Eclipse server.

05:25.510 --> 05:25.990
All right.

05:25.990 --> 05:27.760
So we did a lot of good things in this video.

05:27.760 --> 05:31.750
So I showed you how to install the Tomcat, serve on the Mac operating system.

05:32.170 --> 05:37.780
We went through the process to actually start the server and also access the server and then finally,

05:37.780 --> 05:39.340
how to stop the server.

05:39.340 --> 05:43.690
So we're in good books now that we have successfully installed Tomcat.
