jumpserver 0.3.2 install on centos 6
【摘要】 jumpserver 0.3.2 install on centos 6 JUMP V0.3.2 1. 安装git 2. 克隆jumpserver 3. 执行安装脚本 4 运行 crontab,定期处理失效连接,定期更新资产信息 5 Debug error. 6. 之后输入ip:port访问jumpserver的web管理页面 7. 发送 (SMTP) 服务器 jumpserver 0.3...
jumpserver 0.3.2 install on centos 6
JUMP V0.3.2
# rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm
# yum install -y screen ftp vim wget git cmake gcc gcc-c++ htop
# yum groupinstall -y "Development Tools"
# yum -y install python-pip mysql-devel gcc automake autoconf
# yum -y install python-devel sshpass lrzsz readline-devel
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
# rpm -qa |grep mysql
mysql-server-5.1.73-8.el6_8.x86_64
mysql-libs-5.1.73-8.el6_8.x86_64
mysql-5.1.73-8.el6_8.x86_64
mysql-devel-5.1.73-8.el6_8.x86_64
#####适用于版本:v0.3.1-2
1. 安装git
# yum -y install git
2. 克隆jumpserver
# cd /opt
# git clone https://github.com/jumpserver/jumpserver.git
# wget https://github.com/jumpserver/jumpserver/archive/0.3.2.tar.gz
# git checkout master
注:不要安装在/root、/home 等目录下,以免权限问题
3. 执行安装脚本
# cd /opt/jumpserver/install
# pip install -r requirements.txt
# pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
# python install.py
注:
- 安装过程中要求输入数据库密码时,直接回车就行
- 完成安装后,请访问web,继续查看后续文档
- 如果启动失败,请返回上层目录,手动运行./service.sh restart启动
4 运行 crontab,定期处理失效连接,定期更新资产信息
[root@AMS ~]# crontab -l
0 1 * * * /usr/bin/python /opt/jumpserver/manage.py crontab run 3718e5baf203ed0f54703b2f0b7e9e16 # django-cronjobs for jumpserver
*/10 * * * * /usr/bin/python /opt/jumpserver/manage.py crontab run 9956b75140f4453ab1dc4aeb62962a74 # django-cronjobs for jumpserver
2 替换web默认端口和数据库默认端口重启
# sed -i "s#port = 8000#port = 9999#g" /opt/jumpserver-0.3.2/jumpserver.conf
# sed -i "s#port = 3306#port = 3319#g" /opt/jumpserver-0.3.2/jumpserver.conf
# sed -i "3306 # port = 3319" /etc/my.cnf
[base]
url = http://10.81.235.104
key = g0q1ch8dms21jjbr
ip = 0.0.0.0
port = 8000
log = debug
[db]
host = 127.0.0.1
port = 3306
user = jumpserver
password = 5Lov@wife
database = jumpserver
[mail]
mail_enable = 1
email_host =
email_port = 25
email_host_user =
email_host_password =
email_use_tls = True
email_use_ssl = False
5 Debug error.
AttributeError: ‘module’ object has no attribute ‘HAVE_DECL_MPZ_POWM_SEC’
输入smtp信息之后发现报错了,是python的pycrypto模块问题,需要卸载重装
很常见的错误,通常是由 pycrypto的版本问题,请卸载重新安装2.4.1
# pip uninstall pycrypto
# rm -rf /usr/lib64/python2.6/site-packages/Crypto/
# rm -rf /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg
# pip install pycrypto==2.4.1
6. 之后输入ip:port访问jumpserver的web管理页面
初始用户admin,密码为5Lov@wife
7. 发送 (SMTP) 服务器
服务器地址:smtp-mail.outlook.com
端口:25(如果阻止了 25,则使用 587)
身份验证:是
加密连接:TLS
用户名:你的电子邮件地址
密码:你的密码
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)