仅个人工作时对操作步骤进行记录,无任何安全、可行性保证,转载请标注出处!
参考网站https://docs.jumpserver.org/zh/v3/installation/setup_linux_standalone/requirements/#2
- 配置IP地址,使其可正常上网。
- 配置yum源#安装yum工具yum -y install yum-utils
- #下载配置阿里的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
#下载配置docker的yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- 更新当前系统软件yum update
yum install -y wget curl tar gettext iptables
- 安装mysqlyum -y install mysql
yum -y install mysql-server
- 配置mysql免密登录#编辑数据库配置文件
vim /etc/my.cnf
#添加如下内容
skip-grant-tables
#重启数据库服务
systemctl restart mysqld.service
#设置数据库开机自启
systemctl enable mysqld.service –now
给jumpserver创建mysql相关数据库#使用root进入mysql
mysql -u root
#创建数据库
create database jumpserver default charset 'utf8';
#配置数据库相关信息
mysql> show create database jumpserver;
+------------+---------------------------------------------------------------------+
| Database | Create Database |
+------------+---------------------------------------------------------------------+
| jumpserver | CREATE DATABASE `jumpserver` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+------------+---------------------------------------------------------------------+
1 row in set (0.00 sec)
安装参考网站https://docs.jumpserver.org/zh/v3/installation/setup_linux_standalone/online_install/#1
安装jumpserver软件
curl -sSL https://resource.fit2cloud.com/jumpserver/jumpserver/releases/latest/download/quick_start.sh | bash
8、基础配置
cd /opt/jumpserver-installer-v3.5.4
# 启动
./jmsctl.sh start
# 停止
./jmsctl.sh down
# 卸载
./jmsctl.sh uninstall
# 帮助
./jmsctl.sh -h
9、登录
地址: http://<JumpServer服务器IP地址>:<服务运行端口默认80>
用户名: admin
密码: admin