1)我需要从Snort网站下载并安装数据AcQuisition库(DAQ)。守则本身是众所周知的,不存在任何问题:
cd ~/snort_src
git clone https://github.com/snort3/libdaq.git
cd libdaq
./bootstrap
./configure
make
sudo make install2)安装之后,我应该更新上面的共享库:
sudo ldconfig问题来了..。
( 3)无论我尝试什么,我都无法传递这个"ldconfig"命令,下面是我的终端响应:
ubuntu@ubuntu-server:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
ubuntu@ubuntu-server:~$ sudo ldconfig
sudo: unable to resolve host ubuntu-server: Name or service not known
ubuntu@ubuntu-server:~$ ldconfig
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
ubuntu@ubuntu-server:~$ su; ldconfig
Password:
root@ubuntu-server:/home/ubuntu# ldconfig
root@ubuntu-server:/home/ubuntu#
root@ubuntu-server:/home/ubuntu# exit
exit
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
ubuntu@ubuntu-server:~$
ubuntu@ubuntu-server:~$ sudo /sbin/ldconfig
sudo: unable to resolve host ubuntu-server: Name or service not known4),因为我对所有这些都非常陌生(我只想安装SNORT+GRAFANA),所以在这一点上我陷入了困境.希望有人能帮我.
我已经检查了一些解决方案(.bashrc,.)但没什么能帮上忙。在库没问题之前我不能运行我的SNORT安装..。
发布于 2020-06-25 15:27:36
关于ldconfig问题,Mr.steeldriver在下面的评论中提供了解决方案:
这是正常的--如果您想“看到”某个东西,请在详细模式下运行它,比如sudo -v - steeldriver 1
如下所述的变化情况:
cat /etc/hostname #You get your hostname here
sudo nano /etc/hosts #You make changes here (save after CTRL X)
127.0.0.1 localhost #Original code
127.0.0.1 localhost localhost.localdomain ubuntu-server #Changed code with hostname https://askubuntu.com/questions/1253450
复制相似问题