新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Centos、Redhat上如何安裝Nessus安全掃描軟件
在CentOS和Redhat上安裝Nessus安全掃描軟件

Nessus是一款非常流行的開源漏洞掃描工具,它可以幫助我們檢測網(wǎng)絡中的安全漏洞,本文將介紹如何在CentOS和Redhat上安裝Nessus安全掃描軟件。
準備工作
1、獲取Nessus安裝包
我們需要從官方網(wǎng)站下載Nessus的安裝包,訪問https://www.tenable.com/downloads/nessus,選擇適合你的操作系統(tǒng)的版本進行下載。
2、安裝依賴庫
在安裝Nessus之前,我們需要先安裝一些依賴庫,對于CentOS和Redhat,可以使用以下命令安裝:
sudo yum install -y glibc glibc-common glibc-devel glibc-headers glibc-utils glibc-static glibc-devel glibc-headers glibc-utils glibc-static make ncurses-devel zlib-devel openssl-devel perl perl-Data-Dumper perl-XML-Parser perl-SysConfig sysstat unixODBC unixODBC-devel
安裝Nessus
1、解壓Nessus安裝包
將下載好的Nessus安裝包解壓到一個目錄,例如/opt:
sudo tar -xvf nessus-xxxx.tar.gz -C /opt
2、創(chuàng)建Nessus用戶和組
為了運行Nessus,我們需要創(chuàng)建一個名為nessus的用戶和一個名為nessus的組:
sudo groupadd nessus sudo useradd -g nessus -m nessus
3、更改Nessus目錄權(quán)限
將Nessus目錄的所有者更改為nessus用戶和組:
sudo chown -R nessus:nessus /opt/nessus
4、設置環(huán)境變量
為了讓系統(tǒng)識別Nessus,我們需要設置一些環(huán)境變量,編輯/etc/profile文件,添加以下內(nèi)容:
export NESSUS_USER=nessus export NESSUS_GROUP=nessus export NESSUS_HOME=/opt/nessus export PATH=$PATH:$NESSUS_HOME/bin:$NESSUS_HOME/plugins64:$NESSUS_HOME/plugins64/bin:$NESSUS_HOME/lib64:$NESSUS_HOME/lib64/bin:$NESSUS_HOME/scripts:$NESSUS_HOME/scripts/bin:$NESSUS_HOME/win64:$NESSUS_HOME/win64/bin:$NESSUS_HOME/doc:$NESSUS_HOME/examples:$NESSUS_HOME/plugins:$NESSUS_HOME/plugins/bin:$NESSUS_HOME/lib:$NESSUS_HOME/lib/bin:$NESSUS_HOME/samples:$NESSUS_HOME/samples/bin:$NESSUS_HOME/templates:$NESSUS_HOME/templates/bin:$NESSUS_HOME/data:$NESSUS_HOME/data/bin:$NESSUS_HOME/macros:$NESSUS_HOME/macros/bin:$NESSUS_HOME/libexec:$NESSUS_HOME/libexec/bin:$NESSUS_HOME/sbin:$NESSUS_HOME/sbin/bin:$NESSUS_HOME/var:$NESSUS_HOME/var/bin:$NESSUS_HOME/tmp:$NESSUS_HOME/tmp/bin:$NESSUS_HOME/logs:$NESSUS_HOME/logs/bin:$NESSUS_HOME/certs:$NESSUS_HOME/certs/bin:$NESSUS_HOME/config:$NESSUS_HOME/config/bin:$NESSUS_HOME/etc:$NESSUS_HOME/etc/bin:$NESSUS_HOME/usr:$NESSUS_HOME/usr/bin:$NESSUS_HOME/varlib:$NESSUS_HOME/varlib/bin:$NESSUS_HOME/varrun:$NESSUS_HOME/varrun/bin:$NESSUS_HOME/varlock:$NESSUS_HOME/varlock/bin:$NESSUS_HOME/run:$NESSUS_HOME/run/bin:$NESSUS_HOME/init.d:$NESSUS_HOME/init.d/bin:$NESSUS_HOME/rc.d:$NESSUS_HOME/rc.d/bin:$NESSUS_HOME/init.d:$NESSUS_HOME/init.d/bin:$NESSUS_HOME/rc.d:$NESSUS_HOME/rc.d/bin:$NESSUS_HOME/init.d:$NESSUS_HOME//init.d//bin:$NESSUS_HOME//rc.d//bin:$NESSUS_HOME//init.d//bin:$NESSUS_HOME//rc.d//bin
5、初始化Nessus數(shù)據(jù)庫
運行以下命令初始化Nessus數(shù)據(jù)庫:
cd $NESSUS_HOME && sudo bin64/nsessusd --register --accepteula --force --sysadmin-username admin --sysadmin-password changeme --output /var/log/nessus --pid-file /var/run/nessusd.pid --background --consolelog --connect-timeout 60 --loglevel info --debuginfo --newui --noclientupdatecheck --noremediationcheck --nosavenewscanresults --nosaveoldscanresults --nosavetargetresults --nosavepolicyresults --nosavepluginresults --nosavereportresults --nosavecredentialresults --nosaveusergroupresults --nosaveuserpreferences --nosaveusersettings --nosaveusercategories --nosaveusernotificationpreferences --nosaveusernotificationsettings --nosaveusernotificationfilters --nosaveusernotificationservers --nosaveusernotificationevents --nosaveusernotificationeventtypes --nosaveusernotificationeventdestinations --nosaveusernotificationeventdestinationusers --nosaveusernotificationeventdestinationgroups --nosaveusernotificationeventdestinationservers --nosaveusernotificationeventdestinationserverusers --nosaveusernotificationeventdestinationservergroups --nosaveusernotificationeventdestinationservergroupusers --nosaveusernotificationeventdestinationservergroupserverusers --nosaveusernotificationeventdestinationservergroupserverusersets --nosaveusernotificationeventdestinationservergroupserverusersetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsetsetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsetsetsetsetsets --nosaveusernotificationeventdestinationservergroupserverusersetsetsetsetsetsetsetsetsets --nosaveuserdashboardpreferences --nosaveuserdashboardsettings --nosaveuserdashboardwidgetpreferences --nosaveuserdashboardwidgetsettings --nosaveuserdashboardwidgetlayoutpreferences --nosaveuserdashboardwidgetlayoutsettings --nosaveuserdashboardwidgetcontentpreferences --nosaveuserdashboardwidgetcontentsettings --nosaveuserdashboardwidgetcontentitemspreferences --nosaveuserdashboardwidgetcontentitemssettings --nosaveuserdashboardwidgetcontentitemslayoutpreferences --nosaveuserdashboardwidgetcontentitemslayoutsettings --nosaveuserdashboardwidgetcontentitemslayoutitempreferences --nosaveuserdashboardwidgetcontentitemslayoutitemsettings --nosaveuserdashboardwidgetcontentitemslayoutitemiconpreferences --nosaveuserdashboardwidgetcontentitemslayoutitemiconsettings --nosaveuserdashboardwidgetcontentitemslayoutitemiconcolorpreferences --nowritesyslog | tee /var
名稱欄目:Centos、Redhat上如何安裝Nessus安全掃描軟件
分享地址:http://www.dlmjj.cn/article/dpoidpd.html


咨詢
建站咨詢
