1
1

More than 3 years have passed since last update.

[AWS入門]AWSでWebサーバ構築備忘録

Posted at

AWSでサーバ立てたことないので立てた時のやつ
SSLは既存でワイルドカードの証明を作成ずみのやつがあったのでLBにつける。

やったこと

・VPCを作成する
・作成したVPCにサブネットを作成する
 ・LBは二つ以上のアベイラリティゾーンが必要らしいので二つ作成してみた
 ・アベイラリティゾーンの設定
・セキュリティグループの作成
・ゲートウェイの作成
・ルートテーブルの作成
・EC2サーバの作成(Amazon Linux)
 ・LEMP(MySQLはRDS)サーバの構築(厳密にはLEPだが)


yum update -y
amazon-linux-extras install nginx1
amazon-linux-extras install php7.4

自動起動

sudo systemctl start nginx.service
sudo systemctl enable nginx.service
sudo systemctl start php-fpm.service
sudo systemctl enable php-fpm.service

もろもろconf設定

・ロードバランサーにインスタンスを追加する 
 ・リスナーを追加する。ルール設定をしてなくてハマる

・以上
あとで加筆します。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1