The first step we configure the environment: the yum and Linux ping through
1. We download apache service, enter: yum install httpd *
The default is dead 2. After installation is complete, give him start it, enter the command: systemctl start httpd
3. This time you open the browser input in the virtual machine localhost will get such an interface
4. Now we come to change the content of the page that appears, enter the command: cd / var / the WWW / HTML, we first enter this directory
Then, enter: encl ""> index.html in the "write what you want to display" inside.
5. This time again I visited localhost Web page becomes a result of your input
This may be considered completed,
But we had to build a folder called index.html, but if another name is not it, this is why
such as:
It is gone
However, add a /q.html, you look at
Because it is the default configuration file index.html suffix,
Input:
Turn down, to find this stuff,
We change it to this section, after completion of change
Enter the command: systemctl restart httpd restart the service, do not look optimistic
On here, like how to play, try them again.