We go to Apache official website to download him, address: http://httpd.apache.org/
The right mouse button to copy his address, and then to the Linux server to do wget to download it, as follows:
This is done as follows:
Then unzip her:
Then go to the newly extracted directory:
Then compile it for her:
./configure--PREFIX=/USR/LOCAL/HTTPD
OK, compile a little problem all the wood takes place ....
then compile directly.
Make && make install
Then make the install under execute:
This is done as follows:
Then we go into the httpd directory and see.
Then we go to the bin directory to see:
In here we can see that there is a file called Apachectl, and we start him up a bit.
But at this time he reported a mistake:
Wood thing, we go to his config directory:/usr/local/httpd/conf, then go to modify the file under Httpd.conf
Enter inside directly press/then enter/ServerName, (press small N to move to the next) as shown below:
Let him modify the following as follows:
Then come to the/usr/local/httpd/bin directory and let him reboot.
So that he can start up, as shown below:
Kill lui lei dog---linux no:42 linux under compile Apache