博文

目前显示的是 九月, 2022的博文

2022年9月29日,天气:晴

图片

每次ubuntu12.04重启后,/etc/resolv.conf被重写为空或127.0.0.1

今天遇到一个问题:每次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

 安装mysql5.7备份出现上面报错 需要给账号权限 GRANT PROCESS ON *.* TO '数据库用户'@'localhost'; flush privileges;

ERROR: The certificate of `url' is not trusted. ERROR: The certificate of `url' hasn't got a known issuer.

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.