jumpserver 安装使用

1. download jumpserver
#git clone https://github.com/ibuler/jumpserver.git

2,。cd jumpserver/install &&  sudo  pip install -r requirements.txt

报错如下:
sh: 1: mysql_config: not found

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/MySQL-python/setup.py", line 17, in <module>

    metadata, options = get_config()

  File "setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "setup_posix.py", line 25, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_cosudo  pip install -r requirements.txtnfig not found
----------------------------------------------------------------------------------------
solution :#sudo apt-get install libmysqlclient-dev

3.如果报上面的错则继续2步骤,否则跳过这步 step 2. #sudo  pip install -r requirements.txt
4.# python install.py
报错如下:
Traceback (most recent call last):
  File "install.py", line 8, in <module>
    import MySQLdb
ImportError: No module named MySQLdb

losution:
源码安装 MySQLdb
tar -zxvf MySQL-python-1.2.3.tar.gz
cd MySQL-python-1.2.3
$python setup.py build
$pythoh setup.py install

--------------------------------------------------------
继续 4.
报如下错:
Traceback (most recent call last):
  File "/home/jack/work/servers/jumpservers/jumpserver/install/next.py", line 5, in <module>
    import django
ImportError: No module named django
-----
solution:
pip install django

继续 4.
报如下错:ImportError: No module named django_crontab
solution:pip install django_crontab


你可能感兴趣的:(jumpserver)