Scofield Peng 发布的文章

源文件:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

替换掉/etc/apt/source.list地址

任意一个即可,有钱了还是支持正版吧,开发不易~~~

5355-8639-1594-7229-2052
1049-9124-2397-1049-9348
5879-1361-3993-7957-2280
5632-5511-4451-4377-0570
2996-5429-2757-5021-3876
5585-9274-2947-1819-0912
1764-5459-4214-5301-3306
5535-8164-3057-6117-2109
3552-5593-2519-7145-0399
5915-4695-8052-7362-5757
4765-1931-5954-8501-2223
9365-5935-8651-7052-8664

Registered Name:https://zhile.io

License Key: 48891cf209c6d32bf4

ps:

ios11.3中解决安装ca证书仍然无法获取ssl内容的方法

前往Settings > General > About > Certificate Trust Testings,然后信任charles证书即可,如下图

iOSCertificateTrustSettings-576x1024.png

先获取到该进程号,然后执行:

ls -l /proc/xxx/fd

xxx为具体的进程号,输出例入下:

total 0
lr-x------ 1 namer namer 64 Jul 14 21:41 0 -> pipe:[271495439]
l-wx------ 1 namer namer 64 Jul 14 21:41 1 -> pipe:[271495440]
lr-x------ 1 namer namer 64 Jul 14 21:41 10 -> anon_inode:inotify
lrwx------ 1 namer namer 64 Jul 18 07:00 11 -> socket:[274231623]
l-wx------ 1 namer namer 64 Jul 16 17:27 12 -> /workspace/door-god/log/2017-07-18.log
l-wx------ 1 namer namer 64 Jul 17 23:05 13 -> /workspace/door-god/log/2017-07-18.log
lrwx------ 1 namer namer 64 Jul 18 11:30 14 -> socket:[274230820]
lrwx------ 1 namer namer 64 Jul 18 15:16 15 -> socket:[274234729]
lr-x------ 1 namer namer 64 Jul 16 07:36 16 -> /dev/urandom
l-wx------ 1 namer namer 64 Jul 14 21:41 2 -> pipe:[271495441]
lrwx------ 1 namer namer 64 Jul 14 21:41 3 -> socket:[274235127]
lrwx------ 1 namer namer 64 Jul 14 21:41 4 -> socket:[271495456]
lr-x------ 1 namer namer 64 Jul 14 21:41 5 -> anon_inode:inotify
lr-x------ 1 namer namer 64 Jul 14 21:41 7 -> anon_inode:inotify
lrwx------ 1 namer namer 64 Jul 14 21:41 8 -> anon_inode:[eventpoll]
lrwx------ 1 namer namer 64 Jul 14 21:41 9 -> socket:[271495458]

则为打开的文件数量,如果要快速获取文件数量,则可以:

ls -l /proc/xxx/fd|wc -l