Home  >  Article  >  System Tutorial  >  Centos package acquisition guide

Centos package acquisition guide

PHPz
PHPzforward
2024-01-10 23:26:07971browse

In many cases we use secureCRT to control our remote server. When operating our server, we need to install some software packages to the server. There are three main ways:

1. Install directly through the server's knowledge base, such as centos' yum, Ubuntu's apt-get, etc.

2. The rz-sz software uploads the local program to the server and then installs it.

3. Obtain the network installation package through wget, which is the focus of this blog.

We can see through the man wget command that GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies (wget is a non-interactive download of files from the Web. An interactive network file download tool that supports http, https, ftp and other protocols, and also supports retrieval from http proxy servers), This means that the software we usually download through the browser can also be downloaded through wget, then There is no need to download to the local machine first, and then rz upload it to the server. Moreover, using wget to download network files means that the server directly connects to the network file download server instead of going through the local machine, which is faster! , let’s give an example to explain why wget should be used:

For example, if we want to download hbase now, there are two steps we need to do to use wget to download hbase:

1. Select the version you want to download in the browser and click download. The pop-up download box will contain the URL address of the hbase we need to download. Copy the address.

2. Use wget on the server to download the url address you just copied. This url address will be available in the future.

Finally, I will explain a special situation. For example, when downloading Oracle's jdk, the steps are the same as above, except that there is an additional verification process in the middle. When downloading jdk, Oracle generates a string of http ://download.oracle.com/otn-pub/Java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz?AuthParam=1461604911_1685c89ddb426b301bc2a91773a3d634 The last authParam is dynamically generated. In other words, each download is different. So you have to re-obtain the url every time you download.

The above is the detailed content of Centos package acquisition guide. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete