来自官方文档:一键部署jumpserver
所需环境:
全新安装的 Centos7 (7.x)
内存所需至少4G
需要连接 互联网
使用 root 用户执行
systemctl stop firewalld
setenforce 0
curl -sSL https://github.com/jumpserver/jumpserver/releases/download/v2.8.2/quick_start.sh | bash
cd /opt/jumpserver-installer-v2.8.2
Install
./jmsctl.sh install
Help
./jmsctl.sh -h
Upgrade
./jmsctl.sh check_update
./jmsctl.sh start
Creating network "jms_net" with driver "bridge"
Creating jms_mysql ... done
Creating jms_redis ... done
Creating jms_core ... done
ERROR: for celery Container "76b2e315f69d" is unhealthy.
ERROR: for lina Container "76b2e315f69d" is unhealthy.
ERROR: for luna Container "76b2e315f69d" is unhealthy.
ERROR: for guacamole Container "76b2e315f69d" is unhealthy.
ERROR: for koko Container "76b2e315f69d" is unhealthy.
ERROR: Encountered errors while bringing up the project.
如果出现上面的错误, 执行下面的命令, 直到出现 Check service status 为止
docker logs -f jms_core --tail 200 # 如果没有报错就等表结构合并完毕后然后重新 start 即可
Applying tickets.0006_auto_20201023_1628... OK
Applying tickets.0007_auto_20201224_1821... OK
Applying users.0031_auto_20201118_1801... OK
2021-02-08 14:59:31 [cache INFO] CACHE: Send refresh task <orgs.caches.OrgResourceStatisticsCache object at 0x7fb9122ce0d0>.('nodes_amount',)
Operations to perform:
Apply all migrations: admin, applications, assets, audits, auth, authentication, captcha, common, contenttypes, django_cas_ng, django_celery_beat, jms_oidc_rp, ops, orgs, perms, sessions, settings, terminal, tickets, users
Running migrations:
No migrations to apply.
- Start Flower as Task Monitor
- Start Daphne ASGI WS Server
2021-02-08 15:01:02 Check service status: gunicorn -> running at 38
2021-02-08 15:01:02 Check service status: flower -> running at 44
2021-02-08 15:01:02 Check service status: daphne -> running at 54
# 确定上面都是 ok, 没有 error, 重新 start 即可
./jmsctl.sh start
浏览器访问: http://<容器所在服务器IP>:8080
登录之后会提示修改密码
重新登录
用户名 admin 密码 (自己设置
资产管理->资产列表->创建->添加主机
资产管理->管理用户->创建->创建管理用户
资产管理->系统用户->创建->创建系统用户
权限管理->资产授权->创建->把资产列表的主机都授权一下
ssh [email protected] -p2222