- 博客(8)
- 收藏
- 关注
原创 linux上配置时间服务器
linux上配置时间服务器 yum install ntp -y # 安装ntp时间服务器 sed -i 's/server 0.centos.pool.ntp.org iburst/server ntp1.aliyun.com iburst/' /etc/ntp.conf # 使用aliyun NTP服务 sed -i '/1.centos.pool.ntp.org/s/^/#/' /etc/ntp.conf sed -i '/2.centos.pool.ntp.org/s/^/#/' /etc
2021-05-20 19:20:12
356
原创 docker 安装 confluence + PostgreSQL
这里使用的操作系统为CentOS 7 安装docker 安装过程请看连接,在这里不赘述 docker安装 PostgreSQL数据库 1、安装 PostgreSQL数据库 docker run --name postgresdb \ #设置容器名称 -p 5432:5432 \ #设置宿主机与容器端口映射关系 -e POSTGRES_PASSWORD=A**** \ #设置数据库的密码 -d postgres 2、进入 PostgreSQL数据库容器,创建confluence
2021-05-09 19:46:13
1675
原创 JDK下载,安装及环境变量配置方法
jdk下载网盘链接:https://pan.baidu.com/s/1Pxb0NM_GIRDBQnTtHeKspA 提取码:q08a
2021-05-09 18:10:49
197
原创 CentOS 7 安装 docker
CentOS 7 安装 docker 配置环境 --------------------------------------------------------------------------------------------------------- ## 关闭防火墙和selinux [root@manager ~]# systemctl stop firewalld && systemctl disable firewalld [root@manager ~]# sed -i
2021-05-09 15:53:15
211
原创 SNAT与DNAT
此文章内容皆为Centos 7版本 SNAT 源地址转换 应用场景:局域网主机访问互联网服务器(我们都知道私有网络是无法访问互联网的,那我们使用私有网络访问互联网时就需要用到SNAT) 格式: iptables -t nat -A POSTROUTING -o 外网网卡 -s 要访问外网的内网主机ip -j SNAT --to-source 外网ip #当外网ip非固定的情况下,更适合使用下面这种 iptables -t nat -A POSTROUTING -o 外网网卡 -s 要访问外网的内网主机ip
2021-01-06 11:00:25
242
原创 圣诞树
#!/bin/bash echo -e " \033[31m|\033[0m" echo -e " \033[31m-=*=-\033[0m" echo -e " \033[31m|\033[0m" #read -p “Enter the pattern you want : ” a #输入你想使用的符号 a=* for ((b=2 ; b<=4 ; b++ )
2020-12-25 09:09:22
3055
2
原创 竞猜小游戏
在这里演示的是竞猜价格的小游戏 #!/bin/bash echo -e "\033{41;30===guess the price !!!===\033{0m" echo “welcome,callenger ” a=1 which [ $a -le 3 ] do b=$(($RANDOM%100)) #随机生成一个100以内的数 d=1 which true do read -p "input you guess : “ e if [ $e -eq $b ] ;
2020-12-23 15:11:06
3003
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅