导航:首页 > 操作系统 > linuxcurl升级

linuxcurl升级

发布时间:2022-12-24 00:09:01

‘壹’ linux用curl命令下载中断后,再下载时提示TLS连接非正常中断怎么解决

1 首先进入Linux操作系统,打开终端;输入nss更新命令:yum update nss 然后按回车键; 2 输入:y,按回车键; 3 下载更新完成! 4 最后输入:/etc/init.d/php-fpm restart 命令;重启php-fpm。

‘贰’ linux中安装curl组件

你的服务器是什么发行版,建议尽量使用发行版支持的软件包直接安装,而不是自己编译

你找的教程跳过了很多步骤 很明显的地方在于

# tar -zxf curl-7.17.1.tar.gz

{ 这里缺失了一个进入目录的命令 ,即 # cd curl-7.17.1 }

# ./configure --prefix=/usr/local/curl

因为没有进入curl的源码目录 自然找不到configure文件

‘叁’ linux 怎么升级替换旧版本的CURL

# curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
[root@iZ259r7h4pfZ ~]# yum install -y curl
Loaded plugins: security
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.7 MB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package curl.x86_64 0:7.19.7-46.el6 will be updated
---> Package curl.x86_64 0:7.19.7-53.el6_9 will be an update
--> Processing Dependency: libcurl = 7.19.7-53.el6_9 for package: curl-7.19.7-53.el6_9.x86_64
--> Running transaction check
---> Package libcurl.x86_64 0:7.19.7-46.el6 will be updated
--> Processing Dependency: libcurl = 7.19.7-46.el6 for package: libcurl-devel-7.19.7-46.el6.x86_64
---> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be an update
--> Running transaction check
---> Package libcurl-devel.x86_64 0:7.19.7-46.el6 will be updated
---> Package libcurl-devel.x86_64 0:7.19.7-53.el6_9 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Updating:
curl x86_64 7.19.7-53.el6_9 updates 197 k
Updating for dependencies:
libcurl x86_64 7.19.7-53.el6_9 updates 169 k
libcurl-devel x86_64 7.19.7-53.el6_9 updates 247 k

Transaction Summary
============================================================================================================================================================================================================
Upgrade 3 Package(s)

Total download size: 614 k
Downloading Packages:
(1/3): curl-7.19.7-53.el6_9.x86_64.rpm | 197 kB 00:00
(2/3): libcurl-7.19.7-53.el6_9.x86_64.rpm | 169 kB 00:00
(3/3): libcurl-devel-7.19.7-53.el6_9.x86_64.rpm | 247 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.3 MB/s | 614 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libcurl-7.19.7-53.el6_9.x86_64 1/6
Updating : libcurl-devel-7.19.7-53.el6_9.x86_64 2/6
Updating : curl-7.19.7-53.el6_9.x86_64 3/6
Cleanup : libcurl-devel-7.19.7-46.el6.x86_64 4/6
Cleanup : curl-7.19.7-46.el6.x86_64 5/6
Cleanup : libcurl-7.19.7-46.el6.x86_64 6/6
Verifying : libcurl-devel-7.19.7-53.el6_9.x86_64 1/6
Verifying : libcurl-7.19.7-53.el6_9.x86_64 2/6
Verifying : curl-7.19.7-53.el6_9.x86_64 3/6
Verifying : libcurl-devel-7.19.7-46.el6.x86_64 4/6
Verifying : curl-7.19.7-46.el6.x86_64 5/6
Verifying : libcurl-7.19.7-46.el6.x86_64 6/6

Updated:
curl.x86_64 0:7.19.7-53.el6_9

Dependency Updated:
libcurl.x86_64 0:7.19.7-53.el6_9 libcurl-devel.x86_64 0:7.19.7-53.el6_9

Complete!
[root@iZ259r7h4pfZ ~]# curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

‘肆’ linux 上 curl是什么意思

-s表示不显示额外信息,只显示网页的源码。
-m表示获取网页的最长时间
-m 表示如果10秒内无法完成获取网页源码的操作,则放弃

‘伍’ Linux中PHP如何安装curl扩展方法

这个要针对具体版本,如果是ubuntu系统:apt-get install curl libcurl3 libcurl3-dev php5-curl
然后重新启动apachde:sudo /etc/init.d/apache2 restart

如果是CentOS7.0系列的:使用yum install php5* curl*后用systemctl restart apache2就行了。。

‘陆’ Linux运维命令Curl - 日常用法总结

在Linux系统中,curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令行工具。它支持文件的上传和下载操作,是综合传输工具,习惯上称url为下载工具。下面就日常运维中基于curl命令使用做下总结

一、Curl命令用法

1. curl语法和参数选项
# curl [option] [url]

curl常见参数

2. curl使用说明
curl是一种命令行工具,作用是发出网络请求,然后得到和提取数据,显示在"标准输出"(stdout)上面。它支持多种协议,下面说下curl命令的日常使用示例:

3. curl上传文件的用法(POST请求方式)
一般来说,我们都会用curl下载网页,但是curl上传文件则不常用。下面说下curl模拟"multipart/form-data"形式的form上传文件, 命令稍稍复杂些。

4. curl常用示例

5. curl命令的超时时间

二、Curl的GET、POST、PUT、DELETE请求

1. GET、POST、PUT、DELETE含义与区别

2. GET、POST、PUT、DELETE四种请求方式的curl访问

‘柒’ linux能直接支持curl命令么

linux系统分好多种,一般情况是可以直接使用的,系统默认自带。

如果没有的话,可以直接安装,安装分为两种

  1. yum源安装通常至的centos、redhat系列例如yum -y install curl

    ubuntu 则用 apt-get install curl

  2. 源码安装,获得安装包,从网上直接下载或者其他途径,这里直接wget

# wget http://curl.haxx.se/download/curl-7.20.0.tar.gz
--解压到当前目录(或者http://www.linuxidc.com/Linux/2014-08/106022.htm)
# tar -zxf curl-7.20.0.tar.gz
--进入解压后的目录内
# cd curl-7.17.1
--配置,指定安装的目录,这里是“/usr/local/curl”
# ./configure --prefix=/usr/local/curl
--
# make
--安装
# make install
--安装完毕

使用:
将curl命令加入环境变量,
命令行里执行(仅对本会话起作用,或者在.bash_profile、.bashrc文件里配置环境变量):
# export PATH=$PATH:/usr/local/curl/bin

设置环境变量
#vi /etc/profile 添加以下内容: export PATH=$PATH:/usr/local/curl/bin

‘捌’ Linux安装curl的过程,配置,安装软连接都成功了,不知道是改了哪,输入任何curl命令毫无反应。

  1. Linux中curl 是发请求

  2. curl 后面跟上你要请求的地址

  3. 希望可以帮助你 请 采纳 谢谢

‘玖’ 阿里云linux 怎么安装curl

1、下载curl安装包。(我的php是4.4.4的,下载最新的curl 7.16 不能使用,最后下载7.14的才可以,所以要注意一下版本问题)./configuremakephp要求curl的目录要有include和lib目录,并且include下要有easy.h 和curl.h两个文件,lib下要有libcurl.a。经编译后include下的文件有了,但是lib目录下没有。原来生成到lib/.libs目录下,所以要到lib目录。2、进入安装原php的源码目录,cd extcd curlphpize./configure --with-curl=DIRmake就会在PHPDIR/ext/curl/moudles/下生成curl.so的文件。3、复制curl.so文件到extensions的配置目录,修改php.ini就好。阿里云linux 怎么安装curl

‘拾’ linux curl 命令怎么在windows上实现

1、根据自己的操作系统位数和是否需要SSL下载相应的版本。
这里下载curl-7.33.0-win64-ssl-sspi.zip,下载完成之后解压到需要使用curl命令的目录。这里为了方便我先直接解压到当前目录。

2、在本窗口下打开运行该命令
【没有建立系统环境变量,所以只能在本目录下运行】,检测是否可以正常运行

注意:
想得到上面的“在此处打开命令窗口(W)”,请使用键盘 Shift+鼠标右键 即可
C:\common_command>curl -v -X OPTIONS https://www..com/ *Adding handle: conn: 0x205e100 *Adding handle: send: 0 *Adding handle: recv: 0 *Curl_addHandleToPipeline: length: 1 * -Conn 0 (0x205e100) send_pipe: 1, recv_pipe: 0 *About to connect() to www..com port 443 (#0) * Trying 220.181.112.244... * Connectedto www..com (220.181.112.244) port 443 (#0) *SSLv3, TLS handshake, Client hello (1): *SSLv3, TLS handshake, Server hello (2): *SSLv3, TLS handshake, CERT (11): *SSLv3, TLS alert, Server hello (2): * SSLcertificate problem: unable to get local issuer certificate*Closing connection 0 curl:(60) SSL certificate problem: unable to get local issuer certificate Moredetails here: http://curl.haxx.se/docs/sslcerts.html curlperforms SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CAcerts). If the default bundle file isn't adequate, you can specify analternate file using the --cacert option. Ifthis HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verificationprobably failed e to a problem with the certificate (it might beexpired, or the name might not match the domain name in the URL). Ifyou'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. C:\common_command>
4、加入系统环境变量

用户变量和系统变量的区别:
答: 用户变量:指在该用户登录后该环境变量有效。
系统变量:指任何用户登录该系统,该环境变量都有效。
怎么使用:判断该环境变量是否敏感或者是否有用户限制,如果没有则配置在系统变量;否则请根据敏感度或者限制情况配置在用户的环境变量,有利于安全。

5、在其他路径下测试是否可以使用CURL命令

成功!
6、该命令常用作用
答:
1、用于查看该网站可以允许有哪些http请求 【常用:GET, HEAD, POST,PUT, DELETE, OPTIONS】
我们经常不希望有PUT和DELETE请求,如果有则需要关闭;因为容易造成一些安全问题。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 [zhang@zhang ~]$ curl -v -X OPTIONS https://www.aliyun.com/ *About to connect() to www.aliyun.com port 443 (#0) * Trying 42.156.220.114... connected *Connected to www.aliyun.com (42.156.220.114) port 443 (#0) *Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSLconnection using TLS_RSA_WITH_AES_128_CBC_SHA *Server certificate: * subject: CN=*.aliyun.com,O="Alibaba(China) Technology Co., Ltd.",L=HangZhou,ST=ZheJiang,C=CN * start date: 12月 14 10:47:07 2015 GMT * expire date: 12月 14 10:39:17 2016 GMT * common name: *.aliyun.com * issuer: CN=GlobalSign OrganizationValidation CA - G2,O=GlobalSign nv-sa,C=BE >OPTIONS / HTTP/1.1 >User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 >Host:

阅读全文

与linuxcurl升级相关的资料

热点内容
项目经理叫醒程序员 浏览:342
autocad旋转命令 浏览:660
手机版wpsoffice怎么打包文件夹 浏览:579
在成都学车用什么app 浏览:818
grep命令管道 浏览:426
java修改重启 浏览:567
单片机供电方案 浏览:770
airpodspro一代怎么连接安卓 浏览:218
豌豆荚app上有什么游戏 浏览:283
公路商店app标签选什么 浏览:337
linuxoracle命令行登录 浏览:226
android深度休眠 浏览:171
php微信开发例子 浏览:845
医得app登录密码是什么 浏览:142
spring开发服务器地址 浏览:411
服务器上如何查看服务器的端口 浏览:678
单片机服务器编译 浏览:770
单口usb打印机服务器是什么 浏览:859
战地五开服务器要什么条件 浏览:956
在word中压缩图片大小 浏览:255