
linux
飞翔的乌龟
这个作者很懒,什么都没留下…
展开
-
CentOS 开机出现错误信息:Could not apply the stored configuration for monitors
今天CentOS虚拟机开机出现如下图的错误信息:解决方案如下:1.按键:ctrl+alt+f2,然后使用账户进行登录。2.先查看/root/.config的目录下有没有monitors.xml文件,如果有则rm -ri monitors.xml删除文件3.如果/root/.config的目录下没有,则需要进入到在CentOS系统安装时创建的用户目录下,例如:/home/xxx/...原创 2019-11-11 19:44:04 · 1187 阅读 · 0 评论 -
linux下安装出现Unable to locate package错误解决办法
如果在linux执行 sudo apt-get install命令时出现以下情况:unable to locate package xxxxxx.先执行sudo apt-get update,原因是:之前更换了软件源,但是却没有update执行完成update后,直接sudo apt-get install即可完成...原创 2018-05-01 17:27:17 · 3002 阅读 · 0 评论 -
unbuntu 17.10版本更换阿里源和dns服务器地址
今天使用sudo apt-get update命令时出现fetch failed xxxx错误,百度得知是由于dns服务器地址和阿里源地址需要更换(百度一大堆,没有几个可以用的)。 下面提供一下本人刚刚解决的问题的方法。 dns服务器地址,修改/etc/resolv.conf文件内容:nameserver 119.29.29.29 nameserver 114.114.114...原创 2018-05-02 22:19:09 · 2181 阅读 · 0 评论 -
Ubuntu 出现The program 'make' can be found in the following packages问题的解决方法
今天运行make命令时,提示如下信息:The program 'make' can be found in the following packages: * make * make-guileTry: apt install <selected package> 运行一下命令即可解决:sudo apt-get install build-essential...原创 2018-05-02 22:30:26 · 13409 阅读 · 1 评论 -
host command not found,host命令不可用的问题
如果出现host command not found,host命令不可用的问题,如果在centos环境下使用yum install bind-utils进行安装bind-utils的软件包。如果是unbuntu环境下可以使用sudo apt-get install bind-utils进行安装。 关于bind-utils的软件包:bind测试工具、dig 域名解析工具、host 域名和I...原创 2019-06-17 18:31:02 · 12692 阅读 · 0 评论 -
Linux上使用locate命令出现locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
在Linux上使用locate命令时出现locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory,出现该提示信息时执行命令updatedb即可,注意执行updatedb命令时需要花费一点时间,耐心等待即可,执行完成后就可以正常使用locate命令了...原创 2019-07-11 16:49:21 · 639 阅读 · 0 评论 -
Linux的时间修改并永久生效
针对于Centos系统,需要同时修改系统时间和硬件时间,如果只是使用date修改系统时间,虽然是立即生效,但是系统重启后就会被还原。第一步:先查看硬件时间和系统时间是否一致,查看当前的系统时间date命令,查看当前的硬件时间hwclock --show。对比是否一致。第二步:如果系统时间和硬件时间不一致,则修改硬件时间,采用命令hwclock,例如:hwclock --set --date...原创 2019-07-16 10:16:37 · 4583 阅读 · 0 评论