導航:首頁 > 操作系統 > 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升級相關的資料

熱點內容
linuxoracle命令行登錄 瀏覽:224
android深度休眠 瀏覽:169
php微信開發例子 瀏覽:843
醫得app登錄密碼是什麼 瀏覽:140
spring開發伺服器地址 瀏覽:411
伺服器上如何查看伺服器的埠 瀏覽:678
單片機伺服器編譯 瀏覽:770
單口usb列印機伺服器是什麼 瀏覽:859
戰地五開伺服器要什麼條件 瀏覽:956
在word中壓縮圖片大小 瀏覽:255
javatomcat圖片 瀏覽:419
程序員生產智能創意 瀏覽:67
匯和銀行app怎麼登錄 瀏覽:383
騰訊伺服器如何上傳源碼 瀏覽:747
單片機的原理概述 瀏覽:512
火控pdf 瀏覽:269
如何復制雲伺服器centos環境 瀏覽:988
債權pdf 瀏覽:305
紅色番字的app怎麼下載 瀏覽:876
雲伺服器流程教課 瀏覽:704