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
835e32b1
Commit
835e32b1
authored
9 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service.sh 脚本修改
parent
a7e2592f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
run_websocket.py
run_websocket.py
+1
-1
service.sh
service.sh
+1
-1
No files found.
run_websocket.py
View file @
835e32b1
...
@@ -425,6 +425,6 @@ if __name__ == '__main__':
...
@@ -425,6 +425,6 @@ if __name__ == '__main__':
server
=
tornado
.
httpserver
.
HTTPServer
(
app
)
server
=
tornado
.
httpserver
.
HTTPServer
(
app
)
server
.
bind
(
options
.
port
,
options
.
host
)
server
.
bind
(
options
.
port
,
options
.
host
)
#server.listen(options.port)
#server.listen(options.port)
server
.
start
(
num_processes
=
10
)
server
.
start
(
num_processes
=
5
)
print
"Run server on
%
s:
%
s"
%
(
options
.
host
,
options
.
port
)
print
"Run server on
%
s:
%
s"
%
(
options
.
host
,
options
.
port
)
tornado
.
ioloop
.
IOLoop
.
instance
()
.
start
()
tornado
.
ioloop
.
IOLoop
.
instance
()
.
start
()
This diff is collapsed.
Click to expand it.
service.sh
View file @
835e32b1
...
@@ -27,7 +27,7 @@ start() {
...
@@ -27,7 +27,7 @@ start() {
else
else
daemon python
$base_dir
/manage.py runserver 0.0.0.0:80 &>> /tmp/jumpserver.log 2>&1 &
daemon python
$base_dir
/manage.py runserver 0.0.0.0:80 &>> /tmp/jumpserver.log 2>&1 &
daemon python
$base_dir
/run_websocket.py &> /dev/null 2>&1 &
daemon python
$base_dir
/run_websocket.py &> /dev/null 2>&1 &
sleep
2
sleep
4
echo
-n
"
$jump_start
"
echo
-n
"
$jump_start
"
nums
=
0
nums
=
0
...
...
This diff is collapsed.
Click to expand it.
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