在本文中,我们将详细介绍gitclone报错SSLconnecterror的各个方面,并为您提供关于gitclone报错fatal的相关解答,同时,我们也将为您带来关于ajax上传图片chrome报错
在本文中,我们将详细介绍git clone 报错 SSL connect error的各个方面,并为您提供关于git clone 报错 fatal的相关解答,同时,我们也将为您带来关于ajax上传图片chrome报错net::ERR_CONNECTION_RESET/net::ERR_CONNECTION_ABORTED、com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down、connect-mongo:Error: Connection strategy not found、Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote ...的有用知识。
本文目录一览:- git clone 报错 SSL connect error(git clone 报错 fatal)
- ajax上传图片chrome报错net::ERR_CONNECTION_RESET/net::ERR_CONNECTION_ABORTED
- com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down
- connect-mongo:Error: Connection strategy not found
- Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote ...
git clone 报错 SSL connect error(git clone 报错 fatal)
git clone 报错 SSL connect error
author: yafeishi
tags: git
执行 git clone 报错:
[shboss@localhost1 tools]$ git clone https://github.com/ADBSQL/adb-ora2pg
Cloning into ''adb-ora2pg''...
fatal: unable to access ''https://github.com/ADBSQL/adb-ora2pg/'': SSL connect error
网上搜到的解决办法为:
sudo yum update nss
问题解决:
[shboss@localhost1 tools]$ git clone https://github.com/ADBSQL/adb-ora2pg
Cloning into ''adb-ora2pg''...
remote: Counting objects: 181, done.
remote: Total 181 (delta 0), reused 0 (delta 0), pack-reused 180
Receiving objects: 100% (181/181), 381.11 KiB | 143.00 KiB/s, done.
Resolving deltas: 100% (75/75), done.
Checking connectivity... done.
[shboss@localhost1 tools]$
ajax上传图片chrome报错net::ERR_CONNECTION_RESET/net::ERR_CONNECTION_ABORTED
网上搜了一下,base64图片太大,tomcat对post请求大小有默认限制,要在tomcat配置文件server.xml 加一个:maxPostSize="0",0表示无限制
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" maxPostSize="0"/>
我的项目是部署到\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps里面的
刚开始是修改d://里的tomcat的server.xml,无效
折腾一圈,修改eclipse里的server的配置,无效
最后,项目部署的目录里还有一个tomcat配置,这回总算行了吧,但依然无效
最后,maxPostSize="0"改成了maxPostSize="10485760",设的10M,成了!
刚刚查了下,有人说tomcat7 以上就不能设置0了,要做没有限制,可以设置为负数,未验证负数
折腾大半天,tomcat卸了装,装了卸,最后也算是成了
com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down
com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down
[ErrorCode]: Unknown
[RequestId]: Unknown
原因:如果你使用的 spring 的注入方式,那么所获取的 OSS 是一个单例对象。
当使用 ossClient.shutdown () 时,下一次请求将无法获取连接。
Spring 单例对象注入
1 @Bean
2 public OSS ossClient() {
3 return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
4 }
解决方案:使用多例注入 @Scope ("prototype"),或者直接 new OSSClientBuilder ().build (endpoint, accessKeyId, accessKeySecret)
1 @Bean
2 @Scope("prototype")
3 public OSS ossClient() {
4 // return new OSSClient(endpoint, accessKeyId, accessKeySecret);
5 return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
6 }
获取 OSS 对象,可以定义一个方法单独返回。那么每一次调用这个方法都会产生一个新的对象。
1 /**
2 * 获取ossClient对象(多例)
3 * 由于使用完成需要关闭,所以需要创建多例的ossClient对象
4 */
5 private OSS getOssClient(){
6 return ossConfiguration.ossClient();
7 }
connect-mongo:Error: Connection strategy not found
app.use(session({
secret: settings.cookieSecret,
key: settings.db,//cookie name
cookie: {maxAge: 1000 * 60 * 60 * 24 * 30},//30 days
resave: false,
saveUninitialized: true,
store: new MongoStore({
/*db: settings.db,
host: settings.host,
port: settings.port*/
url: ''mongodb://localhost/blog''
})}));
附:https://cnodejs.org/topic/567a1120222744630726b244
在此感谢!
Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote ...
查找网上资料解决方法如下
[root@localhost ssh]# service sshd start
Starting sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0622 for ''/etc/ssh/ssh_host_rsa_key'' are too open.#密钥文件权限不能为0644,0644权限太开放了,要求你的密钥文件不能被其它用户读取
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0622 for ''/etc/ssh/ssh_host_dsa_key'' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
/var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]
[root@localhost ssh]# chmod 700 /etc/ssh/ssh_host_rsa_key #修改一下密钥文件权限。
[root@localhost ssh]# service ssh restart
ssh: unrecognized service
[root@localhost ssh]# /etc/init.d/sshd restart
Stopping sshd: [FAILED]
Starting sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0622 for ''/etc/ssh/ssh_host_dsa_key'' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
/var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]
[root@localhost ssh]# chmod 700 ssh_host_rsa_key
[root@localhost ssh]# chmod 700 ssh_host_dsa_key
[root@localhost ssh]# service sshd restart
Stopping sshd: [FAILED]
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.#也是权限的问题
[FAILED]
[root@localhost ssh]# vim sshd_config
[root@localhost ssh]# chown -R root.root /var/empty/sshd
[root@localhost ssh]# chmod 744 /var/empty/sshd
[root@localhost ssh]# service sshd restart
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
关于git clone 报错 SSL connect error和git clone 报错 fatal的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于ajax上传图片chrome报错net::ERR_CONNECTION_RESET/net::ERR_CONNECTION_ABORTED、com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down、connect-mongo:Error: Connection strategy not found、Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote ...的相关信息,请在本站寻找。
本文标签: