Installation management program under Linux environment-source code compilation and installation (apache) with detailed steps

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

Insert picture description here

Two, tar unzip the package

Enter the opt root directory,
Insert picture description here
move the dependent package to and install the package path, named apr and apr-util
Insert picture description here

Third, use yum to install a compiler that supports c/c++ programming language and pcre, expat, perl dependency package environment

Insert picture description here

Insert picture description here

Fourth, set the installation directory, install modules, etc. (./configure configuration)

Insert picture description here

Pay attention to it in the httpd directory

Results of the
Insert picture description here

Five, make compile and install the program

Insert picture description here

Sixth, modify the configuration file, open port 80, modify the domain name to www.qqq.com

Insert picture description here

Seven, start Apache and check whether the service and port are open

Insert picture description here

8. Mapping the host's IP and DNS domain name

Insert picture description here
#That is to add a new mapping

Nine, test whether it can be accessed normally

Access host
Insert picture description here

Install lynx, access the host, need to operate in the virtual machine, xshell cannot display the graphical interface

Insert picture description here
Use lynx to access the host
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/qyf158236/article/details/108351719