http://technoblog.org/2009/07/configure-apt-get-to-use-a-proxy-ubuntu/ Open the following configuration file: /etc/apt/apt.conf.d/70debconf And add: Acquire::http::proxy “http://<IP_TO_PROXY>:<Proxy_Port_WEB>”; Acquire::ftp::proxy “ftp://<I…
在使用诸如git/curl等工具的时候,如果网络状况不佳,经常会产生出错中断的情况,于是我们就会发现晚上挂机的下载一些代码和工具包,早上再看已经中断. 为应对这种情况我们需要判断下载工具的运行结果,如果出错则要重新运行,而这个需求使用bash的脚本完全可以搞定,贴代码: #!/bin/bash ]; then echo '[Usage]' echo " $(basename ${0}) \"<command> <arguments>\"" e…
无论是使用Android Studio中,VCS >> Git >> Clone, 还是直接Git Clone命令,clone GitHub项目时,出现错误提示:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443     但此时,电脑访问网络已经通过梯子Shadowsocks,可以正常访问GitHub等资源. Shadowsocks配置如下:   Android Studio中,Prefer…
export ALL_PROXY=socks5://127.0.0.1:1086 git clone --depth 1 https://github.com/xxx/xxx.git unset ALL_PROXY…
简单备忘一下Linux下的wget和curl如何使用http proxywget -e "http_proxy=porxyhost:port" www.baidu.comcurl -x proxyhost:port www.baidu.com 如果需要用户名密码,格式curl -x "http://user:pwd@host:port" www.baidu.com 在Linux的命令行底下,一般的程序都是使用http_proxy和ftp_proxy这两个环境变量来获…
GIT中的操作 设置全局代理 git config --global http.proxy socks5://127.0.0.1:8088 git config --global http.proxy http://127.0.0.1:8088 设置当前代理 git config http.proxy socks5://127.0.0.1:8088 git config http.proxy http://127.0.0.1:8088 取消当前代理 git config --unset http…
Introduction The Apache web server can be configured to give the server administrator important information about how it is functioning and what issues, if any, need to be addressed. The main avenue for providing feedback to the administrator is thro…
下面简单介绍一下如何在Ubuntu上一步一步创建一个SQL Server AG(Always On Availability Group),以及配置过程中遇到的坑的填充方法. 目前在Linux上可以搭建两种类型的SQL Server AG,一种是高可用性的结构同时使用Cluster服务器提供业务连续性.这种结构包括read-scale节点.接下来就会介绍这种AG的搭建方法.另外一种是没有Cluster服务的read-scale AG,这种结构仅仅提供只读的可扩展性,不提供高可用性功能.关于如何创…
前言 最早Git是在Linux上开发的,很长一段时间内,Git也只能在Linux和Unix系统上跑.不过,慢慢地有人把它移植到了Windows上.现在,Git可以在Linux.Unix.Mac和Windows这几大平台上正常运行了. 要使用Git,第一步当然是安装Git了. 首先,你可以试着输入git,看看系统有没有安装Git: $ git The program 'git' is currently not installed. You can install it by typing: su…
下面简单介绍一下如何在Ubuntu上一步一步创建一个SQL Server AG(Always On Availability Group),以及配置过程中遇到的坑的填充方法. 目前在Linux上可以搭建两种类型的SQL Server AG,一种是高可用性的结构同时使用Cluster服务器提供业务连续性.这种结构包括read-scale节点.接下来就会介绍这种AG的搭建方法.另外一种是没有Cluster服务的read-scale AG,这种结构仅仅提供只读的可扩展性,不提供高可用性功能.关于如何创…