All Projects → carlosCharz → installtomcataws

carlosCharz / installtomcataws

Licence: other
Install tomcat 8.x in AWS (Amazon Linux AMI)

Projects that are alternatives of or similar to installtomcataws

Aws Workflows On Github
Workflows for automation of AWS services setup from Github CI/CD
Stars: ✭ 95 (+630.77%)
Mutual labels:  ec2, amazon
Ec2instances.info
Amazon EC2 instance comparison site
Stars: ✭ 3,619 (+27738.46%)
Mutual labels:  ec2, amazon
Aws
A collection of bash shell scripts for automating various tasks with Amazon Web Services using the AWS CLI and jq.
Stars: ✭ 493 (+3692.31%)
Mutual labels:  ec2, amazon
Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (+1076.92%)
Mutual labels:  ec2, amazon
Laravel Aws Eb
Ready-to-deploy configuration to run Laravel on AWS Elastic Beanstalk.
Stars: ✭ 247 (+1800%)
Mutual labels:  ec2, amazon
amazon-ec2-image-builder-samples
Samples for Amazon EC2 Image Builder
Stars: ✭ 103 (+692.31%)
Mutual labels:  ec2, amazon
Guacamole Install Rhel 7
Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS, SSL, LDAP, Let's Encrypt certificates and more
Stars: ✭ 174 (+1238.46%)
Mutual labels:  install, tomcat
vpc-peering-operator
A Kubernetes Operator to manage the lifecycle of AWS VPC Peering Connections
Stars: ✭ 23 (+76.92%)
Mutual labels:  ec2, amazon
wishlist
Read an Amazon wishlist programmatically with Python
Stars: ✭ 44 (+238.46%)
Mutual labels:  amazon
bfmvc
模仿springmvc的轻量级web框架,适合学习和搭建小型web项目使用
Stars: ✭ 86 (+561.54%)
Mutual labels:  tomcat
docker-tomcat-mysql
Docker image for tomcat+mysql, orchestrated with supervisord
Stars: ✭ 26 (+100%)
Mutual labels:  tomcat
Aws-Manger-Bot
一个可以管理aws资源的telegram bot
Stars: ✭ 45 (+246.15%)
Mutual labels:  ec2
investigation-amazon-brands
Materials to reproduce our findings in our stories, "Amazon Puts Its Own 'Brands' First Above Better-Rated Products" and "When Amazon Takes the Buy Box, it Doesn’t Give it up"
Stars: ✭ 56 (+330.77%)
Mutual labels:  amazon
mapbox-assistant-example
Examples of Amazon Echo, Google Home, and other bots interacting with Mapbox services.
Stars: ✭ 15 (+15.38%)
Mutual labels:  amazon
aws-serverless-fullstack-swift-apple-carplay-example
This application demonstrates a full-stack Apple CarPlay app that uses Swift for both the UI and the backend services in AWS. The app accesses Lambda functions written in Swift and deployed from Docker images. The app accesses Amazon Location Service and a 3rd party weather api to display information in the vicinity of the user.
Stars: ✭ 84 (+546.15%)
Mutual labels:  amazon
CDH-Install-Manual
CDH安装手册
Stars: ✭ 70 (+438.46%)
Mutual labels:  install
aws-solutions-architect-associate-certificate
Note to pass the AWS Solutions Architect Associate Exam
Stars: ✭ 58 (+346.15%)
Mutual labels:  ec2
sensu-plugins-aws
This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.
Stars: ✭ 79 (+507.69%)
Mutual labels:  ec2
ota-server
OTA Server for both Android app and iOS app
Stars: ✭ 30 (+130.77%)
Mutual labels:  install
tudien
Từ điển tiếng Việt dành cho Kindle
Stars: ✭ 38 (+192.31%)
Mutual labels:  amazon

Install Tomcat 8.x in AWS EC2 Instance (Amazon Linux AMI)

You will find as well the configuration of Nginx and PostgreSQL. Special thanks to @caden for the contribution!

Software to install

  • Java 8
  • Tomcat 8.x

Check YUM Updates

sudo su
yum list installed
yum update

Install Java 8

yum install java-1.8.0
yum remove java-1.7.0-openjdk

Install Tomcat 8.x

yum install tomcat8 tomcat8-webapps tomcat8-admin-webapps tomcat8-docs-webapp

Start Tomcat Service

service tomcat8 start

Tomcat Paths

1 Edit the tomcat-users file

cd  /usr/share/tomcat8
vim /usr/share/tomcat8/conf/tomcat-users.xml

2 Add this line according your desired configuration (vi commands: "i" for insert mode, "ESC" key to escape the inserting mode, ":wq" for write an quit)

<user name="admin" password="YOURPASSWORD" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />

Check Tomcat Installation

  • fuser: to display the process id(PID) of every process using the specified files
fuser -v -n tcp 8080
  • netstat: to list out all the network (socket) connections on a system
netstat -na | grep 8080

Set Auto Start for Tomcat Service

sudo chkconfig --list tomcat8
sudo chkconfig tomcat8 on

Install Nginx

yum install nginx

Add Nginx Domain Binding

vi /etc/nginx/conf.d/shenhe.org.conf
server {
    listen       80;
    listen       [::]:80;
    server_name  shenhe.org;
    root         /usr/share/nginx/html;
    location / {
        proxy_connect_timeout 300;
        proxy_send_timeout 300;
        proxy_read_timeout 300;
        proxy_pass http://localhost:8080;
        }
}

You can add more bindings. It’s similar. If you just want nginx to handle static files (like images, javascript, css etc), you just do it like this:

server {
    listen       80;
    listen       [::]:80;
    server_name  static.shenhe.org;
    root         /usr/share/nginx/html;
}

Start Nginx

service nginx start

Set Auto Star for Nginx Service

sudo chkconfig --list nginx
sudo chkconfig nginx on

Install PostgreSQL

sudo yum install postgresql postgresql-server

Initialize postgresql DB

sudo service postgresql initdb

Start PostgreSQL

sudo service postgresql start

Login in with postgres

sudo -u postgres psql

Change Password

\password postgres

Quit

\q

Enable Remote Access

sudo vi /var/lib/pgsql9/data/pg_hba.conf

Add you IP to trust IP

host all all 125.69.29.0/24     trust

Also change this line from

host    all             all             127.0.0.1/32            ident

To

host    all             all             127.0.0.1/32            md5
sudo vi /var/lib/pgsql9/data/postgresql.conf

Change

#listen_addresses = 'localhost'

To

listen_addresses = '*'

Auto Start PostgreSQL

sudo chkconfig --list postgresql
sudo chkconfig postgresql on

Add swap to EC2

sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
sudo /sbin/swapon /var/swap.1

Auto mount Swap

To enable it by default after reboot, add this line to /etc/fstab:

/var/swap.1  swap        swap    defaults        0   0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].