當前位置: 首頁(yè) > AI運營(yíng)推廣
Centos、Redhat上如何安裝Nessus安全掃描軟件
發(fā)表于: 2026-05-04 16:37:23
在CentOS和Redhat上安裝Nessus安全掃描軟件
Nessus是上何掃描一款非常流行的開(kāi)源漏洞掃描工具,它可以幫助我們檢測網(wǎng)絡(luò )中的安裝安全安全漏洞,本文將介紹如何在CentOS和Redhat上安裝Nessus安全掃描軟件。軟件
準備工作
1、上何掃描獲取Nessus安裝包
我們需要從官方網(wǎng)站下載Nessus的安裝安全安裝包,訪(fǎng)問(wèn)https://www.tenable.com?/downloads/nessus,軟件選擇適合你的上何掃描操作系統的版本進(jìn)行下??載。
2、安裝安全安裝依賴(lài)庫
在安裝Nessus之前,軟件我們需要先安裝一些依賴(lài)庫,上何掃描對于Cen??tOS和Redhat,安裝安全可以使用以下命令安裝:
sudo yum install -y gl???ibc glibc-common glibc-devel gliヽ(′▽?zhuān)?ノbc-headers glibc-ut??ils glibc-static glibc-devel glibc-headers glibc-utils glibc-static make ncurses-devel zlib-devel open=""ssl-devel perl perl-Data-Dumper perl-XML-Parser perl-SysConfig sysstat unixODBC unixODBC-devel安裝Nessus
1、軟件解壓Neヽ(′ー`)ノssus安裝包
將下載好的上何掃描Nessus安裝包解壓到一個(gè)目錄,例如/opt:
sudo tar -xvf nessus-xxxx.tar.gz -C /opt2、安裝安全創(chuàng )建Nessus用戶(hù)和組
為了運行Nessus,軟件我們需要創(chuàng )建一??個(gè)名為nessus(???)的用戶(hù)和一個(gè)名為nessus的組:
sudo groupadd nessussudo useradd -g nes??sus?? -m nessus
3、更改Nessus目錄權限
將Nessus目錄的所有者更改為nessus用戶(hù)和組:
sudo chown -R neヾ(′?`)?ssus:nessus /opt/nessus
4、設置環(huán)境變(bian)量
為了讓系統識別Nessus,我們需要設??置一些環(huán)境變量,編輯/etc/profile文件,添加以下內容:
export NESSUS_USER(?????)=nessusexport NESSUS_GROUP=nessusexport NESSUS_HOME=/opt/nessusexport PATH=$PATH:$NESSUS_HOME/bin:$NESSUS_HOME/plugins64:$?NESSUS_HOME/plugins64/bin:$NESSUS??_HOME/lib64:$N??ESSUS_HOME/lib64/bin:$(′-ι_-`)NESSUS_H(′?ω?`)OME/scripts:$NESSUS_HOME/scripts/bin(╬?益?):$??NESSUS_HOME/win64:$NESSUS_HOME/win64/bin:$NESSUS_HOME/doc:$NESSUS_HOME/examples:$NESSUS_HOME/plugins:$NESSUS_HOMEヽ(′▽?zhuān)?ノ/plugins/b??in:$NESSUS_HOME/lib:$NESSUS_HOME/lib/bin:$NESSUS_HOME/( ?° ?? ?°)samples:$NESSUS_HOME/samples/bin:$NESSUS_HO(′?ω?`)ME/templates:$NESSUS_HOME/templates/bin:$NESSUS_HOME/data:$NESSUS_HOME/data/bin:$NES( ?ヮ?)SUS_HOME/macros:$NESSUS_HOME/macros/bin:$NESSUS_HOME/libexec:$NESSUS_HO??ME/libexec/bin:$NESSUS_HOME/sbin:$NESSUS_HOME/sbin/bin:$NESSUS_HOME/var:$NESSUS_HOME/var/bin:$NESSUS_HOME/tmp:$NESSU(°o°)S_HOME/tmp/bin:$NESSUS_HOME/log??s:$NESSUS_HOME/lo??gs(?_?;)/bi( ?° ?? ?°)n:$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:$NESS(????)US_HOME/varlock/bin:$NESSUS_HOME/run:(????)$NESSUS_??HOME/run/bin:$NESSUS_ヾ(′▽?zhuān)??HOME/init.d:$NESSUS_HOME/init.d/bin:$NESSUS_HOME/rc.d:$NESSUS_HOME/rc.d/bin??:$NES??SUS_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數據庫
運行以下命令初始化Ne??ssus數據庫:
cd $NESSUS_HOME &&(′?`)amp; sudo bin64/nsessusd --register --accepteula --force --sysadmin-username admin --sysadmin-password chan(′?_?`)geme --output /var/log/nessus --pid-file /var??/run/nessusd.pid --b(′?_?`)ackground --conso(′_ゝ`)lelog --connect-timeout 60 --loglevel info --debuginfo --newui --noclientupdatecheck --noremediationcheck --nosavenewscanresults --nosaveoldscanresults --nosavetargetresults --nosa??vepolicyresults --nosavepluginresults --(′?`)nosavereportresults --nosavecredentialresults --nosaveusergroupresults --nosaveuserpreferences --nosaveusersettings --n??osaveusercategorie??sヽ(′ー`)ノ --nosaveusernotificationpreferences --nosav??eusernotificationsettings --nosaveusernotificationfilters --nosaveusernot(′?`*)ificationservers --nosaveusernotificationヾ(′?`)?events --nosaveusernotificationeventtypes --nosaveusernotificationeventdestinations --nosaveusernot??ificationevent??destinationusers --nosaveusernotificationeventdestinationgroups --nosaveuse??rnotificatiヽ(′ー`)ノoneventdestinationservers --n(′;д;`)osaveusernotificationeventdestinationserverusers --nosaveusernotificationeventdestinationservergroups --nosaveusernotificationeventdestinationservergroupusers --nosa( ?▽?)veusernotificationeventdestinationservergroupserverusers --nosaveusernotificationeventdestinationservergroupserverusersets --nosaveusernotificationeventdestinationservergro(//ω//)upserverusersetsets --nosaveusernotif??icationeventdesti??natio(????)nservergroupserverusersetse(′Д` )tsets --nosaveusernotificationeventdestinationservergroupserverusersetsets??etsets --nosaveusernotificati(╯‵□′)╯o??neventdestinationservergroupserverusersetsetsetsetsets --nosaveusernotificationeventdestinationservergroups??erverusersetsetsetsetsetsets --nosaveusernotificationeventdestinationservergroupserveruser??setsetsetsetsetsetsets --nosaveu??sernot??ificationeventdestinations(′_`)ervergroupserverusersetsetsetsetsetsetsetsets --nosaveuse??rnotificationeventdestinationse??rvergroupserverusersetsetsetsetsetsetsetsetsets --nosaveuserdashboardpreferences --n??osavヾ(′▽?zhuān)??e??userdashboardsettings --nosaveuserdashboardwidg(′?ω?`)etpreferences --nosaveuserdashboar(???)dwidgetset??(T_T)tings --nosaveuserdashboardwidgetlayoutpreferences --nosaveuserdashboardwidgetlayoutsettings --nosaveuserヾ(′▽?zhuān)??dashboardwidgetcontentpreferences --nosaveuser(′?ω?`)dashboardwidgetcontentsettings --nosaveuserdashb??oardwidgetcontentitemspreferences --nosaveuserdashboardwidgetcontentitems(′?`*)settings --nosaveuserdashboardwidgetcontentitemslayo(′?_?`)utpreferences --nosaveuserdashboardwidgetcontentitem??slayoutsettings --nosaveuserdashboardwidgetcontentitemslayoutitempreferences --nosaveuse??rdashboardw┐(′д`)┌idgetcontentitemslayoutitemsettings --n??osaveuserdashboardwidgetcontentit??emslayoutitemiconpr??ef??erences --??nosaveuserdashboardwidgetcontentit(′?ω?`)emslayoutitemiconsettings --nosaveuserdashboardwidgetcontentitemslayoutitemiconcolorpreferences --nowritesyslog | te??e /var


網(wǎng)站二維碼
導航
電話(huà)
短信
咨詢(xún)
地圖
分享