前期准备:
更新源:
编辑sources.list,将kali更新源加入其中
sudo vim /etc/apt/sources.list
国内更新源
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
更新源:apt-get update
1、apt-get update失败:
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
更新系统:apt full-upgrade
解决Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo vim /etc/resolv.conf ,添加:
nameserver 8.8.8.8
然后执行:
sudo /etc/init.d/networking restart
安装vim:
apt-get install vim
安装Java(https://blog.csdn.net/smile_from_2015/article/details/80056297)
配置完Java环境,执行: update-alternatives --config java
先看是否有openjdk,有的话卸载:apt-get remove openjdk*
安装elasticsearch:
1.进入elastic官网下载elasticsearch 点击打开链接,,选择tar,右键复制链接
2.进入命令行输入: wget https://artifacts