Requirements: Compile and install the apache software, modify the bound domain name to www.qqq.com after the installation is successful, start the service, check whether the service is started normally, and finally test whether the web site can be accessed normally.
1. Use xshell to download the installation package and dependency package to the virtual machine
Two, tar unzip the package
Enter the opt root directory,
move the dependent package to and install the package path, named apr and apr-util
Third, use yum to install a compiler that supports c/c++ programming language and pcre, expat, perl dependency package environment
Fourth, set the installation directory, install modules, etc. (./configure configuration)
Pay attention to it in the httpd directory
Results of the
Five, make compile and install the program
Sixth, modify the configuration file, open port 80, modify the domain name to www.qqq.com
Seven, start Apache and check whether the service and port are open
8. Mapping the host's IP and DNS domain name
#That is to add a new mapping
Nine, test whether it can be accessed normally
Access host
Install lynx, access the host, need to operate in the virtual machine, xshell cannot display the graphical interface
Use lynx to access the host