fofapro / vulfocus

🚀Vulfocus 是一个漏洞集成平台,将漏洞环境 docker 镜像,放入即可使用,开箱即用。
Apache License 2.0
3.21k stars 509 forks source link

安装说明报错问题 #1

Closed anonymity3712 closed 4 years ago

anonymity3712 commented 4 years ago

python manage.py migrate 一直报错Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 325, in execute settings.INSTALLED_APPS File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 79, in getattr self._setup(name) File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 66, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python3.7/dist-packages/django/conf/init.py", line 157, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/vulhub/vulfocus-master/vulfocus-api/vulfocus/settings.py", line 157, in if os.environ['VUL_IP']: File "/usr/lib/python3.7/os.py", line 679, in getitem raise KeyError(key) from None KeyError: 'VUL_IP'

xxxxbxxxxx commented 4 years ago

需要配置环境变量,

key 为:VUL_IP

value 为Docker 服务器IP, 不能设置为 127.0.0.1

xxxxbxxxxx commented 4 years ago

或者重新 clone / pull 最新代码安装。