Cloud Hosting Linux Apache Web Services Deployment

Cache clear yum: yum clean all; (optional step)

Reinstall yum: yum makecache; (optional step)

Install httpd: yum install httpd;

yum:yum update;

Go httpd default landing page directory: cd / var / www / html;

Use the vi editor to edit the index.html file: vi index.html;

Edit content index.html file (the default is a blank file):

E.g:

<html>
    <head>
    </head>
    <body>
        <h1>Hello masterbu!</h1>
    </body>
</html>

 

After editing: Press ESC then enter: wq

Start httpd service: service httpd start;

Ip access the public network in the local browser:

The following link is Baidu course, also be successful:

https://jingyan.baidu.com/article/c14654138f12920bfcfc4c01.html

Published 69 original articles · won praise 25 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_40985788/article/details/88875941