Debian Linux上安装Jumpserver

1.安装 Debian并配置

登录www.debian.io,下载网络版安装,安装很快,但完成后修改IP就遇到问题
vi /etc/network/interfaces

auto eth0 #设置开机自动连接网络

iface lo inet loopback

allow-hotplug eth0

iface eth0 inet static #static表示使用固定IP地址上网,dhcp表示使用动态ip

address 192.168.9.100 #设置静态ip地址

netmask 255.255.255.0 #子网掩码

gateway 192.168.9.254 #网关

奇怪了,居然退格删除键都不好用的,为什么会出现这种情况呢?

这是因为 Debian 默认安装的是 vim tiny,解决方案有两个:

方案一:修改 vim 配置文件:vi /etc/vim/vimrc.tiny,将配置中 set compatible 修改为 set nocompatible,改为非兼容模式即可解决方向键变 ABCD 乱码问题。

然后在 set nocompatible 下一行加上 set backspace=2 即可退格键无法使用问题。

方案二:是安装 vim full 版本

apt remove vim-common -y--卸载原本 vi

apt install vim -y --安装 full 版 vim

结果卸载容易,安装结果0 upgraded,0 newly installed, 0 to remove and 0 not upgraded.

2.重新安装 Debian并配置

那就重新安装完整版。去下载了较庞大的完整安装映像:64 位 PC DVD-1 iso ,重新安装后,用文本编辑器编辑修改/etc/vim/vimrc.tiny,可以使用退格键了,但是输入很多符号时还是出怪。

那就安装 vim full 版本,结果卸载后安装,还是0 upgraded,0 newly installed, 0 to remove and 0 not upgraded.

在sofeware and udpdates中添加了:

deb https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contrib

安装成功。

3.安装 Jumpserver. 并配置

接下来安装Jumpserver.使用在线安装
cd /opt
wget https://resource.fit2cloud.com/jumpserver/installer/releases/download/v4.0.1/jumpserver-installer-v4.0.1.tar.gz
tar -xf jumpserver-installer-v4.0.1.tar.gz
cd jumpserver-installer-v4.0.1

安装

./jmsctl.sh install

提示需要安装curl和iptables

curl: command not found ,please install it first curl

iptables: command not found ,please install it first iptables

#安装缺失的:
apt-get install iptables
apt-get install curl

再次运行安装Jumpserver

./jmsctl.sh install

1.check configuration File

2.Install Docker

3confgure Docker

4Start Docker

pulling from library/postgres

pulling from library/redis

error ulling image configuration: download failed after attempts=6:dial tcp i/o timeout

failed to pull image redis:7.0-bullseye

failed to pull image postgres:16.3-bullseye

failed to pull image jumpserver/core:v4.0.1-ce

failed to pull image jumpserver/koko:v4.01-ce

failed to pull image jumpserver/lion:v4.0.1-ce

failed to pull image jumpserver/chen:v4.0.1-ce

failed to pull image jumpserver/web:v4.0.1-ce

Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http:request canceled while waiting from connection

error pulling image configuration:download failed after attemps=7:dial tcp 31/13.88.169:443: i/o timeout

修改***/etc/docker/daemon.json***,增加镜像站点

"registry-mirrors": [

"https://docker.m.daocloud.io",

"https://dockerproxy.com",

"https://docker.mirrors.ustc.edu.cn",

"https://docker.nju.edu.cn"

]

systemctl daemon-reaload
systemctl restart docker
docker info

里面没有看到添加的镜像站点,奇怪了。

后来找到原因是因为修改daemon.json时的用户权限不够,根本没有保存成功。切换到root后修改,试了几次,终于用https://docker.m.daocloud.io下载成功

但是只能下载两个 redis:7.0-bullseye ,postgres:16.3-bullseye

接下来大概试了几十个镜像站点,终于在https://awsl9527.cn这个镜像长点上面完成了下载

启动

./jmsctl.sh start

JumpServer 配置文件路径为: /opt/jumpserver/config/config.txt

访问

地址: http://<JumpServer服务器IP地址>:<服务运行端口>,默认端口8080

用户名: admin

密码: ChangeMe

说明:注意jumpserver中的用户和账号的区别

用户是指jumpserver系统的用户;账号是指jumpserver中登录资产设备的账号

#jumpserver的常用管理命令

启动

./jmsctl.sh start

停止

./jmsctl.sh down

卸载

./jmsctl.sh uninstall

帮助

./jmsctl.sh -h

相关推荐
fiveym6 分钟前
PXE 装机引导文件提取与验证(Debian 9.13 适配,含 TFTP 传输测试)
运维·debian
wanhengidc8 分钟前
云手机 多开无忧 科技运行
运维·服务器·科技·游戏·智能手机
测试人社区—66791 小时前
破茧成蝶:DevOps流水线测试环节的效能跃迁之路
运维·人工智能·学习·flutter·ui·自动化·devops
秋刀鱼 ..2 小时前
第七届国际科技创新学术交流大会暨机械工程与自动化国际学术会议(MEA 2025)
运维·人工智能·python·科技·机器人·自动化
CheungChunChiu8 小时前
Linux 内核设备模型与驱动框架解析 ——以 rk-pcie 为例
linux·运维·ubuntu
姚不倒9 小时前
负载均衡的概念、策略以及两个核心组件 Nginx 和 Kube-proxy 的对比。
运维·nginx·云原生·kubernetes
列逍9 小时前
Linux进程(三)
linux·运维·服务器·环境变量·命令行参数
minji...13 小时前
Linux 基础IO(一) (C语言文件接口、系统调用文件调用接口open,write,close、文件fd)
linux·运维·服务器·网络·数据结构·c++
码龄3年 审核中13 小时前
Linux record 04
linux·运维·服务器
RisunJan13 小时前
Linux命令-ftptop命令(实时监控 ProFTPD 服务器连接状态)
linux·运维·服务器