标签:
一.Debian系列:Debian、Ubuntu等
1.修改apt-get源:
vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
2.安装lz4:
apt-get update
apt-get install liblz4-tool
3.解lz4文件:
lz4 -d 文件名
二.RedHat系列:Redhat、Centos、Fedora等
1.遇到: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
vi /etc/yum.repos.d/epel.repo
修改为: baseurl
#mirrorlist
2.修改yum源(好处利用国内资源下载更快):
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bk #备份
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo #下载阿里云的yum
yum clean all
yum makecache #使yum生效
3.第三方源EPEL:
rpm -q epel-release #检查EPEL是否安装
yum install epel-release #安装EPEL
4.安装lz4(其他包一样):
yum install lz4
yum install lz4-devel
5.解lz4文件:
lz4 -d 文件名
*关于xshell连接:关防火墙service iptables stop,开ssh服务service sshd start,用户配密码才能登
标签:
原文地址:http://www.cnblogs.com/Dleo/p/5758350.html