Google Tomcat

Posted onby admin
Google uses cookies and data to:
  • Deliver and maintain services, like tracking outages and protecting against spam, fraud, and abuse
  • Measure audience engagement and site statistics to understand how our services are used
If you agree, we’ll also use cookies and data to:
  • Improve the quality of our services and develop new ones
  • Deliver and measure the effectiveness of ads
  • Show personalized content, depending on your settings
  • Show personalized or generic ads, depending on your settings, on Google and across the web
For non-personalized content and ads, what you see may be influenced by things like the content you’re currently viewing and your location (ad serving is based on general location). Personalized content and ads can be based on those things and your activity like Google searches and videos you watch on YouTube. Personalized content and ads include things like more relevant results and recommendations, a customized YouTube homepage, and ads that are tailored to your interests.

Click “Customize” to review options, including controls to reject the use of cookies for personalization and information about browser-level controls to reject some or all cookies for other uses. You can also visit g.co/privacytools anytime.

The most comprehensive image search on the web. GCP Marketplace offers more than 160 popular development stacks, solutions, and services optimized to run on GCP via one click deployment. Grumman F-14 Tomcat is a jet fighter developed by Grumman Corporation for the US NAVY in the early 1970s. Created using a number of new technical solutions. Tomcat 9 and earlier implement specifications developed as part of Java EE. The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. Become My Patron! Talking Tom and Friends 2 / Cartoon Games Kids TV.

In case I forgot this once I want to setup another tomcat, thus I write it down. Setting up tomcat is required java to be ready on the instance, I did the java setup in this post. We know that tomcat is running on port :8080 (default), in order to make it accessible publicly, new firewall rules setup in VPC Network is required.

Google Tomcat Extension

Google

Setup Firewall Rules

Google Tomcat App

Following the guideline from gcp documentation in this post,

Google Tomcat
  • Click on Go to the Firewall Page
  • This page will be shown, then click +CREATE FIREWALL RULE
  • Enter the following Fields:
    • Name: name of the Firewall Rule. Name can be anything but it can have only lower case letters, hyphens and numbers
    • Priority: Priority of Rule. Higher the number lower the priority. I keep the default value(1000)
    • Direction of traffic: Ingress. Ingress applies to incoming traffic. Egress applies to outbound traffic.
    • Action on match: allow.
    • Targets: All instance in the network. Because if I plan to have more than one instance I want to make this available for all instance in the network.
    • Source filter: IP Ranges
    • Source IP Ranges: 0.0.0.0/0, means allow any IP, and anyone can send data

Once the firewall setup done, I continue to do the next one,

Installing Tomcat 8

After making sure firewall setup done, and having apache tomcat 8 package downloaded from its official download page, I copy the apache-tomcat-8.5.59.tar.gz to the home directory, then do these steps:

  • Extracting tar.gz
    • $ tar xvf apache-tomcat-8.5.59.tar.gz
  • Copy apache-tomcat-8.5.59 into nginx html and rename it as tomcat8 (if you want to put it in another directory the location can differ.
    • $ sudo mv apache-tomcat-8.5.59 /usr/share/nginx/html/tomcat8
  • Change the owner of tomcat8 directory
    • $ sudo chown -R myuser:myuser tomcat8
  • Edit java security, because in the first try, I can’t get the normal tomcat, and it is because the java security (getting this info from stackoverflow, thanks Bij)
    • go to java security directory, in my case, the directory is located here:
      $ cd /usr/java/jdk1.8.0_271-amd64/jre/lib/security
    • using vi edit java.security file
      $ sudo vi java.security
    • change securerandom.source=file:/dev/random to securerandom.source=file:/dev/./urandom
  • Run tomcat
    • $ cd /usr/share/nginx/html/tomcat8/bin
    • ./startup.sh
  • Check on the browser using PUBLIC_IP:8080

Google Tomcat Free

Reference:
1. google cloud computing official documentation
2. bytesofgigabytes web on setting up firewall in google cloud
3. bytesofgigabytes web on installing tomcat
4. stackoverflow answer posted by BiJ