centos7安装jumpserver遇到的坑

时间:2024-05-21 20:34:49

参考安装网址:http://docs.jumpserver.org/zh/docs/step_by_step.html
1、数据库jumpserver授权时:grant all on jumpserver.* to ‘jumpserver’@’%’ identified by “123456”;
2、初始安装jumpserver,生成数据库表结构和初始化数据(./make_migrations.sh)的时候总是出现error:module ‘ldap’ has no attribute ‘SCOPE_SUBTREE’,经过查询发现是python的一些第三方库依赖包未安装。安装完后:
amqp (2.1.4)
ansible (2.4.2.0)
asn1crypto (0.24.0)
bcrypt (3.1.4)
billiard (3.5.0.3)
boto3 (1.6.5)
botocore (1.9.5)
celery (4.1.0)
certifi (2018.1.18)
cffi (1.11.2)
chardet (3.0.4)
configparser (3.5.0)
coreapi (2.3.3)
coreschema (0.0.4)
crcmod (1.7)
cryptography (2.3.1)
decorator (4.1.2)
Django (2.1)
django-auth-ldap (1.3.0)
django-bootstrap3 (9.1.0)
django-celery-beat (1.1.1)
django-filter (2.0.0)
django-formtools (2.1)
django-ranged-response (0.2.0)
django-redis-cache (1.7.1)
django-rest-swagger (2.1.2)
django-simple-captcha (0.5.6)
djangorestframework (3.8.2)
djangorestframework-bulk (0.2.1)
docutils (0.14)
drf-yasg (1.9.1)
ecdsa (0.13)
elasticsearch (6.1.1)
enum-compat (0.0.2)
ephem (3.7.6.0)
eventlet (0.22.1)
ForgeryPy (0.1)
future (0.16.0)
greenlet (0.4.12)
gunicorn (19.7.1)
idna (2.6)
inflection (0.3.1)
itsdangerous (0.24)
itypes (1.1.0)
Jinja2 (2.10)
jmespath (0.9.3)
jms-storage (0.0.18)
kombu (4.0.2)
ldap3 (2.4)
MarkupSafe (1.0)
mysqlclient (1.3.12)
olefile (0.44)
openapi-codec (1.3.2)
oss2 (2.4.0)
paramiko (2.4.1)
passlib (1.7.1)
Pillow (4.3.0)
pip (9.0.1)
pyasn1 (0.4.2)
pycparser (2.18)
pycrypto (2.6.1)
pyldap (2.4.45)
PyNaCl (1.2.1)
pyotp (2.2.6)
python-dateutil (2.6.1)
python-gssapi (0.6.4)
pytz (2018.3)
PyYAML (3.12)
redis (2.10.6)
requests (2.18.4)
ruamel.yaml (0.15.64)
s3transfer (0.1.13)
setuptools (28.8.0)
simplejson (3.13.2)
six (1.11.0)
sshpubkeys (2.2.0)
uritemplate (3.0.0)
urllib3 (1.22)
vine (1.1.4)
Werkzeug (0.14.1)
3、安装coco时也出现如上情况,提示错误为:
centos7安装jumpserver遇到的坑
git reset到commit d1e6ef5cf3c5049d75e2dc4d7f9ebf433d55ec24再次pip安装新加的依赖包启动注册成功,所以总结这个问题应该是依赖包没安装完全造成的。