少年恃险若平地,独倚长剑凌清秋。这篇文章主要讲述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
推荐阅读
- SpringBoot中的Schedule定时任务#yyds干货盘点#
- #yyds干货盘点#为了完成小姐姐安排的打分系统,又熬了一个小时的夜补充视图与模板
- 用 3000 字告诉大家,我们为什么要学习 Springboot()
- #yyds干货盘点# C#+Access+asp.net教学计划管理系统
- 带你读AI论文丨RAID2020 Cyber Threat Intelligence Modeling GCN
- oeasy教您玩转vim - 88 - # 自动命令autocmd
- 推荐学java——Spring集成MyBatis
- Kubernetes官方java客户端之八(fluent style)
- netty系列之:channel和channelGroup