平常随笔

一、类Debian系统中,更新apt源时出现“W: GPG 错误:http://mirrors.aliyun.com/ubuntu xenial InRelease: 因为没有公钥,没法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32”,使用命令apache

(1)gpg --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5     #40976EAF437D05B5 为上述系统返回的NO_PUBKEY码ubuntu

(2)gpg -a --export 40976EAF437D05B5 | apt-key add -服务器

image.png

另附,国内可用key server列表:ide

keyserver.ubuntu.comspa

pgp.mit.edu.net

subkeys.pgp.netserver

www.gpg-keyserver.deblog

以后即可以apt-get update更新apt源了ssl


二、类Debian系统中,网卡配置文件在/etc/network/interfaces,get

(1)动态获取的配置方法:

auto eth0

iface eth0 inet dhcp

(2)静态分配的配置方法:

auto eth0

iface eth0 inet static

address 192.168.0.1

netmask  255.255.255.0

gateway  192.168.0.1

根据配置要求(是动态分配仍是自动获取)修改该配置文件保存。


三、使用apache2搭建https服务器,设置完证书重启apache2后,登陆https没法链接,检查没有443端口,须要拷贝/etc/apache2/mod_available中的socache_shmcb.load ssl.conf ssl.load到/etc/apache2/mod_enabled,以后重启apache2

相关文章
相关标签/搜索