全栈IT

  • 主页
  • 归档
  • Linux
  • Win
  • AI

全栈IT

  • 主页
  • 归档
  • Linux
  • Win
  • AI

033、DeepSeek在CentOS7上curl接入问题

2025-03-09
字数统计: 314字   |   阅读时长≈ 1分

在DeepSeek接入API的时候,使用curl的”-data-raw”参数的时候
一直报错,提示“option –data-raw:is unkown”

默认CentOS7的curl版本是8.12.1
[ CS7 root ~]#curl –version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
[ CS7 root ~]#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#备份镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

#备份原始命令
mv /usr/bin/curl /usr/bin/curl.bak


wget https://github.com/stunnel/static-curl/releases/download/8.12.1/curl-linux-x86_64-glibc-8.12.1.tar.xz
tar xvf curl-linux-x86_64-glibc-8.12.1.tar.xz
/root/curl --version
mv /root/curl /usr/bin/curl
chmod +x /usr/bin/curl




#版本验证
curl --version

[ CS7 root ~]#curl –version
curl 8.12.1 (x86_64-pc-linux-gnu) libcurl/8.12.1 OpenSSL/3.4.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 c-ares/1.34.4 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.7.0
Release-Date: 2025-02-13
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Largefile libz NTLM PSL SSL SSLS-EXPORT threadsafe TLS-SRP TrackMemory UnixSockets zstd
[ CS7 root ~]#

  • Linux
034、史上最好的sha256验证方式,使用自带powershell做校验,右键校验
032、光盘刻录,防篡改
目录,不存在的…
© 2010-2025 全栈IT
备案号:京ICP备13033196号-3