jumpserver/docs/quickstart.rst

55 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2018-02-27 02:27:28 +00:00
快速安装
==========================
2018-03-09 04:12:10 +00:00
Jumpserver 封装了一个 All in one Docker可以快速启动。该镜像集成了所需要的组件(Windows组件未暂未集成),也支持使用外置 Database 和 Redis
2018-02-27 02:27:28 +00:00
2018-03-21 01:26:14 +00:00
Tips: 不建议在生产中使用, 生产中请使用 详细安装 `CentOS <step_by_step.html>`_ `Ubuntu <setup_by_ubuntu.html>`_
2018-02-27 02:27:28 +00:00
Docker 安装见: `Docker官方安装文档 <https://docs.docker.com/install/>`_
快速启动
```````````````
2018-03-08 04:00:14 +00:00
使用 root 命令行输入::
2018-02-27 02:27:28 +00:00
2018-03-14 23:27:30 +00:00
$ docker run -d -p 8080:80 -p 2222:2222 registry.jumpserver.org/public/jumpserver:1.0.0
2018-02-27 02:27:28 +00:00
访问
```````````````
2018-03-09 04:12:10 +00:00
浏览器访问: http://<容器所在服务器IP>:8080
SSH访问: ssh -p 2222 <容器所在服务器IP>
XShell等工具请添加connection连接
2018-02-27 02:27:28 +00:00
2018-02-28 16:13:53 +00:00
额外环境变量
```````````````
- DB_ENGINE = mysql
- DB_HOST = mysql_host
- DB_PORT = 3306
- DB_USER = xxx
- DB_PASSWORD = xxxx
- DB_NAME = jumpserver
2018-03-09 04:12:10 +00:00
- REDIS_HOST = <redis-host>
- REDIS_PORT = <redis-port>
- REDIS_PASSWORD = <
2018-02-28 16:13:53 +00:00
::
2018-03-14 23:27:30 +00:00
docker run -d -p 8080:80 -p 2222:2222 -e DB_ENGINE=mysql -e DB_HOST=192.168.1.1 -e DB_PORT=3306 -e DB_USER=root -e DB_PASSWORD=xxx -e DB_NAME=jumpserver registry.jumpserver.org/public/jumpserver:1.0.0
2018-02-28 16:13:53 +00:00
仓库地址
```````````````
https://github.com/jumpserver/Dockerfile
2018-03-14 23:27:30 +00:00