webterminal开源堡垒机

少年恃险若平地,独倚长剑凌清秋。这篇文章主要讲述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
【webterminal开源堡垒机】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             导入容器                                                                      
??http://serverip/#help??


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

    推荐阅读