我正在为一个班级做一个项目,但一直遇到问题。教授和导师都无法提供帮助。我输入以下命令将 snort 安装到 Ubuntu 上:(DAQ 已安装)
sudo apt-get 安装 libluajit-5.1-2 libluajit-5.1-common libluajit-5.1-dev luajit sudo apt-get 安装 libdumbnet-dev wget https://www.snort.org/downloads/snort/snort-2.9.12.tar.gz tar xvzf snort-2.9.12.tar.gz cd snort-2.9.12 ./configure--enable-sourcefire--disable-open-appid 制作 检查安装 sudo dpkg -i snort_2.9.12-1_amd64.deb sudo ln -s /usr/local/bin/snort /usr/sbin/snort sudo ldconfig-v snort -V #用于测试snort 光盘 -
然后我下载了 snort 规则快照,并运行以下命令:
光盘 cd 下载 sudo mkdir -p /etc/snort sudo tar -xvzf snortrules-snapshot-29110.tar.gz –C /etc/snort/ sudo touch /etc/snort/rules/white_list.rules sudo touch /etc/snort/rules/black_list.rules sudo mkdir /usr/local/lib/snort_dynmicrules sudo mv /etc/snort/etc/* etc/snort
但是当我输入最后一个命令时sudo mv /etc/snort/etc/* etc/snort
,出现以下错误消息:
mv: target 'etc/snort' is not a directory
答案1
最后一个命令不正确。您收到mv: target 'etc/snort' is not a directory
错误消息是因为etc/snort
不是目录,而是/etc/snort
目录。最后一个命令应该是:
sudo mv /etc/snort/etc/* /etc/snort