Commit ced1c586 authored by wojiushixiaobai's avatar wojiushixiaobai

修改jumpserver和coco的脚本使用说明

parent 62f44ec2
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
:: ::
$ cd /opt/jumpserver $ cd /opt/jumpserver
$ python run_server.py all $ ./jms start all # 新版本更新了运行脚本,使用方式./jms start|stop|status|restart all
运行不报错,请浏览器访问 http://192.168.244.144:8080/ 运行不报错,请浏览器访问 http://192.168.244.144:8080/
(这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错) (这里只是 Jumpserver, 没有 Web Terminal,所以访问 Web Terminal 会报错)
...@@ -170,9 +170,7 @@ ...@@ -170,9 +170,7 @@
$ cd /opt/coco $ cd /opt/coco
$ cp conf_example.py conf.py $ cp conf_example.py conf.py
$ python run_server.py $ ./cocod start all # 新版本更新了运行脚本,使用方式./cocod start|stop|status|restart
# 1.0.0版本中可以使用 jms 脚本让jumpserver在后台运行,使用方式 ./jms start|stop|restart all
这时需要去 Jumpserver 管理后台-会话管理-终端管理(http://192.168.244.144:8080/terminal/terminal/)接受 Coco 的注册 这时需要去 Jumpserver 管理后台-会话管理-终端管理(http://192.168.244.144:8080/terminal/terminal/)接受 Coco 的注册
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文 # 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 $ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=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 # CentOS6
$ setenforce 0 $ setenforce 0
...@@ -159,7 +159,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306> ...@@ -159,7 +159,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
:: ::
$ cd /opt/jumpserver $ cd /opt/jumpserver
$ python run_server.py all $ ./jms start all # 新版本更新了运行脚本,使用方式./jms start|stop|status|restart all
运行不报错,请浏览器访问 http://192.168.244.144:8080/ 运行不报错,请浏览器访问 http://192.168.244.144:8080/
<<<<<<< HEAD <<<<<<< HEAD
...@@ -190,6 +190,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306> ...@@ -190,6 +190,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
:: ::
$ cd /opt $ cd /opt
$ source /opt/py3/bin/activate
$ git clone https://github.com/jumpserver/coco.git && cd coco && git checkout master $ git clone https://github.com/jumpserver/coco.git && cd coco && git checkout master
...@@ -207,13 +208,13 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306> ...@@ -207,13 +208,13 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
$ cd /opt/coco $ cd /opt/coco
$ cp conf_example.py conf.py $ cp conf_example.py conf.py
$ python run_server.py $ ./cocod start # 新版本更新了运行脚本,使用方式./cocod start|stop|status|restart
这时需要去 Jumpserver 管理后台-会话管理-终端管理(http://192.168.244.144:8080/terminal/terminal/)接受 Coco 的注册 这时需要去 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 Starting ssh server at 0.0.0.0:2222
Quit the server with CONTROL-C. 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