- 修改主机名
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
- 替换web默认端口和数据库默认端口重启
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
- 启动数据库和jumpserver
/etc/init.d/mysqld restart
./service.sh restart
- 登录
之后输入ip:port访问jumpserver的web管理页面
初始用户admin,密码为[email protected]