3. 本⽇日作成したいサーバOSを選択
Linux サーバ (Amazon Linux)
• SSHでログインしてApacheを⽴立立ちあげる
• SSHの認証鍵を使⽤用してログイン
Windows サーバ (Windows Server 2012 R2)
• リモートデスクトップ (RDP) でログインしてIISを⽴立立ちあげる
• SSHの認証鍵を使⽤用してAdministratorパスワードを取得して、
ログイン
Linux
Windows
利利⽤用される端末はサーバOSに関係なく
Windows, Mac どちらでも構わない
16. 多様なOS/⾔言語/ミドルウェアが選べる
オペレーティングシステム ⾔言語 & ライブラリ アプリケーション
The
imag
e
cann
ot
be
displ
ayed
The image cannot be displayed.
Your computer may not have
enough memory to open the
image, or the image may have
been corrupted. Restart your
computer, and then open the file
again. If the red x still appears,
you may have to delete the
image and then insert it again.
101. EC2Config サービス
EC2独⾃自のカスタマイズツール
Windows AMIで標準インストール済み
スタートスクリーンから、
「EC2 ConfigService Settings」で起動
Sysprep, 管理理者パスワード初期化
Windowsイメージのカスタマイズが
可能
• Set Computer Name
• User Data
• Eventlog
• Wallpaper Information
Windows
102. Sysprepの実⾏行行
スタートスクリーンから「EC2 ConfigService Settings」で起動して、
sysprepを実⾏行行します。OSは⾃自動的にシャットダウンされます。
1. [Image]タブをクリック
2. [Random]をクリック
4. [はい]をクリック3. [Shutdown with Sysprep]
をクリック
Windows
158. 158
ファイルシステムを拡張する
• 以下のコマンドを実⾏行行し、ファイルシステムをリサイズします。
• リサイズ処理理の進捗が表⽰示され、しばらくすると完了了します。
$ sudo resize2fs /dev/xvda1
$ sudo resize2fs /dev/xvda1
resize2fs 1.42 (29-‐‑‒Nov-‐‑‒2011)
Filesystem at /dev/xvda1 is mounted on /; on-‐‑‒line resizing required
old_̲desc_̲blocks = 1, new_̲desc_̲blocks = 2
Performing an on-‐‑‒line resize of /dev/xvda1 to 5242880 (4k) blocks.
The filesystem on /dev/xvda1 is now 5242880 blocks long.
Linux