标签 Debian 下的文章

昨天发布了Debian 10稳定版,马上就升级了,然后php-fpm就翻车了,出现了两个报错

Starting php-fpm /usr/local/php/sbin/php-fpm: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/local/php/sbin/php-fpm)

Starting php-fpm /usr/local/php/sbin/php-fpm: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory

然后修复办法是安装两个lib

apt install libcurl3 libicu57

突然发现我的debian机器不能使用dig和nslookup

root@jp:~# dig
-bash: dig: command not found
root@jp:~# nslookup
-bash: nslookup: command not found

使用下面命令安装软件包即可解决上述问题

apt install dnsutils

因为在软件源中要用到HTTPS进行传输,所以,首先安装apt-transport-https,否则会出现:
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

使用下面命令安装apt的ssl支持
apt-get install apt-transport-https

顺便分享几个SSL的源站
https://mirrors.ustc.edu.cn/
https://mirrors.aliyun.com/

https://mirrors.tuna.tsinghua.edu.cn/ 似乎限速.... 不推荐用

简单又直接的方法,直接关闭
echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6

或者调整v4/v6的优先级
修改 /etc/gai.conf
将#precedence ::ffff:0:0/96 100
把前面的#去掉

直接一点就是
echo "precedence ::ffff:0:0/96 100">>/etc/gai.conf