标签 Debian 下的文章

编辑网络配置文件

/etc/network/interfaces

新增内容

iface ens3 inet6 static
address 2001:4860:4860:1111/112
gateway 2001:4860:4860::1
dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844

重新载入网络配置

/etc/init.d/networking reload

昨天发布了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/ 似乎限速.... 不推荐用