In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Curl is an open source file transfer tool that uses URL syntax to work on the command line. It is widely used in Unix and various Linux distributions.
There is also a portable version under the Windows system.
Curl is particularly widely used in the installation script of many open source software and frameworks on github, such as minikube, a native running tool of Kubernetes.
There is a command in the installation script:
Curl-Lo kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl-s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl & & chmod + x kubectl & & sudo cp kubectl / usr/local/bin/ & & rm kubectl
The following url opens in a browser and finds that the txt file only maintains an up-to-date version number:
Https://storage.googleapis.com/kubernetes-release/release/stable.txt
So the placeholder defined by $in the following url
Https://storage.googleapis.com/kubernetes-release/release/$(curl-s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
Will be replaced with v1.11.2:
The final downloaded url:
Https://storage.googleapis.com/kubernetes-release/release/v1.11.2/bin/linux/amd64/kubectl
Another use of curl is to download the source code of the specified url, such as curl http://www.baidu.com
ABAP has a similar tool, function module HTTP_GET:
For more original Jerry articles, please follow the official account "Wang Zixi":
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.