博文
目前显示的是 九月, 2022的博文
每次ubuntu12.04重启后,/etc/resolv.conf被重写为空或127.0.0.1
- 获取链接
- X
- 电子邮件
- 其他应用
今天遇到一个问题:每次ubuntu12.04重启后,/etc/resolv.conf被重写为空或127.0.0.1 经过网上查资料以及本人验证,一下方法是可行的: 1.编辑/etc/resolvconf/resolv.conf.d/tail (如果没有该文件,则建立一个文件名为tail的文本文件即可) 2.在里面添加:nameserver xxx.xxx.xxx.xxx xxx替换为你要的实际dns地址(我设置的是192.168.1.1) 这样每次重启后,它会将你所编辑添加的dns服务器写入/etc/resolv.conf中 使resolv.conf不至于每次都重置成空白或只剩127.0.0.1。
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
- 获取链接
- X
- 电子邮件
- 其他应用
ERROR: The certificate of `url' is not trusted. ERROR: The certificate of `url' hasn't got a known issuer.
- 获取链接
- X
- 电子邮件
- 其他应用
ERROR: The certificate of `url' is not trusted. ERROR: The certificate of `url' hasn't got a known issuer. If you are using Debian or Ubuntu, install the ca-certificates package: $ sudo apt-get install ca-certificates If you don't care about checking the validity of the certificate, use the --no-check-certificate option: $ wget --no-check-certificate https://download/url Note: The second option is not recommended because of the possibility of a man-in-the-middle attack.