Yum Experiment--install httpd2.2 (CENTOS6) using source package

Source: Internet
Author: User

1. Download the source website, the classroom server

Lftp 172.18.0.1
User Thirty-three Pass:thirty-three
Get files/httpd-2.4.27.tar.bz2
Exit
Tar xvf httpd-2.4.27.tar.bz2

[[Email protected] ~]#lftp 172.18.0.1Lftp 172.18.0.1:~> User thirty-threepassword:lftp Thirty[Email protected]:~>LSDRWXRWXR-X 2 506 506 4096 Jul 31 06:56FILESDRWXRWXR-X 2 0 0 4096 Jul 24 08:18Lab MANUALSDRWXRWXR-X 2 0 0 4096 Jul 09 10:03NOTESDRWXRWXR-X 2 0 0 4096 Jul 06 09:54PICTURESDRWXRWXR-X 2 0 0 4096 03 00:38SLIDESDRWXRWXR-X 0 0 4096 03 10:13videolftp Thirty[Email protected]:/>CD FILESLFTP Thirty[Email protected]:/files>ls-rw-r--r--1 506 506 49183336 Jul 11 11:13 67.0.3396. 99_chrome_installer.exe-rw-r--r--1 506 506 658940 Oct 08 2024Access_log-rw-r--r--1 506 506 5779739 Jul 07:36 httpd-2.2.34. tar.bz2-rw-r--r--1 506 506 6527394 Jul 07:36 httpd-2.4.27. tar.bz2-rw-r--r--1 506 506 102201640 Jul 06:56 linux-4.15.13. Tar.xz-rw-r--r--1 506 506 782 Jul 25 07:28MOTD-rw-r--r--1 506 506 72928 Jul 11 11:12skyzip?_proxy.crxlftp Thirty[Email protected]:/files> get httpd-2.2.34. tar.bz2 get:httpd-2.2.34. Tar.bz2:file already exists and Xfer:clobber is unsetlftp thirty[Email protected]:/files>Exit[root@centos6 ~]#Tar xvf httpd-2.2.34.tar.bz2[Root@centos6 ~]#lsAccess_log Desktop httpd-2.2.34Reset.shacl.bak Documents httpd-2.2.34. tar.bz2 Templatesacl.txt Downloads install.log Test.shanaconda-ks.cfg etc2018-07-24install.log.syslog videosbin etcdate+%F Musiccentos-6.8-x86_64-bin-Dvd1.iso fhj Picturescentos-6.8-x86_64-bin-dvd2.iso F.txt Public

2. Installing Development Tools

View a list of Yum groups

[[Email protected] ~]#Yum grouplistLoaded Plugins:fastestmirror, refresh-PackageKit, securitysetting up GroupProcessRepository Base is listed more than onceinchThe configurationrepository Epel is listed more than onceinchThe configurationloading mirror speeds from cached hostfilebase | 4.0 KB 00:00Epel| 4.3 KB 00:00installed groups:additional Development Base CIFS File Server compatibility libraries Console int Ernet Tools Debugging Tools Desktop Desktop debugging and performance tools desktop Platform development to Ols[root@centos6 ~]#Yum Groupinstall ' development Tools '

3. Check the Readme INSTALL

[[Email protected] ~]#CD httpd-2.2.34[[email protected] httpd-2.2.34]#lsabout_apache changes httpd.dsp libhttpd.dep NOTICE serveracinclude.m4 config.layout httpd.                Mak LIBHTTPD.DSP nwgnumakefile srclibapache.dsw Configure Httpd.spec Libhttpd.mak OS Supportbuild Configure.inchinclude LICENSE README testbuildall.dsp docs INSTALL Makefile.inchreadme.platforms VERSIONINGBUILDBIN.DSP Emacs-style INSTALLBIN.DSP Makefile.win readme-win32.txtbuildconf HTTPD.DEP LAYOUT Modules Roadmap

4../configure–help

./configure--prefix=/app/apache22--sysconfdir=/etc/apache22     DNF|yum install-y Apr-devel Apr-util-devel Pcre-devel

5.make-j 4 (see Change, but not)
6.make Install
7.export path= $PATH:/app/apache22/bin can write this line to/etc/profile.d/*.sh, and then source the file

vim/etc/profile.d/f.shexport PATH=$PATH:/app/apache22/bin[root@centos6 PROFILE.D]  #[[email protected] PROFILE.D]#./f.sh

8.apachectl Start Service

9.vim/var/www/html/h.html (Web-guided interface)

[[email protected] httpd-2.2.34] # vim/var/www/html/h.html [[email protected] PROFILE.D] # cat/var/www/html/h.html

10.iptables–f (firewall off)

[[email protected] PROFILE.D] # iptables-f

11. Browser Access

172.18.250.57/h.html

Yum Experiment-Install httpd2.2 (CENTOS6) using source package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.