2019年9月25日
摘要: www.nginx.org [root@localhost sbin]# mkdir nginx yum install wget -y -M 创建目录 路径,模块,创建用户名的同时创建组,组名与用户名一样 [root@www nginx-1.10.3]# ./configure --prefix= 阅读全文
posted @ 2019-09-25 20:04 _Adolescent* 阅读(99) 评论(0) 推荐(0) 编辑
  2019年9月12日
摘要: a = '我不吃,我不喝,我就要钱' b = '太社会了' c = 'hello word!' #1. find是非贪婪模式,意思就是从左边开始找,找到一个输出即可,不管后边有无, #2. 而且是整体搜索 find: print(a.find('我')) #在字符串a中寻找‘我’ 输出结果:0 pr 阅读全文
posted @ 2019-09-12 21:09 _Adolescent* 阅读(138) 评论(0) 推荐(0) 编辑
  2019年9月10日
摘要: 注释命令行:选住命令行ctrl+?或者 sh 在cmd中输入代码: 1.format可以接受任何的类型 a = float(input('请输入:')) b = float(input('请输入:')) print('{} - {} = {}'.format(a,b,a-b)) a = float( 阅读全文
posted @ 2019-09-10 13:23 _Adolescent* 阅读(174) 评论(0) 推荐(0) 编辑
摘要: # 回文数 num=input('输入一个数字:') if num==num[::-1] : print('这个数为回文数') else: print('不是') num=input('输入一个数字:') if num==num[::-1] : print('这个数为回文数') else: prin 阅读全文
posted @ 2019-09-10 12:50 _Adolescent* 阅读(225) 评论(0) 推荐(0) 编辑
  2019年9月9日
摘要: #1.将摄氏温度转化为华氏温度)编写一个从控制台读取摄氏温度并将它转变为华氏温度并予以显示的程序。转换公式如下所示fahrenheit = (9 / 5)*celsius + 32 c=float(input('请输入一个摄氏度:')) f=c*1.8+32 print('%.1f摄氏温度转换为华氏 阅读全文
posted @ 2019-09-09 20:27 _Adolescent* 阅读(990) 评论(0) 推荐(0) 编辑
  2019年9月5日
摘要: 交换机和AC中的一个做dhcp就可以 LWS1: vlan batch 100 to 103 200 300 interface Vlanif100 ip address 192.168.10.254 255.255.255.0#interface Vlanif101 ip address 10.1 阅读全文
posted @ 2019-09-05 20:56 _Adolescent* 阅读(608) 评论(0) 推荐(0) 编辑
  2019年9月4日
摘要: 企业网中SSID一个Guest,一个Internet,连接到Guest的外来用户只能访问内部业务,连接到Internet的用户可以访问互联网。要求: Guest连接的用户归纳到VLAN100,Internet连接的用户归纳到VLAN200, Guest为开放式认证,Internet为WPA2认证,密 阅读全文
posted @ 2019-09-04 21:04 _Adolescent* 阅读(511) 评论(1) 推荐(0) 编辑
摘要: 1.先给各个端口配地址 interface GigabitEthernet1/0/1 undo shutdown ip address 192.168.12.1 255.255.255.0 service-manage enable service-manage all permitinterfac 阅读全文
posted @ 2019-09-04 20:44 _Adolescent* 阅读(458) 评论(0) 推荐(0) 编辑
  2019年9月3日
摘要: 1.给各个端口配ip地址。交换机划分vlan后配ip地址 FW1: interface GigabitEthernet1/0/1 undo shutdown ip address 192.168.1.1 255.255.255.0 service-manage enable service-mana 阅读全文
posted @ 2019-09-03 19:53 _Adolescent* 阅读(19) 评论(0) 推荐(0) 编辑
  2019年8月30日
摘要: 配置FW_A各接口的IP地址(记得开管理功能 service-manage enable) interface GigabitEthernet1/0/0 ip address 10.2.0.1 255.255.255.0 service-manage enable service-manage al 阅读全文
posted @ 2019-08-30 21:18 _Adolescent* 阅读(412) 评论(0) 推荐(1) 编辑