Linux compressed package installation, source code compilation

First open the settings on the virtual machine, check the connection
Insert picture description here
and create a new local connection on the application (Xftp 5 needs to be downloaded), follow the steps to set up
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
and then return to the command page and switch to the /opt directory to check if there is a compressed package
Insert picture description here

Steps

1. Verify the integrity of the compressed package. The official md5 value will be given when downloading: md5sum httpd-2.4.25.tar.gz
Insert picture description here
2. Set the mount point: mount /dev/cdrom /mnt
Insert picture description here
3. Unzip the compressed package: tar zxvf hpptd-2.4.25.tar.gz -C /opt
Insert picture description here
4. Enter httpd-2.4.25 directory: cd httpd-2.4.25/
Insert picture description here
5. Installation language environment: yum -y install gcc gcc-c++ make
Insert picture description here
6. Install http Dependent package relationship: 7 packages
Insert picture description here
7. ./configure configuration, here is added the path: ./configure --prefix=/usr/local/apache
Insert picture description here
8. Install make; make compile: make (Enter); make install (return) Car)
Insert picture description here
9. Enter the bin directory: cd /usr/local/apache/bin/
Insert picture description here
10. Edit httpd. conf: vi /usr/local/apache/conf/httpd.conf
Insert picture description here
Insert picture description here
Insert picture description here
last line mode save and exit: :wq

11. Open Apache: ./apachectl start
Insert picture description here
12. Check network service status and filter port 80: netstat -anutp |grep 80
Insert picture description here
13. Install client browser:

check network status
Insert picture description here
Insert picture description here
Insert picture description here
14. Client browse: Lynx 127.0.0.1
Insert picture description here
15. Yes It works if you search for your own address on the real machine. If not, turn off the operating system and the firewall of the real machine: the operating system is: systemctl (space) stop (space) firewalld; on the real machine I won't talk about it.

This is the installation

Like if you like it

Guess you like

Origin blog.csdn.net/XCsuperman/article/details/107238041