小编教你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如何查看文件夹大小。

    在CentOS系统中,查看文件夹大小有多种方法,以下是一些常用的方法: (图片来源网络,侵删) 1、使用du命令 du命令是Linux系统中用于查看目录大小的常用命令,它可以显示指定目录下所有文件和子目录的大小,基本语…

    2024年6月28日
    00
  • 经验分享centos 进程。

    CentOS是一个基于Red Hat Enterprise Linux(RHEL)源代码的免费开源操作系统。 在Linux系统中,进程是系统进行资源分配和调度的基本单位,CentOS 7作为一款流行的Linux发行版,其进程状态的查看和管理对于系统管理…

    2024年7月11日
    00
  • centos创建用户。

    在CentOS中创建用户,我们通常使用`useradd`命令,这个命令的基本格式是:`useradd [选项] 用户名`,选项可以包括:`-d`, `-g`, `-G`, `-s`, `-u`, `-r`, `-m`, `-K`, `-U`, `-c`, `-p`, `-e`, `-f`, `-n`, `-h`, `…

    2024年6月16日
    00
  • 我来教你centos配置ipsec。

    在CentOS上配置IPsec需要使用strongSwan或libreswan等软件包。首先安装相应的软件包,然后编辑配置文件(通常位于/etc/ipsec.conf),设置本地和远程IP地址、子网、密钥等信息。最后启动IPsec服务并检查连接状态。 …

    2024年6月26日
    00
  • 分享如何安装CentOS系统。

    安装CentOS系统是一个相对简单的过程,只需要按照以下步骤进行操作即可。 1、准备工作: 下载CentOS系统镜像文件:你需要从CentOS官方网站(https://www.centos.org/download/)下载最新版本的CentOS系统镜像文件,…

    2024年7月6日
    00
  • 今日分享centos切换用户的方法是什么。

    在CentOS系统中,切换用户的方法主要依赖于su命令,以下是详细的步骤和说明: (图片来源网络,侵删) 以普通用户切换到root用户 1、打开终端:首先需要登录系统,并打开终端准备执行命令。 2、使用su命令:输入 su…

    2024年6月27日
    00
  • 说说centos查看磁盘空间。

    在CentOS系统中,查看磁盘空间使用情况是非常重要的,这可以帮助我们了解系统资源的使用情况,以便进行优化和调整,本文将介绍如何在CentOS系统中查看磁盘空间使用情况,以及如何通过命令行工具来实现这一目标。 我…

    2024年6月19日
    00
  • 小编分享如何在CentOS中安装Git版本控制工具。

    在CentOS中安装Git版本控制工具的步骤如下: (图片来源网络,侵删) 1、更新系统软件包 确保你的系统是最新的,运行以下命令来更新系统软件包: “` sudo yum update “` 2、安装依赖项 Git需要一些依赖…

    2024年6月28日
    00

联系我们

QQ:951076433

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