You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nmap localhost
Starting Nmap 7.70 ( https://nmap.org ) at 2019-04-10 15:29 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00023s latency).
Other addresses for localhost (not scanned): ::1
rDNS record for 127.0.0.1: www.fs.com
Not shown: 996 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
1080/tcp open socks
8090/tcp open opsmessaging
Nmap done: 1 IP address (1 host up) scanned in 6.50 seconds
http/https 协议
设置全局 git 代理。注意这里不需要设置
https.proxy
,Git Documentation 中没有这个参数。推荐使用
socks5h
协议,速度更快:若只针对
https://github.com
设置代理:取消代理:
ssh 协议
$ vim ~/.ssh/config
添加以下内容:
这里使用了
nc
(netcat
) 命令,具体的参数解析可以通过nc -h
查阅。查看本地 sock5 端口
nmap 是一款网络扫描和主机检测工具,可以用来扫描本地 sock5 占用的端口:
PS: 文章首发于 简书 ,欢迎大家关注。
The text was updated successfully, but these errors were encountered: