包含标签 2018 的文章

显卡故障日志分析

物理机宕机,查看有如下日志:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Jul 23 18:04:14 10.16.73.45 [19259390.583100] {1}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 3
Jul 23 18:04:14 10.16.73.45 [19259390.587458] {1}[Hardware Error]: event severity: fatal
Jul 23 18:04:14 10.16.73.45 [19259390.589789] {1}[Hardware Error]: Error 0, type: fatal
Jul 23 18:04:14 10.16.73.45 [19259390.592093] {1}[Hardware Error]: section_type: PCIe error
Jul 23 18:04:14 10.16.73.45 [19259390.594490] {1}[Hardware Error]: port_type: 4, root port
Jul 23 18:04:14 10.16.73.45 [19259390.596754] {1}[Hardware Error]: version: 1.16
Jul 23 18:04:14 10.16.73.45 [19259390.599014] {1}[Hardware Error]: command: 0x0547, status: 0x4010
Jul 23 18:04:14 10.16.73.45 [19259390.601243] {1}[Hardware Error]: device_id: 0000:00:02.0
Jul 23 18:04:14 10.16.73.45 [19259390.603379] {1}[Hardware Error]: slot: 6
Jul 23 18:04:14 10.16.73.45 [19259390.605558] {1}[Hardware Error]: secondary_bus: 0x03
Jul 23 18:04:14 10.16.73.45 [19259390.607726] {1}[Hardware Error]: vendor_id: 0x8086, device_id: 0x6f04
Jul 23 18:04:14 10.16.73.45 [19259390.610003] {1}[Hardware Error]: class_code: 000406
Jul 23 18:04:14 10.16.73.45 [19259390.612194] {1}[Hardware Error]: bridge: secondary_status: 0x0000, control: 0x0003
Jul 23 18:04:14 10.16.73.45 [19259390.616976] Kernel panic – not syncing: Fatal hardware error!

知识点:

……

阅读全文

Mysql5.7主从复制

replication with binary log file

Master端: A、 在my.cnf中开启二进制日志、设置server-id(需要唯一),然后保存重启mysqld服务。

……

阅读全文

Awk常用命令

  1. 列出最常的十条命令: history | awk '{$1="";print $0}' | awk '{a[$0]++}END{for(i in a){print a[i],i}}' | sort -rn |head

    ……

    阅读全文

curl命令手册

curl --location --request GET 'https://test.abc.com/v1/health' --header 'Authorization: Apikey 20220602'

-H "Content-Type: application/json"

-d "{ \"claimStatus\": 0, \"lastBillMonth\": 202208, \"occurDateTime\": \"2022-09-01 00:00:00\"}"

curl -k --resolve foo.bar:443:127.0.0.1 'https://foo.bar/foobar' -v -so /dev/null -w '%{size_download}' 

curl -H 'Host: web-host' http://192.168.1.100

curl $KUBE_API/apis/apps/v1/deployments \
  --cacert ~/.minikube/ca.crt \
  --cert ~/.minikube/profiles/cluster1/client.crt \
  --key ~/.minikube/profiles/cluster1/client.key


for i in `cat url.txt`
do
    code=`curl -o /dev/null -s -w "%{http_code}" $i`
    if [ $code != 200 ];then
        curl -H "Content-Type: application/json;charset=utf-8" \
             -d "{'msgtype': 'text','text': {'content': $i, '预发环境: 地址异常'}}" \
             https://oapi.dingtalk.com/robot/send?access_token=15026b8e5b68ec
    fi
done

curl --insecure https://www.example.com -H 'X-Forwarded-For: 1.1.1.1'

curl --user "gwy:Q1" guowy-cloud-eureka-server-0.eureka-headless.default.svc.cluster.local:8080
curl -u guowy: -X POST http://pre-prometheus..com/-/reload

curl -L -w "namelookup: %{time_namelookup}\nconnect: %{time_connect}\nappconnect: %{time_appconnect}\npretransfer: %{time_pretransfer}\nstarttransfer: %{time_starttransfer}\ntotal: %{time_total}\n" https://example.com/
……

阅读全文

Bat几个用法

windows上cmd的几个命令用法:

1. 将memcached服务放进后台启动,这样会继续执行后边的命令(如果有)

start /b D:\memcached\memcached.exe

2. 暂停5秒,相当于linux的sleep

timeout 5

3. 打印时间戳

set d=%date:~0,10%

set t=%time:~0,8%

echo “curl_time: %d% %t%” >> C:\website_log.txt

4. 循环

:loop
执行的command
goto:loop

5. 还有手动刷新dns缓存

ipconfig/flushdns
……

阅读全文

Dell r720 bios 设置

开机F2进入SYSTEM SETU

关闭节能模式

System BIOS Settings --> System Profile Settings
Energy Efficient Policy
使用Performance选项

NUMA

……

阅读全文