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 allBut according to0.So back to the first picture, this hintThere are no enabled repos.. Blind guess if there is no installationwgetSource? On awget _vCheck 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 availablelsb_release -aView details about the current Linux distribution

1. CentOS

According to the netease “CentOS mirror used to help” : http://mirrors.163.com/.help/centos.html

  1. 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

  1. Download the corresponding repo file and put it in/etc/yum.repos.d/ (Please make corresponding backup before operation, if any)
  • CentOS 7

withlsTo view the file:

  1. Run the following command to generate the cache
# clear cache
yum clean all
# generate cache
yum makecache
Copy the code
  1. The installationwget
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