摘要: 安装: yum install pcre-devel openssl-devel apr ./configure --prefix=/usr/local/apr make && make install apr-util ./configure --prefix=/usr/local/apr-uti 阅读全文
posted @ 2020-07-18 16:41 ascertain 阅读(202) 评论(0) 推荐(0) 编辑
摘要: -b allow ping a broadcast addresswindows and linux 默认都不会对广播ping做回应,可用 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts来使Linux对其响应 -i interval 1 阅读全文
posted @ 2020-07-17 21:19 ascertain 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 每个逻辑卷都是块设备,于/dev/dm-[0-n],主设备号253,从设置从0开始编号,dm => device mapper dmsetup info /dev/dm-0 阅读全文
posted @ 2020-07-17 20:08 ascertain 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 销毁磁盘数据dd if=/dev/urandom of=/dev/sdb 备份和恢复磁盘数据dd if=/dev/sda | gzip > image.gzgzip -d --stdout image.gz | dd of=/dev/sdc ibs 输入块大小obs 输出块大小skip : skip 阅读全文
posted @ 2020-07-17 18:57 ascertain 阅读(142) 评论(0) 推荐(0) 编辑
摘要: dig -t soa jd.com +multiline 显示具体的soa信息 dig isc.com +nssearch 查询一个域的授权DNS服务器 dig -x 7.7.7.7 +multiline (PTR)记录 阅读全文
posted @ 2020-07-17 18:45 ascertain 阅读(132) 评论(0) 推荐(0) 编辑
摘要: bc: 用于计算浮点数 echo "scale=4;3/13"|bc scale用于指定精度,默认为0,即只保留整数 $((4**3)) 引用4**3的结果 ((b=4**3)) 计算4**3的值赋给b b=$((4**3)) let b=4**3 echo $(ifconfig) 和 echo " 阅读全文
posted @ 2020-07-17 18:35 ascertain 阅读(102) 评论(0) 推荐(0) 编辑
摘要: dip = [] for _ in range(3): dip.append(int(input('{}: '.format(_)))) if dip[0]>dip[1]: if dip[0]>dip[2]: if dip[1]>dip[2]: dim=[dip[2],dip[1],dip[0]] 阅读全文
posted @ 2020-07-16 01:10 ascertain 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 求100以内fabonacci sequence 阅读全文
posted @ 2020-07-15 21:19 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-12 10:34 ascertain 阅读(92) 评论(0) 推荐(0) 编辑
摘要: inter process communication one host: signal semaphor shm: shared memory different host: rpc: remote procedure call 同样基于socket socket 阅读全文
posted @ 2020-07-10 23:08 ascertain 阅读(121) 评论(0) 推荐(0) 编辑
摘要: netstat -ano|findstr "80" 查找80字符串 ipconfig /release 释放通过DHCP获得的IP ipconfig /renew 通过DHCP获得地址 ipconfig /displaydns ipcofnig /flushdns nslookup => serve 阅读全文
posted @ 2020-07-10 22:28 ascertain 阅读(100) 评论(0) 推荐(0) 编辑
摘要: string site:URI 在某一站点内搜索 "string1 string2 ......... stringN" 作为整体搜索,必须使用double quotation marks 搜索引擎会进行分词等等,加入double quotation marks会禁止搜索引擎拆词string之间不会 阅读全文
posted @ 2020-07-10 22:24 ascertain 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 将注册表中Compute\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters中的IPEntableRouter修改为1,默认为0(关闭) 阅读全文
posted @ 2020-07-10 21:47 ascertain 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 预编译二进制包groupadd --gid 666 --system mysqluseradd --uid 666 --gid mysql --system mysqlln -sv mariadb-VERSION-OS mysqlchown --recursive --dereference -L 阅读全文
posted @ 2020-07-08 01:47 ascertain 阅读(283) 评论(0) 推荐(0) 编辑
摘要: --dns-servers 是复数,主要用于内部架设的dns服务器,外部dns无法解析.-Pn Treat all hosts as online skip host discovery 明确知道主机存活或防火墙开启的机器,-Pn不启用探测前的ICMP请求,达到不触发防火墙的安全机制 -F fast 阅读全文
posted @ 2020-07-08 01:45 ascertain 阅读(172) 评论(0) 推荐(0) 编辑
摘要: -R --relative 把全路径拷贝到目标,把上级目录的全路径拷贝 不管加不加/ 都会讲源数据路径一起同步 通过--daemon方式pull,似乎只能复制文件,不能复制目录,-R选项无效但是--daemon方式push,/是文件 不带/ 是目录 -R是全路径 rsyncd.conf motd f 阅读全文
posted @ 2020-07-08 01:44 ascertain 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 添加库文件路径: 1:导出环境变量 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/new_path 2:修改配置文件 ld.so.conf ld.so.conf.d/* LIBRARY_PATH 程序编译期间查找动态链接库时指定的查找路径,编译期,开发阶段, 只影 阅读全文
posted @ 2020-07-08 01:41 ascertain 阅读(526) 评论(0) 推荐(0) 编辑
摘要: vimrc的配置: colorscheme default filetype on filetype plugin on filetype indent on syntax enable syntax on set ai set autochdir set autoread set cindent 阅读全文
posted @ 2020-07-08 01:39 ascertain 阅读(113) 评论(0) 推荐(0) 编辑
摘要: restrict ip mask 不跟参数表示无任何限制,常用nomodify 客户端不能修改服务器时间,但可校时 noquery 不能校时 notrap: 不提供远程时间登陆功能 notrust 不接受没有认证的client server ip|hostname [prefer iburst] 设 阅读全文
posted @ 2020-07-08 01:34 ascertain 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 #include "time.h" 4 #define random(x) (rand()%x) 5 6 int main () 7 { 8 int m,l,p,q; 9 printf("输入第一个矩阵的维数m 阅读全文
posted @ 2020-07-08 01:28 ascertain 阅读(1552) 评论(0) 推荐(0) 编辑