編碼的世界 / 優質文選 / 感情

centos7部署openvasV9


2022年5月17日
-   

參考:https://forums.atomicorp.com/viewtopic.php?f=31&t=8539#p44057https://wiki.openvas.org/index.php/Generate_a_PDF_report
應特別注意,openvas更新很快,本文章僅描述了當前版本和特定環境的部署。基礎環境描述如下。環境相關版本並不要求完全相同。默認閱讀者有一定的Linux基礎,不做贅述。
本機環境:
[root@linuxstudy ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@linuxstudy ~]# uname -a
Linux linuxstudy 4.12.4-1.el7.elrepo.x86_64 #1 SMP Thu Jul 27 20:03:28 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

操作步驟:
vim /etc/selinux/config
修改參數:
SELINUX=disabled
更新:
yum -y update
重啟:
reboot
安裝依賴:
yum install -y wget bzip2 texlive net-tools alien gnutls-utils
添加倉庫:
wget -q -O - https://www.atomicorp.com/installers/atomic | sh
安裝:
yum install openvas -y
編輯文件:
vim /etc/redis.conf
修改配置:
unixsocket /tmp/redis.sock
unixsocketperm 700
重啟redis:
systemctl enable redis && systemctl restart redis
啟動openvas初始環境配置:
openvas-setup
防火牆放行端口:
firewall-cmd permanent add-port=9392/tcp
firewall-cmd reload
firewall-cmd list-port
訪問登錄:
https://本機IP:9392
驗證完整性以及運行的可靠性:
openvas-check-setup v9
據部分用戶反饋可能出現一些故障,臨時解決辦法,但我沒遇到:
# yum -y install texlive-changepage texlive-titlesec
# mkdir -p /usr/share/texlive/texmf-local/tex/latex/comment
# cd /usr/share/texlive/texmf-local/tex/latex/comment
#wget http://mirrors.ctan.org/macros/latex/contrib/comment/comment.sty
# chmod 644 comment.sty
# texhash​

另:其中非特殊需要,裏面的配置盡量默認就好。僅供學習交流。這東西用著挺爽的。更新速度和自己網絡環境有關,條件允許情況下,可以用阿裏雲的國外節點,或者zun雲的國外九元優惠節點,其他的有推薦的請留言。畢竟省錢還好用的才是我們需要的。亞馬遜那個需要信用卡,有一定的失敗率,穀歌的就直接不想了。

熱門文章