Frequently Asked Question
Setting up a Basic Web Server.
Last Updated 7 years ago
1. Establish an SSH connection to your server
2. Install the web server
3. Create a file called index.html in the /var/www/html directory
4. Press the i key to go into insert mode
5. Type some text in your new file.
6. Press ESC to go back to command mode.
7. Type :wq to wright the changes and quit the text editor.
Congratulations! You now have a working web server with some basic text.
ssh root@1.1.1.1
2. Install the web server
yum install httpd -y
3. Create a file called index.html in the /var/www/html directory
vim /var/www/html/index.html
4. Press the i key to go into insert mode
5. Type some text in your new file.
6. Press ESC to go back to command mode.
7. Type :wq to wright the changes and quit the text editor.
Congratulations! You now have a working web server with some basic text.