欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

CentOS6和CentOS7安装jumpserver

程序员文章站 2022-04-19 21:25:35
1.1 jumpserver安装 同步时间:ntpdate ntp1.aliyun.com 关闭selinux 关闭防火墙 系统字体修改成英文 1.1.1 安装依赖(前提需要epel源) yum install -y git python-pip mariadb-devel gcc automake ......

1.1 jumpserver安装

同步时间:ntpdate ntp1.aliyun.com

关闭selinux

关闭防火墙

系统字体修改成英文

1.1.1 安装依赖(前提需要epel源)

yum install -y git python-pip mariadb-devel gcc automake autoconf python-devel vim sshpass lresz readline-devel

1.1.2 进行jumpserver软件包的下载

git clone https://git.coding.net/jumpserver/jumpserver.git

1.1.3 执行快速安装脚本

pip install -r requirements.txt

1.1.3.1  检查上述软件是否安装

pip freeze

 

对于Centos7

sed 's#mysql-devel#mariadb-devel#g' install.py -i

sed 's#mysql-server#mariadb-server#g' install.py -i

sed 's#service mysqld start#systemctl start mariadb.service#g' install.py -i

1.1.4 执行安装脚本

python install.py

请务必先查看wiki https://github.com/ibuler/jumpserver/wiki/Quickinstall

开始关闭防火墙和selinux

sed: can't read /etc/sysconfig/i18n: No such file or directory

Redirecting to /bin/systemctl stop  iptables.service

Failed to stop iptables.service: Unit iptables.service not loaded.

请输入您服务器的IP地址,用户浏览器可以访问 [10.0.0.65]:

是否安装新的MySQL服务器? (y/n) [y]:

开始安装设置mysql (请手动设置mysql安全)

默认用户名: jumpserver 默认密码: 5Lov@wife

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirrors.aliyuncs.com

 * epel: mirrors.aliyuncs.com

 * extras: mirrors.aliyuncs.com

 * updates: mirrors.aliyuncs.com

Package 1:mariadb-server-5.5.56-2.el7.x86_64 already installed and latest version

Nothing to do

连接数据库成功

请输入SMTP地址: smtp.163.com

请输入SMTP端口 [25]:

请输入账户: ××××××@163.com

请输入密码: ××××××

 

    请登陆邮箱查收邮件, 然后确认是否继续安装

 

是否继续? (y/n) [y]:

开始写入配置文件

开始安装Jumpserver, 要求环境为 CentOS 6.5 x86_64

开始更新jumpserver

Creating tables ...

Creating table django_admin_log

Creating table auth_permission

Creating table auth_group_permissions

Creating table auth_group

Creating table django_content_type

Creating table django_session

Creating table setting

Creating table juser_usergroup

Creating table juser_user_group

Creating table juser_user_groups

Creating table juser_user_user_permissions

Creating table juser_user

Creating table juser_admingroup

Creating table juser_document

Creating table jasset_assetgroup

Creating table jasset_idc

Creating table jasset_asset_group

Creating table jasset_asset

Creating table jasset_assetrecord

Creating table jasset_assetalias

Creating table jperm_permlog

Creating table jperm_permsudo

Creating table jperm_permrole_sudo

Creating table jperm_permrole

Creating table jperm_permrule_asset_group

Creating table jperm_permrule_role

Creating table jperm_permrule_asset

Creating table jperm_permrule_user_group

Creating table jperm_permrule_user

Creating table jperm_permrule

Creating table jperm_permpush

Creating table jlog_log

Creating table jlog_alert

Creating table jlog_ttylog

Creating table jlog_execlog

Creating table jlog_filelog

Installing custom SQL ...

Installing indexes ...

Installed 0 object(s) from 0 fixture(s)

 

请输入管理员用户名 [admin]: admin

请输入管理员密码: [5Lov@wife]: admin

请再次输入管理员密码: [5Lov@wife]: admin

Starting jumpsever service:                                [  OK  ]

 

安装成功,请访问web, 祝你使用愉快。

请访问 https://github.com/ibuler/jumpserver 查看文档

查看

http://10.0.0.65/