首页 > 其他分享 >部署堡垒机——准备环境

部署堡垒机——准备环境

时间:2023-02-20 21:11:56浏览次数:32  
标签:zh CN 部署 环境 jumpserver 堡垒 t01 UTF root

1、准备环境centos7

关闭防火墙firewalld

#清空防火墙规则
[email protected]:/root#iptables -F
#关闭开机自启动防火墙
[email protected]:/root#systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
#关闭防火墙
[email protected]:/root#systemctl stop firewalld

设置selinux=disable

#selinux的配置路径:
[email protected]:/root#vim /etc/selinux/config
#查看selinux的状态为Disable
[email protected]:/root#getenforce
Disabled
[email protected]:/root#

 

2、配置阿里云的yum源,和epel源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
#清空yum缓存
[email protected]:/root#yum clean all
#生成新的yum缓存
[email protected]:/root#yum makecache

3、安装系统初始化所需的软件

yum install -y bash-completion vim lrzsz wget expect net-tools nc namp tree dos2unix htop iftop iotop unzip telnet slpsmisc nethogs glances bc ntpdate openldap-devel gcc

4、安装JumpServer运行所需的依赖环境

yum -y install git python-pip gcc automake autoconf python-devel vim sshpass lrzsz readline-devel zlib zlib-devel openssl openssl-devel

git ——github全球最大的代码托管平台,获取JumpServer的代码,需要去github下载
python-pip——安装python软件
gcc——解析代码中C语言信息:解释器
automake——实现软件自动编译过程
autoconf——实现软件自动配置过程
python-devel——python开发依赖
readline-devel——操作python命令信息是,实现补全功能

5、修改系统字符集为中文

#修改系统字符集为中文
[email protected]:/root#localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
[email protected]:/root#export LC_ALL=zh_CN.UTF-8
#写入全局配置文件中
[email protected]:/root#echo 'LANG="zh_CN.UTF-8"' > /etc/local.conf
[email protected]:/root#

6、检查系统编码

[email protected]:/root#locale
LANG=en_US.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8
[email protected]:/root#

此时使用ls --help就会有中文解释

[email protected]:/root#ls --help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all			不隐藏任何以. 开始的项目
  -A, --almost-all		列出除. 及.. 以外的任何项目
      --author			与-l 同时使用时列出每个文件的作者
  -b, --escape			以八进制溢出序列表示不可打印的字符
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first

 

标签:zh,CN,部署,环境,jumpserver,堡垒,t01,UTF,root
From: https://www.cnblogs.com/Magiclala/p/17138938.html

相关文章

  • Conda+VScode配置Python开发环境
    Conda配置与常用指令1、查看conda与Python相关信息查看Python路径wherepython查看conda版本conda--version查看conda详细信息condainfo2、换源更换为清华......
  • 用kubeadm部署K8S
    一、kubeadm部署K8S集群架构主机名IP地址安装组件master(2C/4G,cpu核心数要求大于2)192.168.2.66docker、kubeadm、kubelet、kubectl、flannelnode01(2C/2G)19......
  • K8S多节点二进制部署
    一、多Maser集群架构的了解Kubernetes作为容器集群系统,通过健康检查+重启策略实现了Pod故障自我修复能力,通过调度算法实现将Pod分布式部署,并保持预期副本数,根据Node失效......
  • kubeadm部署k8s集群(云原生)
    内容预知架构说明1.环境准备2.所有节点安装docker3.所有节点安装kubeadm,kubelet和kubectl4.部署Dashboard5.安装部署与k8s集群对接的Harbor仓库内核参数......
  • 生产环境中redis是怎么部署的?
    你的redis是不是主从架构?集群架构?用了哪种集群方案?有没有用高可用保证?有没有开启持久化机制确保可以进行数据恢复?线上redis给几个G的内存?设置了哪些参数?压测后你们redis......
  • django的部署在centos
    虚拟环境#virtualenv是一个创建独立python环境的工具sudopipinstallvirtualenv#virtualenvwrapper将所有的虚拟环境统一管理,留意安装路径后面要用sudopipinstall......
  • Docker安装部署kong和konga,并且配置konga页面
    ps:docker安装kong时,postgres的版本最好使用9.6,版本过高过低可能会出现问题网络配置1dockernetworkcreatekong-net安装启动postgres容器1dockerr......
  • docker安装jenkins使用docker-compose容器化实现部署maven多模块项目
    准备工作:需要下载好docker,这docker-compose,很简单,这里不做介绍。1、使用docker安装jenkins镜像,这里安装的最新的jenkins版本,也可指定版本,按需选择dockerpulljenkins/j......
  • Window部署RocketMQ
    预备环境JDK1.8、Maven、Git,具体安装可自行百度一、安装包下载从官网下载https://rocketmq.apache.org/release-notes选择合适的版本下载,我这里下载的ApacheRocketMQ......
  • k8s二进制高可用集群部署
    基于k8sV1.261.操作系统初始化2.etcd集群部署3.服务端部署4.节点部署 ......