Git: 解决 Failed to connect to github.com port 443 after 21058 ms Couldn’t connect to server1. 问题背景在使用 IDEA 通过 Git 将代码 push 到 GitHub 时,遇到了以下错误:
12Push failed unable to access 'https://github.com/xxxxx/xxxxx.git/': Failed to connect to github.com port 443 after 21058 ms: Couldn't connect to server
2. 出错原因经过查阅资料后,发现这是由于在使用 Git 时启用了网络代理,导致 Git 改变了默认端口,从而无法连接到 GitHub。因此,我们需要手动配置 Git 的代理端口来解决该问题。
3. 解决方案3.1 获取代理地址首先,打开 Windows 设置,点击 网络和 Internet,然后选择 代理。在 手动代理设置 栏目下,点击 编辑 来获取你当前的代理地址。
...
maven基础maven介绍maven是一个项目管理工具,主要是在项目开发阶段对Java项目进行依赖管理和项目构建。
项目构建:对Jar包的管理,通过导入maven坐标,就到入了相关的jar包
依赖管理:使用maven命令就可以完成项目的清理、编译、测试、报告、打包、部署
maven仓库类型本地仓库远程仓库
maven中央仓库:Central Repository: (maven.org)
maven私服,需自己搭建
其他公共远程仓库
maven常用命令
clean:清理编译生产的target文件
compile:将源代码编译成字节码文件,并放在target/class下
test:运行项目中的单元测试用例
package:将项目打包成可分发的格式,JAR,WAR或者EAR等
install:将项目打包并放在本地maven仓库
maven坐标书写规范12345<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</art ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
