Unverified Commit 04b4287c authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #1116 from wojiushixiaobai/docs

修改jumpserver和coco的脚本使用说明
parents 0ca75776 ee7bd246
......@@ -136,7 +136,9 @@
::
$ cd /opt/jumpserver
$ python run_server.py all
$ ./jms start all # 后台运行使用 -d 参数./jms start all -d
# 新版本更新了运行脚本,使用方式./jms start|stop|status|restart all 后台运行请添加 -d 参数
运行不报错,请浏览器访问 http://192.168.244.144:8080/
(这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错)
......@@ -170,9 +172,9 @@
$ cd /opt/coco
$ cp conf_example.py conf.py
$ python run_server.py
# 1.0.0版本中可以使用 jms 脚本让jumpserver在后台运行,使用方式 ./jms start|stop|restart all
  $ ./cocod start all # 后台运行使用 -d 参数./cocod start -d
# 新版本更新了运行脚本,使用方式./cocod start|stop|status|restart 后台运行请添加 -d 参数
这时需要去 Jumpserver 管理后台-会话管理-终端管理(http://192.168.244.144:8080/terminal/terminal/)接受 Coco 的注册
......
......@@ -18,7 +18,7 @@
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n
$ echo 'LANG=zh_CN.UTF-8' > /etc/locale.conf
# CentOS6
$ setenforce 0
......@@ -159,15 +159,12 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
::
$ cd /opt/jumpserver
$ python run_server.py all
$ ./jms start all # 后台运行使用 -d 参数./jms start all -d
# 新版本更新了运行脚本,使用方式./jms start|stop|status|restart all 后台运行请添加 -d 参数
运行不报错,请浏览器访问 http://192.168.244.144:8080/
<<<<<<< HEAD
注意: 这个运行方式是前台运行的,不要认为是启动出错了 (后台运行可以放到screen中运行,或nohup)
(这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错)
=======
(这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错。如果不能访问请检查主机8080端口号是否能访问,AWS 的 EC2 的80、8080端口受到限制,需要 ICP 备案才可以开放,遇到这种情况,可到 config.py 文件里修改 Jumpserver 端口为8888。)
>>>>>>> github/docs
注意:这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错。如果不能访问请检查主机8080端口号是否能访问,AWS 的 EC2 的80、8080端口受到限制,需要 ICP 备案才可以开放,遇到这种情况,可到 config.py 文件里修改 Jumpserver 端口为8888。
账号: admin 密码: admin
......@@ -190,6 +187,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
::
$ cd /opt
$ source /opt/py3/bin/activate
$ git clone https://github.com/jumpserver/coco.git && cd coco && git checkout master
......@@ -207,13 +205,15 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
$ cd /opt/coco
$ cp conf_example.py conf.py
$ python run_server.py
$ ./cocod start # 后台运行使用 -d 参数./cocod start -d
# 新版本更新了运行脚本,使用方式./cocod start|stop|status|restart 后台运行请添加 -d 参数
这时需要去 Jumpserver 管理后台-会话管理-终端管理(http://192.168.244.144:8080/terminal/terminal/)接受 Coco 的注册
::
Coco version 0.4.0, more see https://www.jumpserver.org
Coco version 1.0.0, more see https://www.jumpserver.org
Starting ssh server at 0.0.0.0:2222
Quit the server with CONTROL-C.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment