- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 PHP-FPM unix socket抓包
Sniffer for Unix Domain Sockets https://github.com/jonschipp/unixsniffDependenciesapt-get install socat bashtest.php<?phpecho 11;------------------------------------------------------------------UseEnable sniffing on socket$ ./u...
2022-03-31 09:52:40
2921
原创 查看本机网卡MTU值
1、Linux平台[root@localhost 10:55:24 /home/test]# ifconfigens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.15.5 netmask 255.255.255.0 broadcast 192.168.15.255 inet6 fe80::9a84:9e2a:c14f:5627 prefixlen 64 ...
2022-03-15 11:30:58
3662
原创 Linux ping命令测试网络MTU
MTU(Maximum Transmission Unit)网络上传送的最大数据包大小。MTU的单位是字节byte,主流网络是以太网(Ethernet)MTU是1500,以太网的相关网络设备MTU是1500。MTU其实属于OSI参考模型第2层(数据链路层),目的是限定【MAC帧中数据部分(payload)的大小】的值,会影响到【第3层的整个IP封包的大小】,此大小包括IP数据包的包头;而最终IP数据包是要放进MAC帧。28字节的大小,是 【IP包头的20字节】+【ICMP的包头8字节】。实.
2022-03-15 11:06:33
3714
原创 VIM替换命令%s
[root@localhost 09:03:42 /home/test]# cat vim_test.txtlinux nginxaabbbbccccddvim vim_test.txt 进入编辑模式输入指令 :%s/bb/zz/gc 全局替换,带确认按y对搜索项替换第一个按y对搜索项替换第二个这种操作方法 ,查看替换过程与效果。避免全局批量替换导致出错,出错后难于定位替换位置。...
2022-03-15 09:56:14
5236
原创 Linux将文件转换换行格式
现象:Linux执行脚本时,Windows回车符\r无法识别现象:Linux执行脚本时,Windows回车符\r无法识别[root@localhost 08:54:16 /home/test]# bash test.shtest.sh:行2: $'\r': 未找到命令hello world解决办法:vim test.sh # 打开此文件:set ff=unix # (或者:set fileformat=unix)...
2022-03-15 09:29:44
995
原创 Docker Alpine打包成功,容器启动失败处理
standard_init_linux.go:207: exec user process caused "no such file or directory"原因一Docker使用Alpine做基础镜像,Alpine默认/bin/sh, 要使用/bin/bash需要额外安装的。entrypoint.sh 请使用#!/bin/sh 开头。原因二entrypoint.sh...
2019-11-08 11:16:22
983
原创 Jenkins 从节点配置校验策略
[SSH] WARNING: No entry currently exists in the Known Hosts file for this host. Connections will be denied until this new host and its associated key is added to the Known Hosts file.Key exchange ...
2019-11-01 17:23:06
1213
原创 使用Generic Webhook Trigger插件实现Jenkins+WebHooks(Gogs)持续集成--指定分支和Commit message进行集成
Jenkins Job配置请求Request URL: http://192.168.15.207:8080/generic-webhook-trigger/invoke?token=activityRequest method: POSTContent-Type: application/jsonX-Github-Delivery: 911b5a88-fa58-4b...
2019-11-01 17:11:51
1016
原创 CentOS7 Firewalld 防火墙配置规则
systemctl enable firewalldsystemctl restart firewalldfirewall-cmd --add-port=80/tcp --permanent firewall-cmd --add-port=22/tcp --permanentfirewall-cmd --add-port=15672/tcp --permanentfirew...
2019-10-17 11:17:35
575
原创 Erlang Rabbitmq 二进制下载
https://www.erlang-solutions.com/resources/download.htmlhttps://www.rabbitmq.com/download.html[root@dev15-113 10:58:50 ~]# rpm -ivh rabbitmq-server-3.7.16-1.el7.noarch.rpmwarning: rabb...
2019-07-18 10:54:37
406
原创 SQL Server将时间戳换成datetime
SELECT DATEADD(S, ctime + 8 * 3600,'1970-01-01 00:00:00') ctime 时间戳数据列8 * 3600 东八区时间秒数
2019-06-19 17:49:40
1485
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人