curl

ubuntu环境下docker的安装与操作

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-06 02:28:20
只要按照本文的步骤一步步的走,就能正确的安装docker并使用, ubuntu需要 联网 1. 在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt-get update 安装包允许apt通过HTTPS使用仓库,(将下面的命令完全复制,然后粘贴到命令窗口) sudo apt- get install \ apt -transport- https \ ca - certificates \ curl \ software -properties-common 添加Docker官方GPG key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 设置Docker稳定版仓库 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" 添加仓库后,更新apt源索引 sudo apt-get update 安装最新版Docker CE(社区版) sudo apt-get install docker-ce 检查Docker CE是否安装正确 sudo docker run hello

How to fix curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated [duplicate]

扶醉桌前 提交于 2021-01-05 11:27:29
问题 This question already has answers here : “error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated” (1 answer) How to fix git error: RPC failed; curl 56 GnuTLS (26 answers) GitLab clone error RPC failed; curl 56 The requested URL returned error: 401 (1 answer) git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function (1 answer) GnuTLS recv error (-110): The TLS connection was non-properly terminated (2 answers) Closed last

How to fix curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated [duplicate]

旧巷老猫 提交于 2021-01-05 11:26:25
问题 This question already has answers here : “error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated” (1 answer) How to fix git error: RPC failed; curl 56 GnuTLS (26 answers) GitLab clone error RPC failed; curl 56 The requested URL returned error: 401 (1 answer) git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function (1 answer) GnuTLS recv error (-110): The TLS connection was non-properly terminated (2 answers) Closed last

docker-rancher-k8s-基础环境-1

拟墨画扇 提交于 2021-01-05 10:43:12
基于UCloud云centos7.2_X64环境搭建docker-rancher-k8s微服务环境 docker与其它数据统一的保存在/data/目录中 只需远程执行如下脚本即可完成升级内核与安装Docker步骤 修改服务器主机名,这里推荐采用主机内网IP,'.'替换成'-'便于查看,使用如下命令 或者将主机名根据作用命名 如rancher服务负载均衡rancher-proxy 如rancher服务节点1,命名为rancher_node01 如rancher服务节点2,命名为rancher_node02 #例子 hostnamectl --static set-hostname xxx-xxx-xxx-xxx #rancher代理服务 hostnamectl --static set-hostname rancher-proxy #rancher服务节点1 hostnamectl --static set-hostname rancher-node01 #rancher服务节点2 hostnamectl --static set-hostname rancher-node02 #坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑 /etc/hosts文件下一定要增加一行 主机ip 主机名 例:192.168.10.100(ip) 192-168-10-100(主机名)

curl 的用法指南

南楼画角 提交于 2021-01-05 04:05:48
简介 curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具的意思。 它的功能非常强大,命令行参数多达几十种。如果熟练的话,完全可以取代 Postman 这一类的图形界面工具。 本文介绍它的主要命令行参数,作为日常的参考,方便查阅。内容主要翻译自 《curl cookbook》 。为了节约篇幅,下面的例子不包括运行时的输出,初学者可以先看我以前写的 《curl 初学者教程》 。 不带有任何参数时,curl 就是发出 GET 请求。 $ curl https : / /www .example .com 上面命令向 www.example.com 发出 GET 请求,服务器返回的内容会在命令行输出。 -A -A 参数指定客户端的用户代理标头,即 User-Agent 。curl 的默认用户代理字符串是 curl/[version] 。 $ curl -A 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36' https : / /google .com 上面命令将 User-Agent 改成 Chrome 浏览器。 $ curl -A '' https

Sysdig Linux故障排查

天涯浪子 提交于 2021-01-04 12:59:37
背景: 服务器被黑后,一直有进程占用大量cpu,top命令无法显示找出相关进程。怀疑系统命令被替换,随后用sysdig排查问题。 sysdig https://support.sysdig.com 安装: rpm --import https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public curl -s -o /etc/yum.repos.d/draios.repo http://download.draios.com/stable/rpm/draios.repo yum list dkms rpm -i http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-8.noarch.rpm yum -y install kernel-devel-$(uname -r) #可能安装失败,直接安装相似的软件 yum list kernel-devel-* yum -y install sysdig 报错提示解决error opening device /dev/sysdig0. Make sure you have root credentials and that the sysdig-probe module is loaded. sysdig

pip使用详解指南

我怕爱的太早我们不能终老 提交于 2021-01-04 08:45:39
什么是pip? pip 是一个现代的,通用的 Python 包管理工具。提供了对 Python 包的查找、下载、安装、卸载的功能。 github项目地址 https://github.com/pypa/pip 如何安装pip 使用curl安装,在任意目录下,命令如下 注: 需要下载安装curl, 下载地址为: https://curl.haxx.se/download.html > curl https: // bootstrap . pypa . io / get - pip . py - o get - pip . py 待下载完,使用以下命令安装pip > python get-pip.py 等待下载完成,自动安装完成。 pip升级 可以使用以下命令,对pip进行升级: > pip install --upgrade pip 通过setuptools来安装pip 在确保python安装,并设置了正确的环境变量的情况下,直接用下面命令安装pip > easy_install pip 如下图所示 pip命令选项 通过help选项,可以输出pip所有选项,如图 pip常用命令示例 查看pip版本 安装xxx包,以requests为例 > pip install requests 安装指定版的包,以django为例 > pip install django==1.8 升级xxx包

C - Cmake compiling program with libcurl

房东的猫 提交于 2021-01-03 06:25:31
问题 I'm trying to use some curl code to test the lib but I can't compile it :( I'm using Clion (Cmake + gcc) and I've got a libcurl.a, a libcurl.dll and a libcurl.dlla What am I suppose to do with those 3 files ? This is my CmakeLists.txt : cmake_minimum_required(VERSION 3.10) project(curl_test2 C) set(CMAKE_C_STANDARD 99) ADD_DEFINITIONS( -DCURL_STATICLIB ) include_directories( "include" ) set(SRCS" srcs/main.c") set(HEADERS "include/curl/curl.h" "include/curl/easy.h") link_directories("lib")

C - Cmake compiling program with libcurl

▼魔方 西西 提交于 2021-01-03 06:24:42
问题 I'm trying to use some curl code to test the lib but I can't compile it :( I'm using Clion (Cmake + gcc) and I've got a libcurl.a, a libcurl.dll and a libcurl.dlla What am I suppose to do with those 3 files ? This is my CmakeLists.txt : cmake_minimum_required(VERSION 3.10) project(curl_test2 C) set(CMAKE_C_STANDARD 99) ADD_DEFINITIONS( -DCURL_STATICLIB ) include_directories( "include" ) set(SRCS" srcs/main.c") set(HEADERS "include/curl/curl.h" "include/curl/easy.h") link_directories("lib")

Window系统安装虚拟机,在虚拟机中安装Ubuntu过程记录

一曲冷凌霜 提交于 2021-01-02 15:30:07
1.虚拟机VirtualBox的下载 :下载地址为: https://www.virtualbox.org/wiki/Downloads 2.Ubuntu的系统镜像下载: https://www.ubuntu.com/download/desktop 3.安装过程: 可参照博客 http://liuwangshu.cn/framework/aosp/1-install-ubuntu.html 参照博客安装好Ubuntu系统后,进入操作系统桌面,是这样子: 4.这样子的Linux桌面系统就算安装好了。下面是一些 操作技巧小说明 : 4.1打开Linux命令行窗口: 方法一:在桌面上单击鼠标右键,选择“打开终端”,即可打开命令行窗口; 方法二:快捷键。我的是ctrl+Alt+T。这个可以打开桌面所有应用中的“设置”应用,进入到 设备---键盘,可以看到启动终端的快捷键。 4.2命令行安装应用 要用到某个程序,可以先在命令行输入一下,一个是看有没有安装,另一个是如果没装,会有安装的命令提示。 图中repo 和 git 都没有安装,提示安装的命令是 sudo apt install git 。这里跟参考博客中的安装命令稍稍不同。 4.3 虚拟机桌面窗口模式快捷键:(让虚拟机桌面是全屏,还是窗口间切换,不同模式下,模拟器的主菜单栏显示或不显示) ctrl+C 或 ctrl+F