[LINUX] [Introduction to AWS] A memorandum of building a web server on AWS

I've never set up a server on AWS, so the one when I set it up SSL has already created a wildcard proof, so I will attach it to LB.

What i did

・ Create a VPC -Create a subnet in the created VPC ・ It seems that LB needs two or more availability zones, so I created two. ・ Availability zone setting ・ Creating a security group ・ Creating a gateway ・ Creating a route table -Creating an EC2 server (Amazon Linux) -Building a LEMP (MySQL is RDS) server (strictly speaking, LEP)

yum update -y amazon-linux-extras install nginx1 amazon-linux-extras install php7.4 Automatic start sudo systemctl start nginx.service sudo systemctl enable nginx.service sudo systemctl start php-fpm.service sudo systemctl enable php-fpm.service Various conf settings

-Add an instance to the load balancer -Add a listener. I'm addicted to not setting rules

·that's all I will add it later.

Recommended Posts

[Introduction to AWS] A memorandum of building a web server on AWS
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux to build a Web server --3 MySQL 8.0 introduction
Building an environment to run ChainerMN on a GPU instance on AWS
Build a web server on your Chromebook
Verification of how to periodically execute a script on a Linux server on Windows
Building a Python environment on a Sakura VPS server
Introduction and usage of Python bottle ・ Try to set up a simple web server with login function
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux and build a Web server ―― 1. Apache introduction
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux and build a Web server --2 PHP introduction
Introduction to Web Scraping
A memorandum on how to use keras.preprocessing.image in Keras
[Part 2] Let's build a web server on EC2 Linux
Set up a free server on AWS in 30 minutes
CTF beginner tried to build a problem server (web) [Problem]
How to run Django on IIS on a Windows server
[Python3] Take a screenshot of a web page on the server and crop it further
How to use GitHub on a multi-person server without a password
[Learning memorandum] Introduction to vim
A memorandum of stumbling on my personal HEROKU & Python (Flask)
A memorandum of kernel compilation
SSH connection to a private server using a bastion server on EC2
[Introduction to cx_Oracle] Overview of cx_Oracle
How to start a simple WEB server that can execute cgi of php and python
A super introduction to Linux
A small memorandum of openpyxl
Build a speed of light web API server with Falcon
How to register a package on PyPI (as of September 2017)
Building an environment to execute python programs on AWS EC2
[End of 2020] A memo to start using AWS CLI (Version 2)
A story about a GCP beginner building a Minecraft server on GCE
A memorandum of using eigen3
Introduction to vi command (memorandum)
Run the output code on the local web server as "A, pretending to be B" in python
Fixed-point observation of specific data on the Web by automatically executing a Web browser on the server (Ubuntu16.04) (2) -Web scraping-
Output the result of morphological analysis with Mecab to a WEB browser compatible with Sakura server / UTF-8
I tried to create a server environment that runs on Windows 10
A note on how to check the connection to the license server port
I made a web server with Raspberry Pi to watch anime
A command to easily check the speed of the network on the console
How to deploy a web application on Alibaba Cloud as a freelancer
Launched a web application on AWS with django and changed jobs
[AWS / Tello] Build a system to operate the drone on the cloud
How to continue processing after returning a response on aiohttp Server
Everything from building a Python environment to running it on Windows
Building a Python environment on Mac
Memorandum on Memoization of recursive series
Building a Python environment on Ubuntu
A memorandum to change to Manjaro Linux
Introduction to Python Hands On Part 1
[Python] A memorandum of beautiful soup4
Run a Linux server on GCP
A memorandum of files under conf.d
Run TensorFlow2 on a VPS server
A light introduction to object detection
A memorandum of closure survey contents
[AWS SAM] Introduction to Python version
I made a bot to post on twitter by web scraping a dynamic site with AWS Lambda (continued)
Use AWS lambda to scrape the news and notify LINE of updates on a regular basis [python]
I want to pass an argument to a python function and execute it from PHP on a web server
Upload data to s3 of aws with a command and update it, and delete the used data (on the way)
Future population of my town on Plotly/Dash to find a place to live