Problem description
Install on the Linux serverFastDFS
(yum install git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget vim -y
) when the installation cannot be promptedyum repolist all
.Follow the prompts and try knocking inyum repolist all
But according to0
.So back to the first picture, this hintThere are no enabled repos.
. Blind guess if there is no installationwget
Source? On awget _v
Check the versionBoy, it’s not installedwget
.
To solve
The following is a demonstration of two servers with different Linux versions
- CentOS
- Ubuntu
Don’t know what Linux version of the server is available
lsb_release -a
View details about the current Linux distribution
1. CentOS
According to the netease “CentOS mirror used to help” : http://mirrors.163.com/.help/centos.html
- First of all, the backup
/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
Copy the code
If you can’t find the yum. Repos. D folder, create a mkdir /etc/yum
- Download the corresponding repo file and put it in
/etc/yum.repos.d/
(Please make corresponding backup before operation, if any)
- CentOS 7
with
ls
To view the file:
- Run the following command to generate the cache
# clear cache
yum clean all
# generate cache
yum makecache
Copy the code
- The installation
wget
yum install wget
Copy the code
2. Ubuntu
Ubuntu does not support the yum download and installation mechanism
You should use the apt-get package tool to install them separately:
apt-get install openssl
apt-get install libssl-dev
Copy the code