openvas 启动失败重装

  • apt-get purge openvas
  • apt-get purge redis
  • apt clean
  • apt-get update
  • apt-get upgrade
  • apt autoremove
  • cd /var/lib
  • mv redis redis-old
  • reboot
  • apt-get install openvas
  • openvas-setup

此处应该可以正常运行了.下面配置web允许外部ip访问.

  • openvas-check-setup
  • sed -e ‘s/127.0.0.1/0.0.0.0/g’ greenbone-security-assistant.service openvas-manager.service openvas-scanner.service -i
  • cd /lib/systemd/system
  • vim greenbone-security-assistant.service
  • 添加信息--allow-header-host “hostname.example.com”  例如 0.0.0.0
  • ststemctl daemon-reload
  • openvas-stop
  • openvas-start

你可能感兴趣的:(安全)