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
12967bb6
Commit
12967bb6
authored
Dec 18, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix install bug
parent
6798dd86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
next.py
install/next.py
+0
-20
No files found.
install/
install
.py
→
install/
next
.py
View file @
12967bb6
...
@@ -77,22 +77,6 @@ class Setup(object):
...
@@ -77,22 +77,6 @@ class Setup(object):
with
open
(
conf_file
,
'w'
)
as
f
:
with
open
(
conf_file
,
'w'
)
as
f
:
conf
.
write
(
f
)
conf
.
write
(
f
)
@staticmethod
def
_rpm_repo
():
color_print
(
'开始安装epel源'
,
'green'
)
bash
(
'yum -y install epel-release'
)
@staticmethod
def
_depend_rpm
():
color_print
(
'开始安装依赖rpm包'
,
'green'
)
bash
(
'yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass'
)
@staticmethod
def
_require_pip
():
color_print
(
'开始安装依赖pip包'
,
'green'
)
os
.
chdir
(
jms_dir
)
bash
(
'pip install -r install/requirements.txt'
)
def
_setup_mysql
(
self
):
def
_setup_mysql
(
self
):
color_print
(
'开始安装设置mysql (请手动设置mysql安全)'
,
'green'
)
color_print
(
'开始安装设置mysql (请手动设置mysql安全)'
,
'green'
)
bash
(
'yum -y install mysql-server'
)
bash
(
'yum -y install mysql-server'
)
...
@@ -209,10 +193,6 @@ class Setup(object):
...
@@ -209,10 +193,6 @@ class Setup(object):
def
start
(
self
):
def
start
(
self
):
print
"开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"
print
"开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64"
self
.
_pull
()
self
.
_pull
()
self
.
_set_env
()
self
.
_rpm_repo
()
self
.
_depend_rpm
()
self
.
_require_pip
()
self
.
_input_ip
()
self
.
_input_ip
()
self
.
_input_mysql
()
self
.
_input_mysql
()
self
.
_input_smtp
()
self
.
_input_smtp
()
...
...
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