admin管理员组

文章数量:1597400

wget -q -O - https://www.charlesproxy/packages/apt/PublicKey | sudo apt-key add

sudo sh -c 'echo deb https://www.charlesproxy/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'

sudo apt-get update

sudo apt-get install charles-proxy

本地8888被占用了,就改成了8989

然后,配置网络

然后就可以使用了。

# ifconfig

enp3s0 Link encap:以太网 硬件地址 2c:4d:54:65:de:6e

inet 地址:192.168.1.228 广播:192.168.1.255 掩码:255.255.255.0

inet6 地址: fe80::94ac:7b8b:f536:b07d/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1

接收数据包:52748 错误:0 丢弃:0 过载:0 帧数:0

发送数据包:32342 错误:0 丢弃:0 过载:0 载波:0

碰撞:0 发送队列长度:1000

接收字节:53700491 (53.7 MB) 发送字节:5451150 (5.4 MB)

lo Link encap:本地环回

inet 地址:127.0.0.1 掩码:255.0.0.0

inet6 地址: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:65536 跃点数:1

接收数据包:2194 错误:0 丢弃:0 过载:0 帧数:0

发送数据包:2194 错误:0 丢弃:0 过载:0 载波:0

碰撞:0 发送队列长度:1000

接收字节:586202 (586.2 KB) 发送字节:586202 (586.2 KB)

卸载

sudo apt-get remove charles-proxy

安装SwitchyOmega 插件

Proxy - Proxy SSL Settings - Add

设置完毕代理之后,访问域名chls.pro/ssl会自动下载一个pem后缀的证书。

``charles-proxy-ssl-proxying-certificate.pem```

安装证书

手机安装证书(访问链接chls.pro/ssl)

本文标签: 常用工具软件Ubuntu