hostname jumpserver
yum install -y git python-pip mysql-devel gcc automake autoconf python-devel sshpass lrzsz readline-devel
yum install -y gmp-devel
yum install -y python-paramiko
上https://github.com/jumpserver/jumpserver下载zip包
mkdir /application
cd /application/
rz
unzip jumpserver-master.zip
根据需要安装数据库,如果没有数据库就安装,如果有的话就不安装,但需要创建jumpserver数据库并授权为USAGE,之后在配置文件中修改端口连接数据库
cd jumpserver-master/install/
pip install -r requirements.txt
pip freeze
python install.py
sed -i "s#port = 8000#port = 9999#g" /application/jumpserver-master/jumpserver.conf
sed -i "s#port = 3306#port = 3319#g" /application/jumpserver-master/jumpserver.conf
sed -i "2i port = 3319" /etc/my.cnf
/etc/init.d/mysqld restart
./service.sh restart
之后输入ip:port访问jumpserver的web管理页面
初始用户admin,密码为5Lov@wife