摘要: #!/bin/bash ############################################################## # File Name: 05-05.sh # Version: V1.0 # Author: guojintao # Organization: https://www.cnblogs.com/guojintao/ # Created T... 阅读全文
posted @ 2018-12-13 21:26 狂奔__蜗牛 阅读(367) 评论(0) 推荐(0) 编辑
摘要: [root@web01 d7]# cat ~/.vimrc set nocompatible set history=100filetype onfiletype plugin onfiletype indent on set autoread set mouse=csyntax enable se 阅读全文
posted @ 2018-12-11 22:45 狂奔__蜗牛 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 要求: eth0:192.168.100.203 连接内网,网关为192.168.100.1。需要和192.168.10.0、192.168.12.0、192.168.100.0、10.2.2.0、10.2.1.0网段通信。 eth1:172.16.0.203 连接外网,网关为172.16.0.25 阅读全文
posted @ 2018-09-18 13:32 狂奔__蜗牛 阅读(18376) 评论(1) 推荐(1) 编辑
摘要: 结论: 默认,父shell和子shell的变量是隔离的。 sh方式运行脚本,会重新开启一个子shell,无法继承父进程的普通变量,能继承父进程export的全局变量。 source或者. 方式运行脚本,会在当前shell下运行脚本,相当于把脚本内容加载到当前shell后执行,自然能使用前面定义的变量 阅读全文
posted @ 2018-08-31 13:18 狂奔__蜗牛 阅读(2334) 评论(1) 推荐(0) 编辑
摘要: import re,math def qcysf(s): while re.findall('\+\-|\+\+|\-\-|\-\+',s): s = s.replace('+-','-') s = s.replace('++','+') s = s.replace('--','+') s = s. 阅读全文
posted @ 2018-05-23 19:20 狂奔__蜗牛 阅读(3914) 评论(0) 推荐(0) 编辑
摘要: 系统:redhat5.4_64 安装DNS:[root@test6 ~]# yum install bind -y[root@test6 ~]# yum install bind-chroot -y[root@test6 etc]# yum install caching-nameserver -y 阅读全文
posted @ 2017-08-15 11:15 狂奔__蜗牛 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: CentOS6.5vsftpd 配置文件为/etc/vsftpd/vsftpd.conf 安装完软件后:1.默认匿名用户能够登陆,且限制在/pub目录内,2.本地用户可以登陆但因SElinux而无法登陆。3.ftpuser内用户无法登陆。(PAM限制)4.可利用 /etc/hosts.{allow| 阅读全文
posted @ 2016-08-11 15:04 狂奔__蜗牛 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 此文涉及命令:grep、sed、awk、printf、diff、cmp、patch。 概念: 简单的说,正则表示法就是处理字符串的方法,他是以行为单位来进行字符串的处理行为, 正则表示法透过一些特殊符号的辅助,可以让使用者轻易的达到『搜寻/删除/取代』某特定字符串的处理程序!正则表示法基本上是一种『 阅读全文
posted @ 2016-08-10 16:11 狂奔__蜗牛 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 此文涉及命令:useradd、usermod、userdel、passwd、chage、setfacl、getfacl、su、sudo、fingr、chfn、chsh、id、groupadd、groupmod、groupdel、gpasswd、visudo、w、who、lastlog、write、m 阅读全文
posted @ 2016-08-09 15:47 狂奔__蜗牛 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 此文涉及的命令:service、chkconfig。 一条命令显示开机启动服务的先后顺序:[root@gjt init.d]# awk '/chkconfig:/{print $4"\t"$5"\t"FILENAME}' * |sort -n 概念 命令 etc xinetd.d内档案配置说明: s 阅读全文
posted @ 2016-08-08 17:14 狂奔__蜗牛 阅读(772) 评论(0) 推荐(0) 编辑
levels of contents