当前位置:网站首页>Share problems solved
Share problems solved
2022-06-30 06:02:00 【Flower master】
linux problem
One 、yum Could not find... While installing a piece of software mirrorlist.txt
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
resolvent :
1、 Switch to /etc/yum.repos.d/ Catalog :
# cd /etc/yum.repos.d/
2、 Back up old files as a precaution
# cp CentOS-Base.repo CentOS-Base.repo.old
3、 open vi CentOS-Base.repo And make the following replacement
[base]
name=CentOS-$releasever - Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
4、yum clean all and yum update
thus , Generally, it can be used .
If you encounter the following errors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again or http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
resolvent :
vim epel.repo, hold epel Of mirror shielding , hold baseurl Open and replace with https://vault.centos.org/6.10/os/$basearch/
Two 、linux Set up multiple network cards
ifconfig eth1:13 127.0.0.1( Yours ip) netmask 255.255.255.0 up
3、 ... and 、linux Next use ab Conduct post Mode pressure measurement
ab -c 1 -n 1 -v 4 -p 'post.txt' -T "application/x-www-form-urlencoded" "http://hdbdt.com/api/add"
-p: simulation post Requested data , The file format is a=1&b=2, coordination -T Use
-T:post Data used Content-Type Header information
-c: Represents the number of concurrent clients
-n: Represents the total number of concurrent
边栏推荐
- Solidity - Security - reentrancy attack
- Here comes the nearest chance to Ali
- What indicators should safety service engineers pay attention to in emergency response?
- STM32F103 series controlled OLED IIC 4-pin
- Turn off automatic outlining in Visual Studio - turning off automatic outlining in Visual Studio
- InputStream转InputStreamSource
- UE4_ Editor development: highlight the UI making method according to the assets dragged by the mouse (1)
- Switch to software testing and report to the training class for 3 months. It's a high paying job. Is it reliable?
- MySQL advanced (Advanced SQL statement)
- Related applications of priority queue
猜你喜欢

After getting these performance test decomposition operations, your test path will be more smooth

Codeforces C. Andrew and Stones

1380. lucky numbers in matrices

How does WPS cancel automatic numbering? Four options

文件操作IO-Part1
![[GPU] basic operation](/img/76/6b22368e3addd30aef1dd2258ee49a.jpg)
[GPU] basic operation

Basic operations of C language

OSPF - authentication and load balancing summary (including configuration commands)

STM32F103系列控制的OLED IIC 4针

Summary of redis learning notes (I)
随机推荐
[chestnut sugar GIS] global mapper - how to assign the elevation value of the grid to the point
STM32F103 series controlled OLED IIC 4-pin
Solidity - Security - reentrancy attack
Voting vault: a new primitive for defi and Governance
24、 I / O device model (serial port / keyboard / disk / printer / bus / interrupt controller /dma and GPU)
拼多多店铺搜索相关问题,为什么新品上架搜索不到
MySQL index
There is a group of students' score {99, 85, 82, 63, 60}. To add a student's score, insert it into the score sequence and keep the descending order
VLAN access mode
8 ways to earn passive income
Shenzhou ares tx6 boot logo modification tutorial
[ansible series] fundamentals -01
【LeetCode】236. Nearest common ancestor of binary tree
Codeforces C. Andrew and Stones
Idea of capturing mobile terminal variant combination
Sound net, debout dans le "sol" de l'IOT
Ultra simple STM32 RTC alarm clock configuration
Who is promoting the new inflection point of audio and video industry in 2022?
CompletionService使用及原理(源码分析)
Dynamic programming -- gliding wing of the strange thief Kidd