Package Installation Method:
1, the compression package needs to be compiled after use
2, RPM package, can be used directly
RPM name contains information: Software name/software version number/system version/CPU architecture (32/64 bit)/file format
The RPM command uses:
1, install software RPM-IVH ***.rpm can install multiple packages at the same time,-I means installation
2, view software rpm-qa-q represents the query, a means all, verify whether the installation can rpm-q the specified software name
RPM-QL Query Software Installation location
Rpm-qi Query Software details
3, remove software rpm-e can add software shorthand can also add the full name, after installation is all written.
--nodeps Ignore dependency removal (same for installation)
4, software upgrade RPM--force Mandatory overwrite installation, can be used for upgrading
RPM Package Network Installation
1, direct installation RPM-IVH http://*****.rpm
2, first download after installation into the file download path wget http://*****.rpm
YUM
Yum itself is written in Python, and Yum is first configured with the Yum Source (Vim/etc/yum.repos.d/local.repo)
Yum Source Configuration method
Configure local Yum:
"Local" name=local Yumbaseurl=file:///medis/centos.
Enabled=1
Gogcheck=0
Yum install software Process:--->/media/centos_. Final-->repodata--> Find the package you need--install
Yum installation reads the Repodata file in the directory to determine dependencies
Custom Yum Source
1. Installing Createro Software
2, Mkdir/test
3. CP package/test
4, Createrepo/test
5. Modify the configuration file
Yum operation
Fuzzy Installation ———— Support *
Remove software ———— Yum Erase software name
Clear Cache ———— Yum Clear all
Create Cache ———— Yum Makecache
Configuring a Yum network source (similar to configuring a local source, changing the file address to a network address)
The retention of the installation package after the Yum installation is complete depends on the Keepcache option in the Yum configuration file yum.conf
The installation package retention location depends on the CACHEDIR option
Source Installation Python3
Process: wget Download source ==> prepare (install gcc/glibc) = = "Unpack = =" Run Configure script add compile parameter = = "Compile (gcc glibc) make===>make install installation
Join the python3.6 command
1, temporary modification, add python3.6 path to $path
2, permanent modification, add the modified path variable to the/etc/profile file, and add the export path, set as a global variable.
Linux Services
SSH Service ———— Remote Connection service
Server to install SSHD, the default will be installed
Why not connect: Need to shut down the firewall
Apache Services
Deployment steps:
1. Prepare the environment---shut down the firewall (service iptables stop), turn off SELinux (Setenforce 0)
2. Installation package httpd (yum install)
3. Modify the configuration file vim/etc/hppd/conf/httpd.conf
Configuration Note: listen:80 documentroot file root directory
4. Restart Service
5. Test to write a file in the root directory of the document, accessed through the browser
Fragmented knowledge
CPU has backward compatibility
View System version: Cat/etc/redhat-release
Temporary add Gateway command: Route add default GW 192.168.11.25
Ping not out of the network may be due to firewall, firewall shutdown: Service iptables stop empty firewall rule: iptables-f
Resolve the domain name two ways:
1, configuration file/etc/hosts priority query
2. DNS
Change computer name:
1. Temporarily modify the hostname host name
2, Permanent modification writing/etc/sysconfig/network
URL Format: Protocol (HTTP///file://) + path (IP address after the domain name is resolved)
Query Service Status: Services * *
Permanently shut down the firewall: chkconfig iptables off
Permanently off SELinux: Modify configuration file/etc/sysconfig/selinux parameter to disables
Python Full stack day08 notes