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
725405e4
Commit
725405e4
authored
Feb 28, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change(install) 修改提示,更改变化的文件名 run_server.py
websocket -> websocket_url
parent
cad7a193
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
install.py
install/install.py
+2
-2
next.py
install/next.py
+2
-2
No files found.
install/install.py
View file @
725405e4
...
@@ -97,13 +97,13 @@ class PreSetup(object):
...
@@ -97,13 +97,13 @@ class PreSetup(object):
conf
=
ConfigParser
.
ConfigParser
()
conf
=
ConfigParser
.
ConfigParser
()
conf
.
read
(
conf_file
)
conf
.
read
(
conf_file
)
conf
.
set
(
'base'
,
'url'
,
'http://
%
s'
%
self
.
ip
)
conf
.
set
(
'base'
,
'url'
,
'http://
%
s'
%
self
.
ip
)
conf
.
set
(
'base'
,
'websocket_url'
,
'ws://
%
s'
%
self
.
ip
)
conf
.
set
(
'base'
,
'key'
,
self
.
key
)
conf
.
set
(
'base'
,
'key'
,
self
.
key
)
conf
.
set
(
'db'
,
'host'
,
self
.
db_host
)
conf
.
set
(
'db'
,
'host'
,
self
.
db_host
)
conf
.
set
(
'db'
,
'port'
,
self
.
db_port
)
conf
.
set
(
'db'
,
'port'
,
self
.
db_port
)
conf
.
set
(
'db'
,
'user'
,
self
.
db_user
)
conf
.
set
(
'db'
,
'user'
,
self
.
db_user
)
conf
.
set
(
'db'
,
'password'
,
self
.
db_pass
)
conf
.
set
(
'db'
,
'password'
,
self
.
db_pass
)
conf
.
set
(
'db'
,
'database'
,
self
.
db
)
conf
.
set
(
'db'
,
'database'
,
self
.
db
)
conf
.
set
(
'websocket'
,
'web_socket_host'
,
'
%
s:3000'
%
self
.
ip
)
conf
.
set
(
'mail'
,
'email_host'
,
self
.
mail_host
)
conf
.
set
(
'mail'
,
'email_host'
,
self
.
mail_host
)
conf
.
set
(
'mail'
,
'email_port'
,
self
.
mail_port
)
conf
.
set
(
'mail'
,
'email_port'
,
self
.
mail_port
)
conf
.
set
(
'mail'
,
'email_host_user'
,
self
.
mail_addr
)
conf
.
set
(
'mail'
,
'email_host_user'
,
self
.
mail_addr
)
...
@@ -237,7 +237,7 @@ class PreSetup(object):
...
@@ -237,7 +237,7 @@ class PreSetup(object):
print
print
def
start
(
self
):
def
start
(
self
):
color_print
(
'请务必先查看wiki https://github.com/
ibuler/jumpserver/wiki/Quickinstall
'
)
color_print
(
'请务必先查看wiki https://github.com/
jumpserver/jumpserver/wiki
'
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
_rpm_repo
()
self
.
_rpm_repo
()
self
.
_depend_rpm
()
self
.
_depend_rpm
()
...
...
install/next.py
View file @
725405e4
...
@@ -86,7 +86,7 @@ class Setup(object):
...
@@ -86,7 +86,7 @@ class Setup(object):
os
.
chmod
(
'init.sh'
,
0755
)
os
.
chmod
(
'init.sh'
,
0755
)
os
.
chmod
(
'connect.py'
,
0755
)
os
.
chmod
(
'connect.py'
,
0755
)
os
.
chmod
(
'manage.py'
,
0755
)
os
.
chmod
(
'manage.py'
,
0755
)
os
.
chmod
(
'run_
websocket
.py'
,
0755
)
os
.
chmod
(
'run_
server
.py'
,
0755
)
os
.
chmod
(
'service.sh'
,
0755
)
os
.
chmod
(
'service.sh'
,
0755
)
os
.
chmod
(
'logs'
,
0777
)
os
.
chmod
(
'logs'
,
0777
)
os
.
chmod
(
'keys'
,
0777
)
os
.
chmod
(
'keys'
,
0777
)
...
@@ -95,7 +95,7 @@ class Setup(object):
...
@@ -95,7 +95,7 @@ class Setup(object):
def
_run_service
():
def
_run_service
():
os
.
system
(
'sh
%
s start'
%
os
.
path
.
join
(
jms_dir
,
'service.sh'
))
os
.
system
(
'sh
%
s start'
%
os
.
path
.
join
(
jms_dir
,
'service.sh'
))
print
print
color_print
(
'安装成功,请访问web, 祝你使用愉快。
\n
请访问 https://github.com/jumpserver/jumpserver 查看文档'
,
'green'
)
color_print
(
'安装成功,请访问web, 祝你使用愉快。
\n
请访问 https://github.com/jumpserver/jumpserver
/wiki
查看文档'
,
'green'
)
def
start
(
self
):
def
start
(
self
):
print
"开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"
print
"开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"
...
...
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