webterminal开源堡垒机
Posted mailfile
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webterminal开源堡垒机相关的知识,希望对你有一定的参考价值。
cat /etc/redhat-release && uname -a
CentOS Linux release 7.8.2003 (Core)
Linux centos7-1 3.10.0-1127.el7.x86_64
systemctl stop firewalld && systemctl disable firewalld
echo SELINUX=disabled > /etc/sysconfig/selinux
cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 10 >> /etc/sysctl.conf
echo net.ipv4.ip_forward = 1 >> /etc/sysctl.conf
sysctl -p
yum install -y yum-utils device-mapper-persistent-data lvm2
yum install -y docker-ce-18.09.9 docker-ce-cli-18.09.9 containerd.io
systemctl start docker && systemctl enable docker
docker --version
Docker version 18.09.9, build 3967b7d
docker pull registry.cn-hangzhou.aliyuncs.com/webterminal/webterminal
docker run -itd -p 80:80 -p 2100:2100
--restart=always --user root:root
--name webterminal registry.cn-hangzhou.aliyuncs.com/webterminal/webterminal
docker logs -f webterminal 查看容器日志
docker save registry.cn-hangzhou.aliyuncs.com/webterminal/webterminal > webterminal_images.tar.gz 备份镜像
docker load -i webterminal_images.tar.gz 导入镜像 docker export webterminal > webterminal_docker.tar.gz 备份容器
docker import webterminal_docker.tar.gz 导入容器
username: admin
password: password!23456
netstat -tuplna | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6859/docker-proxy
netstat -tuplna | grep 2100
tcp 0 0 0.0.0.0:2100 0.0.0.0:* LISTEN 6840/docker-proxy
以上是关于webterminal开源堡垒机的主要内容,如果未能解决你的问题,请参考以下文章
GitHub Python项目推荐|Jumpserver是全球首款完全开源的堡垒机