小编教你Centos、Redhat上如何安装Nessus安全扫描软件。

在CentOS和Redhat上安装Nessus安全扫描软件

Nessus是一款非常流行的开源漏洞扫描工具,它可以帮助我们检测网络中的安全漏洞,本文将介绍如何在CentOS和Redhat上安装Nessus安全扫描软件。

小编教你Centos、Redhat上如何安装Nessus安全扫描软件。

准备工作

1、获取Nessus安装包

我们需要从官方网站下载Nessus的安装包,访问https://www.tenable.com/downloads/nessus,选择适合你的操作系统的版本进行下载。

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安装包

小编教你Centos、Redhat上如何安装Nessus安全扫描软件。

将下载好的Nessus安装包解压到一个目录,例如/opt

sudo tar -xvf nessus-xxxx.tar.gz -C /opt

2、创建Nessus用户和组

为了运行Nessus,我们需要创建一个名为nessus的用户和一个名为nessus的组:

sudo groupadd nessus
sudo useradd -g nessus -m nessus

3、更改Nessus目录权限

将Nessus目录的所有者更改为nessus用户和组:

小编教你Centos、Redhat上如何安装Nessus安全扫描软件。

sudo chown -R nessus:nessus /opt/nessus

4、设置环境变量

为了让系统识别Nessus,我们需要设置一些环境变量,编辑/etc/profile文件,添加以下内容:

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数据库

运行以下命令初始化Nessus数据库:

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

本文来自投稿,不代表重蔚自留地立场,如若转载,请注明出处https://www.cwhello.com/472396.html

如有侵犯您的合法权益请发邮件951076433@qq.com联系删除

(0)
IT工程IT工程订阅用户
上一篇 2024年7月11日 20:59
下一篇 2024年7月11日 21:09

相关推荐

  • 教你centos修改ssh端口号。

    修改SSH端口号 SSH(安全外壳协议)是一种用于远程登录和安全传输数据的网络协议,在使用SSH时,我们可能会遇到需要修改SSH端口号的情况,以提高安全性或解决端口冲突问题,本文将介绍如何修改SSH端口号,并提供一些…

    2024年6月18日
    02
  • 今日分享centos查看文件夹大小命令。

    在CentOS系统中,查看文件夹大小的方法有很多,这里我们介绍两种常用的方法:使用`du`命令和使用`ncdu`工具。 1. 使用`du`命令 `du`命令是Linux系统中用于查看文件和目录占用空间的命令,其基本语法为:`du [选项] …

    2024年6月18日
    01
  • 我来分享如何在CentOS中配置网络接口。

    在CentOS中配置网络接口 (图片来源网络,侵删) 在CentOS系统中,网络接口的配置可以通过多种方式进行,包括使用命令行接口(CLI)、图形用户界面(GUI)或者通过编辑配置文件手动设置,以下是通过命令行和编辑配…

    2024年7月28日
    04
  • 说说centos更新命令。

    CentOS更新命令是用于更新系统软件包的命令,在CentOS系统中,有多种方法可以更新软件包,其中最常用的是使用yum工具,本文将介绍如何使用yum工具进行CentOS系统的更新操作。 我们需要了解的是,更新系统软件包是非…

    2024年6月18日
    01
  • 小编分享centos如何关闭selinux。

    在CentOS系统中关闭SELinux(SecurityEnhanced Linux)可以通过以下步骤进行: (图片来源网络,侵删) 查看SELinux状态 1、登录系统:使用SSH或直接登录到CentOS系统的服务器。 2、检查SELinux状态:运行命令 gete…

    2024年6月27日
    01
  • 说说如何在CentOS系统下安装Puppet和Puppet Foreman。

    在CentOS系统下安装Puppet和Puppet Foreman Puppet是一个强大的自动化配置管理工具,它可以帮助我们简化服务器的配置和管理,Puppet Foreman是Puppet的一个扩展,它提供了一个Web界面,让我们可以更方便地管理和监…

    2024年7月10日
    00
  • 经验分享centos修改ssh端口号。

    修改SSH端口号 SSH(安全外壳协议)是一种用于远程登录和安全传输数据的网络协议,在使用SSH时,我们可能会遇到需要修改SSH端口号的情况,以提高安全性或解决端口冲突问题,本文将介绍如何修改SSH端口号,并提供一些…

    2024年6月19日
    02
  • 如何在低内存的情况下安装CentOS系统。

    在低内存的情况下安装CentOS系统,可能会遇到一些问题,但是通过一些技术手段,我们仍然可以实现,以下是一些具体的步骤和建议。 1、使用最小化安装 最小化安装是一种特殊的安装方式,它只安装系统运行所必需的组件…

    2024年7月19日
    00

联系我们

QQ:951076433

在线咨询:点击这里给我发消息邮件:951076433@qq.com工作时间:周一至周五,9:30-18:30,节假日休息