Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
36eb7437
Unverified
Commit
36eb7437
authored
Mar 15, 2019
by
wojiushixiaobai
Committed by
GitHub
Mar 15, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2502 from wojiushixiaobai/docs
Docs
parents
1ebf23c6
01f9cdd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
distributed_05.rst
docs/distributed_05.rst
+2
-0
start_automatically.rst
docs/start_automatically.rst
+3
-4
step_by_step.rst
docs/step_by_step.rst
+1
-1
No files found.
docs/distributed_05.rst
View file @
36eb7437
...
@@ -61,7 +61,9 @@
...
@@ -61,7 +61,9 @@
$ cp config_example.yml config.yml
$ cp config_example.yml config.yml
$ SECRET_KEY=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50` # 生成随机SECRET_KEY
$ SECRET_KEY=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50` # 生成随机SECRET_KEY
$ echo "SECRET_KEY=$SECRET_KEY" >> ~/.bashrc
$ BOOTSTRAP_TOKEN=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16` # 生成随机BOOTSTRAP_TOKEN
$ BOOTSTRAP_TOKEN=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16` # 生成随机BOOTSTRAP_TOKEN
$ echo "BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN" >> ~/.bashrc
$ sed -i "s/SECRET_KEY:/SECRET_KEY: $SECRET_KEY/g" /opt/jumpserver/config.yml
$ sed -i "s/SECRET_KEY:/SECRET_KEY: $SECRET_KEY/g" /opt/jumpserver/config.yml
$ sed -i "s/BOOTSTRAP_TOKEN:/BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN/g" /opt/jumpserver/config.yml
$ sed -i "s/BOOTSTRAP_TOKEN:/BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN/g" /opt/jumpserver/config.yml
...
...
docs/start_automatically.rst
View file @
36eb7437
...
@@ -178,7 +178,6 @@ Systemd 管理启动 Jumpserver
...
@@ -178,7 +178,6 @@ Systemd 管理启动 Jumpserver
# Guacamole
# Guacamole
$ chkconfig guacd on
$ chkconfig guacd on
$ sed -i '143i CATALINA_PID="/config/tomcat8/tomcat.pid"' /config/tomcat8/bin/catalina.sh
$ vi /usr/lib/systemd/system/guacamole.service
$ vi /usr/lib/systemd/system/guacamole.service
[Unit]
[Unit]
Description=guacamole
Description=guacamole
...
@@ -187,12 +186,12 @@ Systemd 管理启动 Jumpserver
...
@@ -187,12 +186,12 @@ Systemd 管理启动 Jumpserver
[Service]
[Service]
Type=forking
Type=forking
PIDFile=/config/tomcat8/tomcat.pid
#
PIDFile=/config/tomcat8/tomcat.pid
# BOOTSTRAP_TOKEN 根据实际情况修改
# BOOTSTRAP_TOKEN 根据实际情况修改
Environment="JUMPSERVER_SERVER=http://127.0.0.1:8080" "JUMPSERVER_KEY_DIR=/config/guacamole/keys" "GUACAMOLE_HOME=/config/guacamole" "BOOTSTRAP_TOKEN=******"
Environment="JUMPSERVER_SERVER=http://127.0.0.1:8080" "JUMPSERVER_KEY_DIR=/config/guacamole/keys" "GUACAMOLE_HOME=/config/guacamole" "BOOTSTRAP_TOKEN=******"
ExecStart=/config/tomcat8/bin/startup.sh
ExecStart=/config/tomcat8/bin/startup.sh
ExecReload=
/bin/kill -s HUP $MAINPID
ExecReload=
ExecStop=/
bin/kill -s QUIT $MAINPID
ExecStop=/
config/tomcat8/bin/shutdown.sh
[Install]
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
...
...
docs/step_by_step.rst
View file @
36eb7437
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
$ cp config_example.yml config.yml
$ cp config_example.yml config.yml
$ SECRET_KEY=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50` # 生成随机SECRET_KEY
$ SECRET_KEY=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50` # 生成随机SECRET_KEY
$ echo "
BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN
" >> ~/.bashrc
$ echo "
SECRET_KEY=$SECRET_KEY
" >> ~/.bashrc
$ BOOTSTRAP_TOKEN=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16` # 生成随机BOOTSTRAP_TOKEN
$ BOOTSTRAP_TOKEN=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16` # 生成随机BOOTSTRAP_TOKEN
$ echo "BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN" >> ~/.bashrc
$ echo "BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN" >> ~/.bashrc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment