apache stand-alone installation

Step one: apache official website to download apache,
Two Step: Turn on the virtual machine, hang a mirror
Sign in to get ip address (ifconfig)
Step 3: Connecting tool to connect
xshell connected and logged in,
step four: install apache trilogy (configure, compile, install )
1, mount the mirror (mount / dev / cdrom / dyy ( local warehouse configuration file to point to the path)) to view the uploading and downloading tools rz (rz) - "prompt is not found, change directory to the next src (cd / usr / local / src (installer default storage directory)), install (yum install lrzsz) -> prompt installation package size ok (y) -?> prompt installation is successful, upload and download of apache archive (rz), extracting archive (tar zxvf archive name)
2, configuration: switch to the extracting archive catalog, view catalog file (LS), the configuration does not distinguish between common operating system installation package (./configure --prefix = / usr / local / httpd ( = directory after customizable )) - "prompt no apr, installation apr (yum install apr) -> prompt success, continue (./configure --prefix = / usr / local / httpd) -" tips no apr (reasons: 1, there is no corresponding command 2, no library, 3, has the wrong version), install apr library (yum install apr-devel) - " prompt successful, proceed to the configuration command -" prompt no apr-util, install apr-util (yum install apr- util ) - "prompt successful, proceed to the configuration command -" prompt no apr-util, install apr-util library (yum install apr-util-devel ) - " prompt successful, proceed to the configuration command -" prompt no gcc, install gcc ( yum install gcc) - "prompt successful, proceed to the configuration command -" no pcre prompt, install pcre (yum install pcre) -> prompt existing pcre, install pcre library (yum install pcre-devel) - " prompt success continues configuration command - "prompt success,
3, compiler (the make)
4, installation ( make install)
5, the validation is successful No: Go httpd perform a directory (ls / usr / local / httpd), perform file directory view bin (ls / usr / local / httpd / bin) -> apachectl exist, start (/ usr / local / httpd / bin / apachectl start) - "prompt to configure domain settings, find the profile directory (ls / usr / local / httpd) -> conf, edit the configuration file (vi /usr/local/httpd/conf/httpd.conf), Search ServerName (written by / ServerName ago i) the removal of the previous comments, continue to save after the start command, parsed (virtual machine IP domain name), address bar, accessed within the host - "open, view the execution mode (getenforce) -> ban open (setenforce 0), open access domain, disable the firewall (systemctl stop firewalld.service), access to domain page shows: IT works

Guess you like

Origin blog.51cto.com/11437420/2412506