mirror of https://github.com/jumpserver/jumpserver
service.sh 脚本修改
parent
a7e2592fa8
commit
835e32b1cc
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue