1. Install Epel source
Epel (Extra Packages for Enterprise Linux) is a project based on Fedora that provides additional packages for the operating system of the Red Hat system, for Rhel, CentOS, and scientific Linux. It has many normal machine source does not have the installation package, recommends installs the system after installs the Epel source;
Yum Install Epel-release-y
Yum Update
2. Find the installation of the RPM package tips
Find a machine that can be networked (you can install Epel "package comparison complete")
Change the keepcache=1 in the/etc/yum.conf;
Then use yum to download the control, and finally go to/var/cache/yum/x86_64/7/under the search (use Yum download status will be prompted to download to the Base/update/epel folder), and then the corresponding folder in the packages can be queried;
3. Offline installation package download address: (RPM mirror URL)
http://mirrors.163.com/centos/6/os/x86_64/Packages/
http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
4. The configuration is free of secret login (lazy person use, can transmit file without password to each other)
SSH-KEYGEN-T rsa-b 2048 return car return return
Ssh-copy-id $IPs # $IPs include itself for all node addresses, enter Yes and root passwords as prompted
5.GCC compilation
https://blog.csdn.net/hjbcww/article/details/72761066
6. Install intranet Yum source using Yum Installation
① New Mkdir/media/packages (This is my warehouse directory, optional)
Copy all RPM installation packages to the Yum source directory/mdeia/packages.
② upload Createrepo Install dependency pack, install Createrepo package manually with rpm command
Dependent packages required (I uploaded a copy: https://download.csdn.net/download/u013289746/10303950)
Createrepo:
createrepo-0.9.9-28.el7.noarch.rpm deltarpm-3.6-3.el7.x86_64.rpm libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm PYTHON-DELTARPM-3.6-3.EL7.X86_64.RPMRPM-IVH createrepo/*
③ will delete or back up all other repo files under/etc/yum.repos.d/, edit Centos-media.repo files,
Modified to:
[C7-media]
name=centos-$releasever-media
Baseurl=file:///media/packages
Gpgcheck=0
Enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-7
④cd/mdeia/packages
Createrepo./Create Data Warehouse
⑤yum clean all clear cache yum Makecache Create new cache
⑥yum list all test, or Yum command installation package
Yum Source installation Note that the Createrepo is required to be executed in the package directory each time the RPM package is imported.
Yum Clean all&& Yum Makecache
7. Normal installation source files
./configure
Make && make Install./configure is used to detect the target features of your installation platform. For example, it will detect if you have CC or GCC, not cc or GCC, it's a shell script. It is generally used by software developers, if not, when possible binary procedures, can be used directly;
Configure, this step is generally used to generate Makefile, to prepare for the next compilation, you can control the installation by adding parameters to the configure, such as code:./CONFIGURE–PREFIX=/USR means to install the software in/usr Below, the execution file is installed in/usr/bin (instead of the default/usr/local/bin), and the resource file is installed in/usr/share (instead of the default/usr/local/share). At the same time, some software configuration files can be set by specifying –sys-config= parameters. Some software can also be combined with –with, –enable, –without, –disable and other parameters to control the compilation, you can by allowing./configure–help See detailed instructions help.
Make, this step is compiled, most of the source code packages are compiled this step (of course some perl or Python software needs to invoke Perl or Python to compile). If error occurs during make, you should write down the error code (note Not only the last line), and then you can submit bugreport to the developer (typically with a submit address in INSTALL), or your system will have fewer dependent libraries, which requires you to study the error code carefully.
Make insatll, this command to install (of course some software needs to run make check or made test to do some testing), this step generally requires you to have root permissions (because you want to write to the system file).
8. Additional permissions guarantee who also does not have permission to this file
Usage scenario: A virus was discovered a while ago, when the process is killed, then the/tmp folder will automatically transfer two script files to perform the startup, there is no way, suddenly thought of this method,
RM-RF DDGS*RM-RF 2t3ik*
Touch 2T3IK.P
Chattr +i 2T3IK.P
Touch ddgs.3010
Chattr +i ddgs.3010
Description: Virus is 2T3IK.P and ddgs.3310 files, I first delete the original file, and then create a file, give this permission, who also did not operate the command, so as to solve the virus.
9. Close the firewall
Systemctl Stop Firewalld
Getenforce
Setenforce 0
Swapoff-a