如何更新

假想控 edited this page Nov 22, 2016 · 41 revisions

JMS最新版本0.3.2

git pull更新步骤

cd /opt/jumpserver

cp jumpserver.conf /opt/jumpserver.conf (用cp)

git pull (更新)

./service.sh restart (重启服务)

注:

1.git pull 有时jumpserver.conf会冲突

cd /opt/jumpserver

mv jumpserver.conf /tmp/jumpserver.conf (用mv)

git pull (更新)

cp /opt/jumpserver.conf . (复制回来)

./service.sh restart (重启服务)

webterminal

v0.3.0 升级到 v0.3.1 操作

注:

  1. 项目已迁移到 https://github.com/jumpserver/jumpserver 组织项目中,如果jumpserver是在2016.02.22之前安装的,更新(git pull) 之前要修改一下配置中的url

    cd /opt/jumpserver

    vim .git/config +8

    webterminal

  2. jumpserver.conf格式变了,需要修改一下,key=要改回原来的这个可以看前面mv备份的配置,web_socket_host去掉了统一用一个端口

    [base]

    url = http://xxxxxxx

    key = xxxxxxx

    ip = 0.0.0.0

    port = xxxx

    log = debug

    [db]

    host = 127.0.0.1

    port = 3306

    user = jumpserver

    password = xxxxx

    database = jumpserver

    [mail]

    mail_enable = 1

    email_host = smtp.xxx.com

    email_port = 25

    email_host_user = xxxxxxxx@xxx.com

    email_host_password = xxxxxx

    email_use_tls = True

    email_use_ssl = False

  3. v0.3.1新增 一个字段:jlog_log表filename字段

    登录mysql手动添加filename字段

    use jumpserver;

    alter table jlog_log add filename varchar(128) after log_path;

  4. v0.3.1新增 两张表:jlog_termlog、jlog_termlog_user

    python manage.py syncdb

    webterminal

  5. v0.3.1 新增 pyte库

    pip install pyte==0.5.2

  6. 用户如果是之前创建的需要修改bash为init.sh

    vim /etc/passwd

    dev:x:503:503::/home/dev:/bin/bash

    改为

    dev:x:503:503::/home/dev:/opt/jumpserver/init.sh

  7. 删除zzjumpserver.sh

    rm -rf /etc/profile.d/zzjumpserver.sh

  8. v0.3.1 更改 系统用户取消了推送:使用密码

    之前推送系统用户:使用密码

    需要重新推送:使用密钥