To install Apache, below are the main commands.
sudo yum -y install httpd
to stop and start the server, below given the command
sudo service httpd start
sudo service httpd stop
sudo service httpd restart
once the server is installed, the files are in the folder
/var/www/html
the index html file can be replaced to get our own html file.
references:
https://docs.aws.amazon.com/efs/latest/ug/wt2-apache-web-server.html#wt2-apache-web-server-one-ec2-host
sudo yum -y install httpd
to stop and start the server, below given the command
sudo service httpd start
sudo service httpd stop
sudo service httpd restart
once the server is installed, the files are in the folder
/var/www/html
the index html file can be replaced to get our own html file.
references:
https://docs.aws.amazon.com/efs/latest/ug/wt2-apache-web-server.html#wt2-apache-web-server-one-ec2-host
No comments:
Post a Comment