分类: Linux
CentOS 编译安装 git 或 rrdtool 时报错 Can't locate ExtUtils/MakeMaker.pm...
报错文字
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/……
Linux 磁盘分区、格式化、目录挂载
2TB以下分区操作方案:
1. 显示当前主机目录
df -h
2.1 显示机器当前的磁盘:
fdisk -l
[root@localhost ~]# fdisk -l /dev/xvdb
Disk /dev/xvdb: 53.7……
CentOS YUM 出现 One of the configured repositories failed (Unknown)
问题复现
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing……
CentOS6.X 升级内核 至 3.10甚至更高
一、前言
由于安装Docker时,Docker支持或更高的版本
CentOS 7 (64-bit)
CentOS 6.5 (64-bit)
1. 查看当前系统的内核版本
more /etc/issue
2. 查看当前系……
Linux 清空历史记录
echo > $home./bash_history
禁止 yum update 自动更新系统内核
使用yum update更新系统软件时,禁止升级内核,可以防止产生因不兼容导致的未知错误。
设置前请先备份原设置文件yum.conf
cp /etc/yum.conf /etc/yum.conf.bak……
利用Nginx配置文件制作防盗链(宝塔环境)
使用教程
开启宝塔的Nginx防盗链功能
启用防盗链后,就成功了(在白名单以外的网站访问这个文件时不能下载,直接访问这个文件是可以进行下载的)
我们要求只……
Linux CentOS 修改 DNS服务器
使用方法
使用传统方法,手工修改:
编辑文件:vi /etc/resolv.conf
nameserver 223.5.5.5
nameserver 114.114.114.114
nameserver 2400:3200::1
CentOS 系统启用 root 账户
echo root:password |sudo chpasswd root
sudo sed -i 's/^.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^.*Password……