Compile and install and yum install

1. Compile and install

Source package: a package written by a programmer according to a specific format and syntax

Binary package: the package generated after the source package is successfully compiled

1.tar -xf httpd-2.4.29.tar.bz #Decompress source package

 2. Install dependent environment

 3. Configure the installation path

 4. Compile make and install

5. Turn off the firewall and security mechanism

6. Start the server

 7.curl 192.168.233.21

8. Stop service

9. Check whether the software is installed

rpm -q software

rpm [options] RPM package file

  -e -- uninstall software

-ivh -- Install new RPM packages

2. Local yum installation

yum composition

     1. Warehouse

         (1) Local warehouse (CD, mirror image)

        (2) Online warehouses (Alibaba Cloud, Huawei Cloud, etc.)

      2. Client (local server)

(1) Find the dependencies of the software installed by the root user, and whether there is any software you need to install in my warehouse

(2) Install all dependencies and installed software after downloading them.

(3) This installation method: After the download is complete, install it locally

(4) The program configuration file installed by yum is under /etc by default

1. mount

 2.df -h to see if it is mounted

 3. Enter yum.repos.d

 4. Create a new directory

 5. Put all files and directories under yum.repos.d into backup

 6. Enter to manually edit local.repo

 7. Manually edit local.repo

 8. Delete the yum cache and update

9. Use yum to install software

3. Online yum installation

 wget -O /etc/yum.repos.d/CentOS-Base.repo mirrors.aliyun.com/repo/Centos…

You can copy and paste directly to install

Four. Summary

  • Compile and install process
  • erected yu

Guess you like

Origin blog.csdn.net/2301_77498991/article/details/130693300