07 2020 档案

摘要:Windows Server 2019 和 Windows 10 1809 以上版本内置支持OpenSSH,除此以外只能手动安装 https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_instal 阅读全文
posted @ 2020-07-31 21:17 ascertain 阅读(1945) 评论(0) 推荐(0) 编辑
摘要:--全量备份 exec master.dbo.fullbackup 'D:\DBBak\Bod\','Bod','bak' go exec master.dbo.fullbackup 'D:\DBBak\CJML_APP_IntelliP\','CJML_APP_IntelliP','bak' go 阅读全文
posted @ 2020-07-31 00:02 ascertain 阅读(266) 评论(0) 推荐(0) 编辑
摘要:目 录 1 目的 ............................................................................................................................................. 阅读全文
posted @ 2020-07-30 23:53 ascertain 阅读(1973) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-30 23:50 ascertain 阅读(358) 评论(0) 推荐(0) 编辑
摘要:系统允许一个进程创建新进程,新进程即为子进程,子进程还可以创建新的子进程,形成进程树结构模型。整个linux系统的所有进程也是一个树形结构。树根是系统自动构造的,即在内核态下执行的0号进程,它是所有进程的祖先。由0号进程创建1号进程(内核态),1号负责执行内核的部分初始化工作及进行系统配置,并创建若 阅读全文
posted @ 2020-07-22 20:36 ascertain 阅读(672) 评论(0) 推荐(0) 编辑
摘要:清除buffer和cache echo 3 > /proc/sys/vm/drop_cashes 磁盘操作: 逻辑级: 文件系统,块为最小寻址单元(文件块,I/O块)每个块包含一个或多个扇区,直接缓存文件系统数据(有文件系统参与),操作对象为文件 物理级: 磁盘块,扇区为最小寻址单元(设备块) bu 阅读全文
posted @ 2020-07-18 17:13 ascertain 阅读(134) 评论(0) 推荐(0) 编辑
摘要:proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_pass http://i 阅读全文
posted @ 2020-07-18 17:05 ascertain 阅读(2433) 评论(0) 推荐(0) 编辑
摘要:rhel系的安装过程中将普通用户加入管理组,其本质就是将其加入wheel组中 %wheel ALL=(ALL) NOPASSWD: ALL 阅读全文
posted @ 2020-07-18 16:48 ascertain 阅读(388) 评论(0) 推荐(0) 编辑
摘要:安装: 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 阅读(216) 评论(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 阅读(125) 评论(0) 推荐(0) 编辑
摘要:每个逻辑卷都是块设备,于/dev/dm-[0-n],主设备号253,从设置从0开始编号,dm => device mapper dmsetup info /dev/dm-0 阅读全文
posted @ 2020-07-17 20:08 ascertain 阅读(227) 评论(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 阅读(150) 评论(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 阅读(133) 评论(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 阅读(103) 评论(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 阅读(411) 评论(0) 推荐(0) 编辑
摘要:求100以内fabonacci sequence 阅读全文
posted @ 2020-07-15 21:19 ascertain 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-12 10:34 ascertain 阅读(93) 评论(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 阅读(122) 评论(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 阅读(103) 评论(0) 推荐(0) 编辑
摘要:string site:URI 在某一站点内搜索 "string1 string2 ......... stringN" 作为整体搜索,必须使用double quotation marks 搜索引擎会进行分词等等,加入double quotation marks会禁止搜索引擎拆词string之间不会 阅读全文
posted @ 2020-07-10 22:24 ascertain 阅读(153) 评论(0) 推荐(0) 编辑
摘要:将注册表中Compute\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters中的IPEntableRouter修改为1,默认为0(关闭) 阅读全文
posted @ 2020-07-10 21:47 ascertain 阅读(1281) 评论(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 阅读(291) 评论(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 阅读(187) 评论(0) 推荐(0) 编辑
摘要:-R --relative 把全路径拷贝到目标,把上级目录的全路径拷贝 不管加不加/ 都会讲源数据路径一起同步 通过--daemon方式pull,似乎只能复制文件,不能复制目录,-R选项无效但是--daemon方式push,/是文件 不带/ 是目录 -R是全路径 rsyncd.conf motd f 阅读全文
posted @ 2020-07-08 01:44 ascertain 阅读(80) 评论(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 阅读(537) 评论(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 阅读(115) 评论(0) 推荐(0) 编辑
摘要:restrict ip mask 不跟参数表示无任何限制,常用nomodify 客户端不能修改服务器时间,但可校时 noquery 不能校时 notrap: 不提供远程时间登陆功能 notrust 不接受没有认证的client server ip|hostname [prefer iburst] 设 阅读全文
posted @ 2020-07-08 01:34 ascertain 阅读(639) 评论(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 阅读(1613) 评论(0) 推荐(0) 编辑
摘要:vasp需要parallel_studio_xe_2018_update4_cluster_edition.tgz的intel mpi支持,openMPI需要更改makefile参数,麻烦/etc/profile.d/intel.sh --> source /etc/profile.d/intel. 阅读全文
posted @ 2020-07-07 17:53 ascertain 阅读(516) 评论(0) 推荐(0) 编辑
摘要:使用*的时候,简单类型和复杂类型存在区别,复杂类型仅是复制引用地址 上面出错的原因为dict.update(k=v)中k必须是变量,不能是字符串,这个变量会被转换成字符串 阅读全文
posted @ 2020-07-07 12:50 ascertain 阅读(126) 评论(0) 推荐(0) 编辑
摘要:--list-interfaces 列出可用接口 -e 包含链路层mac tcpdump -i interface -nc 10 ether dst MAC 使用MAC地址进行抓包,加入ether修饰 win表示发送方窗口大小,ack213表示对序列号213的包进行响应 Flags表示tcp的标志位 阅读全文
posted @ 2020-07-04 15:57 ascertain 阅读(269) 评论(0) 推荐(0) 编辑
摘要:dnf install java-11-openjdk postgresql-server postgresql postgresql-contrib useradd sonar unzip sonarqube-VERSION.zip -d /opt ln -sv /opt/sonarqube-VE 阅读全文
posted @ 2020-07-04 14:23 ascertain 阅读(144) 评论(0) 推荐(0) 编辑
摘要:修改global & session 变量 lock tables tbl_name [[as] alias] read | write 阅读全文
posted @ 2020-07-04 03:01 ascertain 阅读(148) 评论(0) 推荐(0) 编辑
摘要:JDK: jdk下载网址:https://www.oracle.com/java/technologies/javase-jdk14-downloads.html JAVA_HOME ==> C:\Program Files\Java\jdk-14.0.1 CLASSPATH ==> .,%JAVA 阅读全文
posted @ 2020-07-03 08:18 ascertain 阅读(198) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示