Installation of Tomcat 7 is quite simple in a Linux environment as compared to Windows. Unzip the Tomcat 7 source, that is, apache-tomcat After you unzip the apache-tomcat Go to the bin directories of apache-tomcat Run the following command. If you fail to run the following command, then Tomcat services will not come up. We have now completed the installation of Apache Tomcat on both the OSes.
Now, it's time to start the services and verify the setup we have created up to now. So why waste time, let's rock and roll. Apache monitor console: Tomcat comes with a very handy tool for administration, which is popularly known as the Apache monitoring console.
It's very useful in managing the Tomcat instance service recycle, enabling logs, and JVM configuration. The following screenshot shows the recycle process using the Tomcat monitoring console. The Linux startup process is completely different. Let us start the services on Linux to verify the installation. Before that, let's quickly verify the configuration. Tomcat 7 comes with different scripts, through which we will verify the complete installation.
There is a very good script placed in the Tomcat bin directory named as version. Let's run the script using the following command:.
There is one more script in the Tomcat bin directory that is very useful. This script performs a quick configuration check on the system and finds the errors. After doing the configuration check, start the Tomcat services. The Tomcat services can be started using the startup.
To start the Tomcat services, you have to perform the following mentioned steps:. In the bin directory, we will find the entire executable for Tomcat. To start the services, we have to use the following command. Once you execute the startup command, it will display the parameters which are essential for booting Tomcat. A Tomcat shutdown script is also available in the bin directory named as. Let's execute the script to know the output. The details are as follows:.
Once we have executed the startup scripts, the next step is the verification of the Tomcat services, to check whether services are coming up fine or not. We then find the Tomcat welcome page, which shows that Tomcat is installed correctly and running fine in the environment, as shown in the following screenshot:. Once the welcome page for Tomcat 7 is displayed, we can verify the server status by clicking on Server Status.
Remember, we have created a user admin that the user ID will be used here for access, as shown in the following screenshot:. There are multiple issues which may arise during the installation of Tomcat 7.
Let's discuss these issues:. Scenario 1: The Java installation is not working, while executing the Java binary. Issue: The Java binary doesn't have execute permissions with a specific user. Fix: Change the permission to for. Scenario 2: While starting the Tomcat startup script, the following error occurs:. Fix: Check the. Scenario 3: Tomcat services is not displayed after running startup.
Issue: This service is already running on the server. Fix: Check for any Java process running in the system using the following command in Linux:. This command will show all Tomcat processes.
If any process is running on an OS, kill it and run the startup scripts again. If any process is running, then kill the process and restart the Tomcat services. In this chapter, we have covered the Apache Tomcat history and new features introduced in Tomcat 7. We have done a step-by-step installation of Tomcat on Windows and Linux operating systems. Also, we have discussed the common problems that may arise during the installation and their possible solutions.
In the next chapter, we will discuss the various methods used for deployment in Tomcat 7 and solution of issues that may occur during the deployment process. He is MCSA and ITIL certified and has expertise in handling critical production server issues and has a track record of dealing with many complex problems.
His quick resolution to issues faced in a production environment helped his team and clients a lot. His experience includes working with large enterprise web hosting environment for J2EE container and small teams and his quick turnaround time resulted in on-time delivery.
Apart from this, his technical expertise in root cause analysis, problem management, migration of enterprise application, and upgrade of web application servers is commendable. Outside of work life, Tanuj enjoys playing table tennis and exploring new technologies. Tanuj is a good dancer. This is his first book.
Publication date: March Publisher Packt. Pages ISBN Chapter 1. Installation of Tomcat 7. History of Tomcat. Version Release Date Description 3. Tomcat support matrix. Features 7. Features and enhancements of Apache Tomcat 7. Pro Apache Tomcat 6.
Pro Apache Tomcat 6 is ideal for Tomcat administrators and others who want to configure Tomcat. It covers only Tomcat 6 and doesn't get bogged down trying to overexplain tasks from each older version of the server. The book examines the entire installation, including file system, database, and web server, and provides you with security and performance tips.
Author Matthew Moodie describes configuration files, as well as administration features like security, auto-deployment, remote deployment, and data sources. Author Matthew Moodie describes configuration files, as well as administration features like security, auto-deployment, remote deployment, and datasources. He gets right to the point and teaches you to use Tomcat. The latest major stable release, Apache Tomcat version 7 implements the Servlet 3 and JavaServer Pages 2 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.
Apache Tomcat 7 Essentials follows a practical approach to teach installing, configuring, and maintaining Tomcat. It helps you to understand the middle architecture for hosting multiple websites and also provides the confidence to implement middleware support.
It imparts to you the capacity to resolve migration issues and also provides regular maintenance solutions. This is the first and only book to cover upgrading to Tomcat 7 from previous versions. The journey of the reader starts at the beginner level and ends at the expert level. Immerse yourself on a fantastic journey to discover the attributes of big data by using Hive About This BookDiscover how Hive can coexist and work with other tools in the Hadoop ecosystem to create big data solutionsGrasp the skills needed, learn the best practices, and avoid the pitfalls in writing efficient Hive queries to analyze the big dataCreate an environment to analyze big data using practical, example-oriented scenariosWho This Book Is ForIf you are a data analyst, developer, or simply someone who wants to use Hive to explore and analyze data in Hadoop, this is the book for you.
Whether you are new to big data or an expert, with this book, you will be able to master both the basic and the advanced features of Hive. Since Hive is an SQL-like language, some previous experience with the SQL language and databases is useful to have a better understanding of this book.
In Detail In this book, we prepare you for your journey into big data by firstly introducing you to backgrounds in the big data domain along with the process of setting up and getting familiar with your Hive working environment. Next, the book guides you through discovering and transforming the values of big data with the help of examples.
It also hones your skill in using the Hive language in an efficient manner. Towards the end, the book focuses on advanced topics such as performance, security, and extensions in Hive, which will guide you on exciting adventures on this worthwhile big data journey.
0コメント