cmd 中git pull https://xx.xx.git报错error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset,

warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Counting objects: 179, done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

 

 

参考解决办法

https://blog.csdn.net/dsqcsdn/article/details/104821042/

在git clone laravel项目时报错
在这里插入图片描述
这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错
解决办法:

git config --global http.sslVerify "false"

解决效果

解决效果

D:\nlp\Repository>git clone https://code.aliyun.com/bonson-demo/domain_recognize_server.git
Cloning into 'domain_recognize_server'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Not Found
fatal: repository 'https://code.aliyun.com/XXX/domain_XXX_server.git/' not found

D:\nlp\Repository>git clone https://code.aliyun.com/XXX-demo/domain_recognize_server.git
Cloning into 'domain_recognize_server'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Counting objects: 189, done.
remote: Total 189 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (189/189), 1.12 GiB | 8.71 MiB/s, done.
Updating files: 100% (76/76), done.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以按照以下步骤配置rsync https://maven.aliyun.com/repository/public: 1. 首先安装rsync,如果你使用的是Ubuntu系统,可以通过以下命令来安装: ``` sudo apt-get install rsync ``` 2. 创建一个本地的目录,用来存放从阿里云下载的Maven仓库文件,例如: ``` mkdir -p /path/to/local/maven/repo ``` 3. 在阿里云的Maven仓库创建一个新的rsync用户,并分配一个密码。 4. 在本地创建一个rsyncd.conf文件,并将以下内容添加到文件: ``` uid = root gid = root use chroot = no max connections = 10 pid file = /var/run/rsyncd.pid [aliyun-maven] path = /path/to/local/maven/repo comment = Aliyun Maven Repository auth users = rsync secrets file = /etc/rsyncd.secrets list = true read only = false ``` 这个配置文件,我们创建了一个名为“aliyun-maven”的rsync模块,它会将所有的文件同步到本地的“/path/to/local/maven/repo”目录下。 5. 创建一个rsyncd.secrets文件,并将以下内容添加到文件: ``` rsync:your_password ``` 这里的“your_password”应该替换为你在第三步设置的rsync用户的密码。 6. 确保rsyncd.conf和rsyncd.secrets文件的权限设置为只有root用户可读取和写入。 ``` sudo chmod 600 /etc/rsyncd.conf sudo chmod 600 /etc/rsyncd.secrets ``` 7. 在阿里云的Maven仓库使用rsync命令同步文件到本地: ``` rsync -avz --delete rsync://rsyncuser:password@maven.aliyun.com/repository/public/ /path/to/local/maven/repo/ ``` 这个命令会将阿里云Maven仓库的所有文件同步到本地的“/path/to/local/maven/repo”目录下。 8. 启动rsync服务: ``` sudo systemctl start rsync ``` 9. 验证配置是否正确。你可以使用以下命令来查看rsync服务是否在运行: ``` sudo systemctl status rsync ``` 如果服务正在运行,你可以尝试从本地访问阿里云Maven仓库的文件,看看是否可以正常访问: ``` ls /path/to/local/maven/repo ``` 以上就是在Ubuntu系统配置rsync https://maven.aliyun.com/repository/public的详细步骤。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值