上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 95 下一页
  2023年5月13日
摘要: 1.网站-高级设置,启用预加载 2.应用程序池,启动模式设置为 AlwaysRunning 3.站点-配置编辑器,doAppInitAfterRestart设置为True 添加集合:initializationPage设置为 /home 阅读全文
posted @ 2023-05-13 18:44 momingliu11 阅读(1439) 评论(0) 推荐(0)
  2023年5月10日
摘要: Add-PSSnapin microsoft.exchange* $Subject = '警惕“退税”钓鱼邮件' #如果主题中包含&符号等特殊字符,则使用三对单引号;如果三对单引号搜索提示报错“不支持此属性关键字”,则将其替换为三对双引号 $From = "it@yx.com" $Sent = "0 阅读全文
posted @ 2023-05-10 17:28 momingliu11 阅读(277) 评论(0) 推荐(0)
  2023年4月6日
摘要: 先进入容器,查看容器IP: docker exec -it db /bin/bash 将容器172.21.0.111的5432端口,映射到宿主机的54321端口 步骤一: #查看nat表中的DOCKER链iptables -t nat --list-rules DOCKER#在nat表中添加一条DO 阅读全文
posted @ 2023-04-06 17:00 momingliu11 阅读(288) 评论(0) 推荐(0)
摘要: 判断 bash 变量是否为空:要点:变量两端用双引号括起来 如果bash变量未设置或设置为空字符串,则返回true: if [ -z "$var" ];另一个选择: [ -z "$var" ] && echo "Empty"确定bash变量是否为空: [[ ! -z "$var" ]] && ech 阅读全文
posted @ 2023-04-06 14:40 momingliu11 阅读(178) 评论(0) 推荐(0)
  2023年3月30日
摘要: [array]::indexof($array,‘bbb’) 参考:https://devblogs.microsoft.com/scripting/find-the-index-number-of-a-value-in-a-powershell-array/ 阅读全文
posted @ 2023-03-30 17:59 momingliu11 阅读(43) 评论(0) 推荐(0)
摘要: $groupnum=@('d1','d2') $var_mid="groupnum" + $groupnum[0]New-Variable -Name $var_mid -Value 3 Get-Variable $var_mid $groupnumd1值为3 阅读全文
posted @ 2023-03-30 16:49 momingliu11 阅读(70) 评论(0) 推荐(0)
  2023年3月10日
摘要: #安装PSFTP模块 Install-Module psftp Get-Module psftp -ListAvailable Import-Module psftp $UserName = "ftpuser" $Password = "ftppassword" $userPassword = Co 阅读全文
posted @ 2023-03-10 15:22 momingliu11 阅读(162) 评论(0) 推荐(0)
  2023年2月8日
摘要: 1.A机器上启用sftp,编辑 /etc/ssh/sshd_config Subsystem sftp internal-sftp Ciphers aes256-ctr,aes192-ctr,aes128-ctr Match Group sftp ChrootDirectory /data1/sft 阅读全文
posted @ 2023-02-08 15:13 momingliu11 阅读(630) 评论(0) 推荐(0)
  2023年2月3日
摘要: 1.为Logstash添加一个配置文件dnsquery.conf,如下 input { kafka { add_field => { "es_index_name" => "dns-query" } bootstrap_servers => "10.0.8.1:9092" topics => "dn 阅读全文
posted @ 2023-02-03 10:28 momingliu11 阅读(352) 评论(0) 推荐(0)
  2023年2月2日
摘要: 开启DNS调试日志,记录DNS查询日志 当文件达到20M后,会自动重写新日志 DNS Deug Log,使用如下脚本进行分析 脚本: ############################################################################# # Thi 阅读全文
posted @ 2023-02-02 11:42 momingliu11 阅读(1491) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 95 下一页