Loaded plugins: fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error w ...
分类:
Web程序 时间:
2021-04-24 13:53:03
阅读次数:
0
NAT模式: 就是让虚拟机借助NAT(网络地址转换)功能,通过宿主机器所在的网络来访问公网。 也就是说,使用NAT模式可以实现在虚拟系统里访问互联网。 NAT模式下的虚拟机的TCP/IP配置信息是由VMnet8虚拟网络的DHCP服务器提供的,因此IP和DNS一般设置为“自动获取” 优点: 采用NAT ...
分类:
系统相关 时间:
2021-04-24 13:47:01
阅读次数:
0
1、测试数据 [root@centos7 test3]# cat b.txt e t s e s g m x w d g i d t e g x g e w 2、打印匹配w的行 [root@centos7 test3]# cat b.txt e t s e s g m x w d g i d t e ...
分类:
系统相关 时间:
2021-04-24 13:18:10
阅读次数:
0
来源:https://blog.csdn.net/xifeijian/article/details/15660185 在Window系统中有个Hosts文件(没有后缀名),在Windows98系统下该文件在Windows目录,在Windows2000/XP系统中位于C:\Winnt\System3 ...
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
随着科技的发展,服务器攻击的成本越来越低,如果不重视ddos防护,服务器很容易成为攻击目标,受到DDoS攻击。那么如何防止服务器被DDoS攻击呢? ? 分布式拒绝服务攻击(DDoS攻击)是一种针对目标系统的恶意网络攻击行为,DDoS攻击经常会导致被攻击者的业务无法正常访问,也就是所谓的拒绝服务。 常 ...
分类:
其他好文 时间:
2021-04-23 11:48:55
阅读次数:
0
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
这个东西折腾了一天,在rhel7上死活pip不能用,网上找了各种方法,基本都是垃圾文章,在无数次试验后,终于这篇文章成功装上了 rhel红帽时面对企业的,centos是基于redhat重新编译后的开源免费版,网上找不到适用rhel的很多东西和操作,以后还是用centos吧,两个差不多 centos7 ...
分类:
编程语言 时间:
2021-04-22 16:07:34
阅读次数:
0
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:
系统相关 时间:
2021-04-22 15:41:37
阅读次数:
0