GithubHelp home page GithubHelp logo

Comments (7)

 avatar commented on May 22, 2024

手里没有debian,ubuntu,也没有维护过,你可以试试写个

from jumpserver.

jiaxiangkong avatar jiaxiangkong commented on May 22, 2024

一、环境
debian,ubuntu 系统

二、安装依赖
apt-get install vim git python-pip libmysqlclient-dev gcc automake autoconf python-dev sshpass lrzsz python-mysqldb

注:如果报没有找安装包,请添加系统更新源

三、 下载jumpserver
cd /opt
git clone https://github.com/ibuler/jumpserver.git

四、 执行快速安装脚本
cd jumpserver/install && pip install -r requirements.txt

五、修改安装脚本
vim install.py

......
......
    #@staticmethod
    #def _rpm_repo():
        color_print('开始安装epel源', 'green')
        bash('yum -y install epel-release')

    @staticmethod
    def _depend_rpm():
        color_print('开始安装依赖rpm包', 'green')
        bash('apt-get -y install git python-pip libmysqlclient-dev gcc automake autoconf python-dev vim sshpass')

.......
.......

六、安装

python install.py
注:debian,ubuntu系统上安装完成最后会出现服务启动失败
1)根据提示输入相关信息,完成安装,完成安装后,请访问web,继续查看后续文档
2)如果启动失败,请返回上层目录,手动运行 ./service.sh start启动
3)如果./service.sh start启动失败
请进入jumpserver目录,手动运行
python manage.py runserver 0.0.0.0:80
python run_websocket.py
4)如果启动失败,可能是由于 80端口和3000端口已经被占用,或者数据库账号密码不对,请检查

七、运行crontab,定期处理失效连接,定期更新资产信息
cd .. && python manage.py crontab add

from jumpserver.

yumaojun03 avatar yumaojun03 commented on May 22, 2024

now the install.py can use to install jumpserver on ubuntu 14.04 and 15.10 (tested).
also can install on debian 7.8 and debian 8.2 (tested)
with ubuntu you must use root to execute the install script.
eg:
sudo -i
python install.py

note:
the python version 2.7(tested)
debian 8.2 need add repository ,detail you can see wiki

from jumpserver.

liuzheng avatar liuzheng commented on May 22, 2024

@yumaojun03 python version 2.6- 测过没?

from jumpserver.

yumaojun03 avatar yumaojun03 commented on May 22, 2024

ubunt 14.04 和 ubuntu 15.10 系统自带的python版本至少是2.7。所有没测试过2.6

from jumpserver.

liuzheng avatar liuzheng commented on May 22, 2024

所以指定Python version的时候不要写2.x吧,写2.7+

from jumpserver.

yumaojun03 avatar yumaojun03 commented on May 22, 2024

恩,我更新了。

from jumpserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.