Mount the image into the Cd/media CD package
RPM-IVH gcc Finish installation completed
.1. Download the tar httpd first. GZ to root host directory
The first step is to unpack the tar-zxvf httpd suffix named tar. Gz
2-c Specify the location I usually unzip in/usr/src/then CD switch path to/usr/src/httpd3/
3. Enter the configuration installation location under current path./execute./Configure--PREFIX=/USR/LOCAL/SRC/HTTPD--enable-so Open
--ENABLE-CGI Open Public Gateway Interface
Then come out a bunch of input information.
4. Compile and install a piece of execution using the meaning of & make &&make Install
5. Use the VIM editor because my current path is in the host directory so I hit the absolute path vim/usr/local/src/httpd/conf/httpd.conf
6. Change the server:80 to cancel the previous # I insertion mode
ESC Exit shift+: Enter Wq save and exit
7. Next configure the IP address Vim/etc/sysconfig/network-scripts/ifcfg-eth0
8.DHCP static Onboot no change to Yes
- Enter Capital ipaddr=192.168.1.10
netmake=255.255.255.0
Wq Saving and exiting the service network restart restart activating the NIC
Open Apache/usr/local/src/httpd/apache Start
Open Firefox input 127.0.0.1 or 192.168.1.10
LT works Apache works fine ...
The summary is not good, the idea is clear. If there are errors please point out, support!
Source Code Compilation Installation httpd