LoginSignup
0
0

More than 1 year has passed since last update.

a simple user-data of ec2 httpd

Last updated at Posted at 2021-08-11

a simple user-data of ec2 httpd

#!/bin/bash
# Use this for your user data (script from top to bottom)
# install httpd (Linux 2 version)
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
echo "<h1>Hello World from $(hostname -f)<h1>" > /var/www/html/index.html
0
0
1

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
0
0