七厦
如何hover时显示图例的完整信息?
echarts在"legend"里面添加"tooltip"就行了
legend: {
tooltip: {
show: true,
trigger: 'item',
},
}
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250112/2183d932355b895dfefb0b9ef1e535bf.png)
七厦
wordpress网站 内容页显示404 如何处理?
面板上wordpress2的规则是不存在的文件会请求到index.php访问的,
排查有问题的站点index.php文件是否存在,如存在就要排查index.php哪里返回404了,文章是否存在,链接请求的参数是否正常等,也可以备份index.php,修改index.php做测试等。
七厦
AMH面板不小心执行了重装命令,现在创建新主机,域名无法绑定,一直被连接到默认的主机?
AMH面板不小心执行了重装命令,现在创建新主机,域名无法绑定,一直被连接到默认的主机,请问可以如何修复
七厦
批处理如何去除文件名里固定日期格式xxxx_xx_xx_,只保留文字?
如果你使用 Windows 7 及以上,可以考虑使用 powershell,而不是 bat(批处理)。
将下面的代码保存为后缀为 ".ps1" 的文件即可。
Get-ChildItem | Where-Object { $_.Extension -ne '.bat' } | ForEach-Object {
$_.BaseName -replace '^\d{4}_\d{2}_\d{2}_', ''
} | Out-File -FilePath "all.txt" -Encoding UTF8
七厦
Centos6.5经常无故重启且不是人为的,谁可以帮忙从messages中分析下原因,谢谢!?
CENTOS6.5系统,最近经常重启,看cpu和内存没发现什么问题,messages日志中也没看出哪里的问题,有哪位熟悉系统日志的大神可以帮忙看看吗,万分感谢,下面是日志信息。
Sep 17 04:15:22 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1744" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Sep 17 22:15:11 localhost kernel: imklog 5.8.10, log source = /proc/kmsg started.
Sep 17 22:15:11 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1744" x-info="http://www.rsyslog.com"] start
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys cpuset
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys cpu
Sep 17 22:15:11 localhost kernel: Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
Sep 17 22:15:11 localhost kernel: Command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
Sep 17 22:15:11 localhost kernel: KERNEL supported cpus:
Sep 17 22:15:11 localhost kernel: Intel GenuineIntel
Sep 17 22:15:11 localhost kernel: AMD AuthenticAMD
Sep 17 22:15:11 localhost kernel: Centaur CentaurHauls
Sep 17 22:15:11 localhost kernel: BIOS-provided physical RAM map:
Sep 17 22:15:11 localhost kernel: BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 0000000000100000 - 00000000dffff000 (usable)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 00000000dffff000 - 00000000e0000000 (reserved)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 00000000fc000000 - 0000000100000000 (reserved)
Sep 17 22:15:11 localhost kernel: BIOS-e820: 0000000100000000 - 000000041f800000 (usable)
Sep 17 22:15:11 localhost kernel: DMI 2.4 present.
Sep 17 22:15:11 localhost kernel: SMBIOS version 2.4 @ 0xFDB50
Sep 17 22:15:11 localhost kernel: last_pfn = 0x41f800 max_arch_pfn = 0x400000000
Sep 17 22:15:11 localhost kernel: x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
Sep 17 22:15:11 localhost kernel: last_pfn = 0xdffff max_arch_pfn = 0x400000000
Sep 17 22:15:11 localhost kernel: init_memory_mapping: 0000000000000000-00000000dffff000
Sep 17 22:15:11 localhost kernel: init_memory_mapping: 0000000100000000-000000041f800000
Sep Sep 17 22:15:11 localhost kernel: ACPI: RSDP 00000000000fd890 00024 (v02 Xen)
Sep 17 22:15:11 localhost kernel: ACPI: XSDT 00000000fc00b9e0 00054 (v01 Xen HVM 00000000 HVML 00000000)
Sep 17 22:15:11 localhost kernel: ACPI: FACP 00000000fc00b170 000F4 (v04 Xen HVM 00000000 HVML 00000000)
Sep 17 22:15:11 localhost kernel: ACPI: DSDT 00000000fc001890 0985B (v02 Xen HVM 00000000 INTL 20121220)
Sep 17 22:15:11 localhost kernel: ACPI: FACS 00000000fc001850 00040
Sep 17 22:15:11 localhost kernel: ACPI: APIC 00000000fc00b270 00460 (v02 Xen HVM 00000000 HVML 00000000)
Sep 17 22:15:11 localhost kernel: ACPI: SRAT 00000000fc00b750 001D0 (v01 Xen HVM 00000000 HVML 00000000)
Sep 17 22:15:11 localhost kernel: ACPI: WAET 00000000fc00b950 00028 (v01 Xen HVM 00000000 HVML 00000000)
Sep 17 22:15:11 localhost kernel: ACPI: SSDT 00000000fc00b980 00024 (v02 Xen HVM 00000000 INTL 20121220)
Sep 17 22:15:11 localhost kernel: ACPI: SSDT 00000000fc00b9b0 00024 (v02 Xen HVM 00000000 INTL 20121220)
Sep 17 22:15:11 localhost kernel: Setting APIC routing to flat.
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 0 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 2 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 4 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 6 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 8 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 10 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 12 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 14 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 16 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 18 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 20 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 22 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 24 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 26 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 28 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: PXM 0 -> APIC 30 -> Node 0
Sep 17 22:15:11 localhost kernel: SRAT: Node 0 PXM 0 0-a0000
Sep 17 22:15:11 localhost kernel: SRAT: Node 0 PXM 0 100000-80000000
Sep 17 22:15:11 localhost kernel: SRAT: Node 0 PXM 0 80000000-fff00000
Sep 17 22:15:11 localhost kernel: SRAT: Node 0 PXM 0 100000000-41f800000
Sep 17 22:15:11 localhost kernel: Bootmem setup node 0 0000000000000000-000000041f800000
Sep 17 22:15:11 localhost kernel: NODE_DATA [0000000000021400 - 00000000000553ff]
Sep 17 22:15:11 localhost kernel: bootmap [0000000000100000 - 0000000000183eff] pages 84
Sep 17 22:15:11 localhost kernel: (9 early reservations) ==> bootmem [0000000000 - 041f800000]
Sep 17 22:15:11 localhost kernel: #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
Sep 17 22:15:11 localhost kernel: #1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
Sep 17 22:15:11 localhost kernel: #2 [0001000000 - 000201faa4] TEXT DATA BSS ==> [0001000000 - 000201faa4]
Sep 17 22:15:11 localhost kernel: #3 [0036f41000 - 0037fefbc3] RAMDISK ==> [0036f41000 - 0037fefbc3]
Sep 17 22:15:11 localhost kernel: #4 [000009f400 - 0000100000] BIOS reserved ==> [000009f400 - 0000100000]
Sep 17 22:15:11 localhost kernel: #5 [0002020000 - 00020200e0] BRK ==> [0002020000 - 00020200e0]
Sep 17 22:15:11 localhost kernel: #6 [0000008000 - 000000c000] PGTABLE ==> [0000008000 - 000000c000]
Sep 17 22:15:11 localhost kernel: #7 [000000c000 - 0000019000] PGTABLE ==> [000000c000 - 0000019000]
Sep 17 22:15:11 localhost kernel: #8 [0000019000 - 0000021400] MEMNODEMAP ==> [0000019000 - 0000021400]
Sep 17 22:15:11 localhost kernel: found SMP MP-table at [ffff8800000fd940] fd940
Sep 17 22:15:11 localhost kernel: Reserving 128MB of memory at 48MB for crashkernel (System RAM: 16888MB)
Sep 17 22:15:11 localhost kernel: Zone PFN ranges:
Sep 17 22:15:11 localhost kernel: DMA 0x00000001 -> 0x00001000
Sep 17 22:15:11 localhost kernel: DMA32 0x00001000 -> 0x00100000
Sep 17 22:15:11 localhost kernel: Normal 0x00100000 -> 0x0041f800
Sep 17 22:15:11 localhost kernel: Movable zone start PFN for each node
Sep 17 22:15:11 localhost kernel: early_node_map[3] active PFN ranges
Sep 17 22:15:11 localhost kernel: 0: 0x00000001 -> 0x0000009f
Sep 17 22:15:11 localhost kernel: 0: 0x00000100 -> 0x000dffff
Sep 17 22:15:11 localhost kernel: 0: 0x00100000 -> 0x0041f800
Sep 17 22:15:11 localhost kernel: ACPI: PM-Timer IO Port: 0xb008
Sep 17 22:15:11 localhost kernel: Setting APIC routing to flat.
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x1e] enabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x10] lapic_id[0x20] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x11] lapic_id[0x22] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x12] lapic_id[0x24] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x13] lapic_id[0x26] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x14] lapic_id[0x28] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x15] lapic_id[0x2a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x16] lapic_id[0x2c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x17] lapic_id[0x2e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x18] lapic_id[0x30] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x19] lapic_id[0x32] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1a] lapic_id[0x34] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1b] lapic_id[0x36] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1c] lapic_id[0x38] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1d] lapic_id[0x3a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1e] lapic_id[0x3c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x1f] lapic_id[0x3e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x20] lapic_id[0x40] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x21] lapic_id[0x42] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x22] lapic_id[0x44] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x23] lapic_id[0x46] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x24] lapic_id[0x48] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x25] lapic_id[0x4a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x26] lapic_id[0x4c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x27] lapic_id[0x4e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x28] lapic_id[0x50] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x29] lapic_id[0x52] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2a] lapic_id[0x54] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2b] lapic_id[0x56] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2c] lapic_id[0x58] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2d] lapic_id[0x5a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2e] lapic_id[0x5c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x2f] lapic_id[0x5e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x30] lapic_id[0x60] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x31] lapic_id[0x62] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x32] lapic_id[0x64] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x33] lapic_id[0x66] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x34] lapic_id[0x68] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x35] lapic_id[0x6a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x36] lapic_id[0x6c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x37] lapic_id[0x6e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x38] lapic_id[0x70] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x39] lapic_id[0x72] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3a] lapic_id[0x74] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3b] lapic_id[0x76] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3c] lapic_id[0x78] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3d] lapic_id[0x7a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3e] lapic_id[0x7c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x3f] lapic_id[0x7e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x40] lapic_id[0x80] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x41] lapic_id[0x82] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x42] lapic_id[0x84] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x43] lapic_id[0x86] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x44] lapic_id[0x88] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x45] lapic_id[0x8a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x46] lapic_id[0x8c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x47] lapic_id[0x8e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x48] lapic_id[0x90] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x49] lapic_id[0x92] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4a] lapic_id[0x94] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4b] lapic_id[0x96] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4c] lapic_id[0x98] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4d] lapic_id[0x9a] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4e] lapic_id[0x9c] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x4f] lapic_id[0x9e] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x50] lapic_id[0xa0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x51] lapic_id[0xa2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x52] lapic_id[0xa4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x53] lapic_id[0xa6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x54] lapic_id[0xa8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x55] lapic_id[0xaa] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x56] lapic_id[0xac] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x57] lapic_id[0xae] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x58] lapic_id[0xb0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x59] lapic_id[0xb2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5a] lapic_id[0xb4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5b] lapic_id[0xb6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5c] lapic_id[0xb8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5d] lapic_id[0xba] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5e] lapic_id[0xbc] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x5f] lapic_id[0xbe] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x60] lapic_id[0xc0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x61] lapic_id[0xc2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x62] lapic_id[0xc4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x63] lapic_id[0xc6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x64] lapic_id[0xc8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x65] lapic_id[0xca] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x66] lapic_id[0xcc] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x67] lapic_id[0xce] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x68] lapic_id[0xd0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x69] lapic_id[0xd2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6a] lapic_id[0xd4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6b] lapic_id[0xd6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6c] lapic_id[0xd8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6d] lapic_id[0xda] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6e] lapic_id[0xdc] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x6f] lapic_id[0xde] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x70] lapic_id[0xe0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x71] lapic_id[0xe2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x72] lapic_id[0xe4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x73] lapic_id[0xe6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x74] lapic_id[0xe8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x75] lapic_id[0xea] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x76] lapic_id[0xec] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x77] lapic_id[0xee] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x78] lapic_id[0xf0] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x79] lapic_id[0xf2] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7a] lapic_id[0xf4] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7b] lapic_id[0xf6] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7c] lapic_id[0xf8] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7d] lapic_id[0xfa] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7e] lapic_id[0xfc] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: LAPIC (acpi_id[0x7f] lapic_id[0xfe] disabled)
Sep 17 22:15:11 localhost kernel: ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
Sep 17 22:15:11 localhost kernel: IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
Sep 17 22:15:11 localhost kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
Sep 17 22:15:11 localhost kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
Sep 17 22:15:11 localhost kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
Sep 17 22:15:11 localhost kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
Sep 17 22:15:11 localhost kernel: Using ACPI (MADT) for SMP configuration information
Sep 17 22:15:11 localhost kernel: SMP: Allowing 128 CPUs, 112 hotplug CPUs
Sep 17 22:15:11 localhost kernel: Xen version 4.1.
Sep 17 22:15:11 localhost kernel: Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs.
Sep 17 22:15:11 localhost kernel: Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks.
Sep 17 22:15:11 localhost kernel: You might have to change the root device
Sep 17 22:15:11 localhost kernel: from /dev/hd[a-d] to /dev/xvd[a-d]
Sep 17 22:15:11 localhost kernel: in your root= kernel command line option
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 00000000dffff000 - 00000000e0000000
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 00000000e0000000 - 00000000fc000000
Sep 17 22:15:11 localhost kernel: PM: Registered nosave memory: 00000000fc000000 - 0000000100000000
Sep 17 22:15:11 localhost kernel: Allocating PCI resources starting at e0000000 (gap: e0000000:1c000000)
Sep 17 22:15:11 localhost kernel: Booting paravirtualized kernel on Xen
Sep 17 22:15:11 localhost kernel: NR_CPUS:4096 nr_cpumask_bits:128 nr_cpu_ids:128 nr_node_ids:1
Sep 17 22:15:11 localhost kernel: PERCPU: Embedded 31 pages/cpu @ffff880038000000 s94872 r8192 d23912 u131072
Sep 17 22:15:11 localhost kernel: pcpu-alloc: s94872 r8192 d23912 u131072 alloc=1*2097152
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111
Sep 17 22:15:11 localhost kernel: pcpu-alloc: [0] 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Sep 17 22:15:11 localhost kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 4132925
Sep 17 22:15:11 localhost kernel: Policy zone: Normal
Sep 17 22:15:11 localhost kernel: Kernel command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
Sep 17 22:15:11 localhost kernel: PID hash table entries: 4096 (order: 3, 32768 bytes)
Sep 17 22:15:11 localhost kernel: xsave/xrstor: enabled xstate_bv 0x7, cntxt size 0x340
Sep 17 22:15:11 localhost kernel: Checking aperture...
Sep 17 22:15:11 localhost kernel: No AGP bridge found
Sep 17 22:15:11 localhost kernel: PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Sep 17 22:15:11 localhost kernel: Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
Sep 17 22:15:11 localhost kernel: software IO TLB at phys 0x20000000 - 0x24000000
Sep 17 22:15:11 localhost kernel: Memory: 16289972k/17293312k available (5325k kernel code, 524684k absent, 478656k reserved, 7013k data, 1276k init)
Sep 17 22:15:11 localhost kernel: Hierarchical RCU implementation.
Sep 17 22:15:11 localhost kernel: NR_IRQS:33024 nr_irqs:1840
Sep 17 22:15:11 localhost kernel: Xen HVM callback vector for event delivery is enabled
Sep 17 22:15:11 localhost kernel: Console: colour VGA+ 80x25
Sep 17 22:15:11 localhost kernel: console [tty0] enabled
Sep 17 22:15:11 localhost kernel: allocated 67108864 bytes of page_cgroup
Sep 17 22:15:11 localhost kernel: please try 'cgroup_disable=memory' option if you don't want memory cgroups
Sep 17 22:15:11 localhost kernel: Fast TSC calibration using PIT
Sep 17 22:15:11 localhost kernel: Detected 1995.448 MHz processor.
Sep 17 22:15:11 localhost kernel: Calibrating delay loop (skipped), value calculated using timer frequency.. 3990.89 BogoMIPS (lpj=1995448)
Sep 17 22:15:11 localhost kernel: pid_max: default: 131072 minimum: 1024
Sep 17 22:15:11 localhost kernel: Security Framework initialized
Sep 17 22:15:11 localhost kernel: SELinux: Initializing.
Sep 17 22:15:11 localhost kernel: Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Sep 17 22:15:11 localhost kernel: Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Sep 17 22:15:11 localhost kernel: Mount-cache hash table entries: 256
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys ns
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys cpuacct
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys memory
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys devices
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys freezer
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys net_cls
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys blkio
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys perf_event
Sep 17 22:15:11 localhost kernel: Initializing cgroup subsys net_prio
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: Physical Processor ID: 0
Sep 17 22:15:11 localhost kernel: CPU: Processor Core ID: 0
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: alternatives: switching to unfair spinlock
Sep 17 22:15:11 localhost kernel: ACPI: Core revision 20090903
Sep 17 22:15:11 localhost kernel: ftrace: converting mcount calls to 0f 1f 44 00 00
Sep 17 22:15:11 localhost kernel: ftrace: allocating 21769 entries in 86 pages
Sep 17 22:15:11 localhost kernel: x2apic not enabled, IRQ remapping init failed
Sep 17 22:15:11 localhost kernel: APIC routing finalized to physical flat.
Sep 17 22:15:11 localhost kernel: ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
Sep 17 22:15:11 localhost kernel: CPU0: Intel(R) Xeon(R) CPU E7-4820 v2 @ 2.00GHz stepping 07
Sep 17 22:15:11 localhost kernel: Performance Events: unsupported p6 CPU model 62 no PMU driver, software events only.
Sep 17 22:15:11 localhost kernel: NMI watchdog disabled (cpu0): hardware events not enabled
Sep 17 22:15:11 localhost kernel: Booting Node 0, Processors #1
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #2
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #3
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #4
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #5
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #7
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #8
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #9
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #10
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #11
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #12
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #13
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #14
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: #15
Sep 17 22:15:11 localhost kernel: CPU: CPU feature rdtscp disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature constant_tsc disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature smep disabled on xen guest
Sep 17 22:15:11 localhost kernel: CPU: CPU feature avx disabled on xen guest
Sep 17 22:15:11 localhost kernel: mce: CPU supports 0 MCE banks
Sep 17 22:15:11 localhost kernel: Brought up 16 CPUs
Sep 17 22:15:11 localhost kernel: Total of 16 processors activated (63825.88 BogoMIPS).
Sep 17 22:15:11 localhost kernel: devtmpfs: initialized
Sep 17 22:15:11 localhost kernel: regulator: core version 0.5
Sep 17 22:15:11 localhost kernel: NET: Registered protocol family 16
Sep 17 22:15:11 localhost kernel: ACPI: bus type pci registered
Sep 17 22:15:11 localhost kernel: PCI: Using configuration type 1 for base access
Sep 17 22:15:11 localhost kernel: bio: create slab at 0
Sep 17 22:15:11 localhost kernel: ACPI: Interpreter enabled
Sep 17 22:15:11 localhost kernel: ACPI: (supports S0 S5)
Sep 17 22:15:11 localhost kernel: ACPI: Using IOAPIC for interrupt routing
Sep 17 22:15:11 localhost kernel: ACPI: No dock devices found.
Sep 17 22:15:11 localhost kernel: PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
Sep 17 22:15:11 localhost kernel: ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
Sep 17 22:15:11 localhost kernel: pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7]
Sep 17 22:15:11 localhost kernel: pci_root PNP0A03:00: host bridge window [io 0x0d00-0xffff]
Sep 17 22:15:11 localhost kernel: pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff]
Sep 17 22:15:11 localhost kernel: pci_root PNP0A03:00: host bridge window [mem 0xf0000000-0xfbffffff]
Sep 17 22:15:11 localhost kernel: PCI host bridge to bus 0000:00
Sep 17 22:15:11 localhost kernel: pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7]
Sep 17 22:15:11 localhost kernel: pci_bus 0000:00: root bus resource [io 0x0d00-0xffff]
Sep 17 22:15:11 localhost kernel: pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
Sep 17 22:15:11 localhost kernel: pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff]
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB
Sep 17 22:15:11 localhost kernel: ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
Sep 17 22:15:11 localhost kernel: ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
Sep 17 22:15:11 localhost kernel: ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
Sep 17 22:15:11 localhost kernel: vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
Sep 17 22:15:11 localhost kernel: vgaarb: loaded
Sep 17 22:15:11 localhost kernel: vgaarb: bridge control possible 0000:00:02.0
Sep 17 22:15:11 localhost kernel: SCSI subsystem initialized
Sep 17 22:15:11 localhost kernel: usbcore: registered new interface driver usbfs
Sep 17 22:15:11 localhost kernel: usbcore: registered new interface driver hub
Sep 17 22:15:11 localhost kernel: usbcore: registered new device driver usb
Sep 17 22:15:11 localhost kernel: PCI: Using ACPI for IRQ routing
Sep 17 22:15:11 localhost kernel: lo: Dropping TSO features since no CSUM feature.
Sep 17 22:15:11 localhost kernel: NetLabel: Initializing
Sep 17 22:15:11 localhost kernel: NetLabel: domain hash size = 128
Sep 17 22:15:11 localhost kernel: NetLabel: protocols = UNLABELED CIPSOv4
Sep 17 22:15:11 localhost kernel: NetLabel: unlabeled traffic allowed by default
Sep 17 22:15:11 localhost kernel: Switching to clocksource jiffies
Sep 17 22:15:11 localhost kernel: pnp: PnP ACPI init
Sep 17 22:15:11 localhost kernel: ACPI: bus type pnp registered
Sep 17 22:15:11 localhost kernel: pnp: PnP ACPI: found 12 devices
Sep 17 22:15:11 localhost kernel: ACPI: ACPI bus type pnp unregistered
Sep 17 22:15:11 localhost kernel: system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
Sep 17 22:15:11 localhost kernel: system 00:02: [io 0x08a0-0x08a3] has been reserved
Sep 17 22:15:11 localhost kernel: system 00:02: [io 0x0cc0-0x0ccf] has been reserved
Sep 17 22:15:11 localhost kernel: system 00:02: [io 0x04d0-0x04d1] has been reserved
Sep 17 22:15:11 localhost kernel: system 00:0b: [io 0xae00-0xae0f] has been reserved
Sep 17 22:15:11 localhost kernel: system 00:0b: [io 0xb044-0xb047] has been reserved
Sep 17 22:15:11 localhost kernel: Switching to clocksource acpi_pm
Sep 17 22:15:11 localhost kernel: NET: Registered protocol family 2
Sep 17 22:15:11 localhost kernel: IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
Sep 17 22:15:11 localhost kernel: TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
Sep 17 22:15:11 localhost kernel: TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Sep 17 22:15:11 localhost kernel: TCP: Hash tables configured (established 524288 bind 65536)
Sep 17 22:15:11 localhost kernel: TCP reno registered
Sep 17 22:15:11 localhost kernel: NET: Registered protocol family 1
Sep 17 22:15:11 localhost kernel: pci 0000:00:00.0: Limiting direct PCI/PCI transfers
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.0: PIIX3: Enabling Passive Release
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.0: Activating ISA DMA hang workarounds
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.2: PCI INT D -> GSI 23 (level, low) -> IRQ 23
Sep 17 22:15:11 localhost kernel: pci 0000:00:01.2: PCI INT D disabled
Sep 17 22:15:11 localhost kernel: pci 0000:00:04.0: PCI INT D -> GSI 35 (level, low) -> IRQ 35
Sep 17 22:15:11 localhost kernel: pci 0000:00:04.0: PCI INT D disabled
Sep 17 22:15:11 localhost kernel: Trying to unpack rootfs image as initramfs...
Sep 17 22:15:11 localhost kernel: Freeing initrd memory: 17082k freed
Sep 17 22:15:11 localhost kernel: audit: initializing netlink socket (disabled)
Sep 17 22:15:11 localhost kernel: type=2000 audit(1695017689.520:1): initialized
Sep 17 22:15:11 localhost kernel: HugeTLB registered 2 MB page size, pre-allocated 0 pages
Sep 17 22:15:11 localhost kernel: VFS: Disk quotas dquot_6.5.2
Sep 17 22:15:11 localhost kernel: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Sep 17 22:15:11 localhost kernel: msgmni has been set to 31849
Sep 17 22:15:11 localhost kernel: alg: No test for stdrng (krng)
Sep 17 22:15:11 localhost kernel: ksign: Installing public key data
Sep 17 22:15:11 localhost kernel: Loading keyring
Sep 17 22:15:11 localhost kernel: - Added public key 8A44323FB303E068
Sep 17 22:15:11 localhost kernel: - User ID: CentOS (Kernel Module GPG key)
Sep 17 22:15:11 localhost kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
Sep 17 22:15:11 localhost kernel: io scheduler noop registered
Sep 17 22:15:11 localhost kernel: io scheduler anticipatory registered
Sep 17 22:15:11 localhost kernel: io scheduler deadline registered
Sep 17 22:15:11 localhost kernel: io scheduler cfq registered (default)
Sep 17 22:15:11 localhost kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 17 22:15:11 localhost kernel: pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 17 22:15:11 localhost kernel: acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [5] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [6] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [7] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [8] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [9] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [10] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [11] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [12] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [13] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [14] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [15] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [16] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [17] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [18] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [19] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [20] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [21] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [22] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [23] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [24] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [25] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [26] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [27] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [28] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [29] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [30] registered
Sep 17 22:15:11 localhost kernel: acpiphp: Slot [31] registered
Sep 17 22:15:11 localhost kernel: ipmi message handler version 39.2
Sep 17 22:15:11 localhost kernel: IPMI System Interface driver.
Sep 17 22:15:11 localhost kernel: ipmi_si: Adding default-specified kcs state machine
Sep 17 22:15:11 localhost kernel: ipmi_si: Trying default-specified kcs state machine at i/o address 0xca2, slave address 0x0, irq 0
Sep 17 22:15:11 localhost kernel: ipmi_si: Interface detection failed
Sep 17 22:15:11 localhost kernel: ipmi_si: Adding default-specified smic state machine
Sep 17 22:15:11 localhost kernel: ipmi_si: Trying default-specified smic state machine at i/o address 0xca9, slave address 0x0, irq 0
Sep 17 22:15:11 localhost kernel: ipmi_si: Interface detection failed
Sep 17 22:15:11 localhost kernel: ipmi_si: Adding default-specified bt state machine
Sep 17 22:15:11 localhost kernel: ipmi_si: Trying default-specified bt state machine at i/o address 0xe4, slave address 0x0, irq 0
Sep 17 22:15:11 localhost kernel: ipmi_si: Interface detection failed
Sep 17 22:15:11 localhost kernel: ipmi_si: Unable to find any System Interface(s)
Sep 17 22:15:11 localhost kernel: input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
Sep 17 22:15:11 localhost kernel: ACPI: Power Button [PWRF]
Sep 17 22:15:11 localhost kernel: input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
Sep 17 22:15:11 localhost kernel: ACPI: Sleep Button [SLPF]
Sep 17 22:15:11 localhost kernel: ACPI Exception: AE_NOT_FOUND, No or invalid critical threshold (20090903/thermal-386)
Sep 17 22:15:11 localhost kernel: GHES: HEST is not enabled!
Sep 17 22:15:11 localhost kernel: xen-platform-pci 0000:00:03.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
Sep 17 22:15:11 localhost kernel: Grant table initialized
Sep 17 22:15:11 localhost kernel: Non-volatile memory driver v1.3
Sep 17 22:15:11 localhost kernel: Linux agpgart interface v0.103
Sep 17 22:15:11 localhost kernel: crash memory driver: version 1.1
Sep 17 22:15:11 localhost kernel: Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Sep 17 22:15:11 localhost kernel: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Sep 17 22:15:11 localhost kernel: serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Sep 17 22:15:11 localhost kernel: 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Sep 17 22:15:11 localhost kernel: 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Sep 17 22:15:11 localhost kernel: brd: module loaded
Sep 17 22:15:11 localhost kernel: loop: module loaded
Sep 17 22:15:11 localhost kernel: input: Macintosh mouse button emulation as /devices/virtual/input/input2
Sep 17 22:15:11 localhost kernel: Fixed MDIO Bus: probed
Sep 17 22:15:11 localhost kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Sep 17 22:15:11 localhost kernel: ehci_hcd 0000:00:04.0: PCI INT D -> GSI 35 (level, low) -> IRQ 35
Sep 17 22:15:11 localhost kernel: ehci_hcd 0000:00:04.0: EHCI Host Controller
Sep 17 22:15:11 localhost kernel: ehci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 1
Sep 17 22:15:11 localhost kernel: ehci_hcd 0000:00:04.0: irq 35, io mem 0xf3021000
Sep 17 22:15:11 localhost kernel: ehci_hcd 0000:00:04.0: USB 2.0 started, EHCI 1.00
Sep 17 22:15:11 localhost kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Sep 17 22:15:11 localhost kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Sep 17 22:15:11 localhost kernel: usb usb1: Product: EHCI Host Controller
Sep 17 22:15:11 localhost kernel: usb usb1: Manufacturer: Linux 2.6.32-431.el6.x86_64 ehci_hcd
Sep 17 22:15:11 localhost kernel: usb usb1: SerialNumber: 0000:00:04.0
Sep 17 22:15:11 localhost kernel: usb usb1: configuration #1 chosen from 1 choice
Sep 17 22:15:11 localhost kernel: hub 1-0:1.0: USB hub found
Sep 17 22:15:11 localhost kernel: hub 1-0:1.0: 6 ports detected
Sep 17 22:15:11 localhost kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Sep 17 22:15:11 localhost kernel: uhci_hcd: USB Universal Host Controller Interface driver
Sep 17 22:15:11 localhost kernel: uhci_hcd 0000:00:01.2: PCI INT D -> GSI 23 (level, low) -> IRQ 23
Sep 17 22:15:11 localhost kernel: uhci_hcd 0000:00:01.2: UHCI Host Controller
Sep 17 22:15:11 localhost kernel: uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 2
Sep 17 22:15:11 localhost kernel: uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c200
Sep 17 22:15:11 localhost kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
Sep 17 22:15:11 localhost kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Sep 17 22:15:11 localhost kernel: usb usb2: Product: UHCI Host Controller
Sep 17 22:15:11 localhost kernel: usb usb2: Manufacturer: Linux 2.6.32-431.el6.x86_64 uhci_hcd
Sep 17 22:15:11 localhost kernel: usb usb2: SerialNumber: 0000:00:01.2
Sep 17 22:15:11 localhost kernel: usb usb2: configuration #1 chosen from 1 choice
Sep 17 22:15:11 localhost kernel: hub 2-0:1.0: USB hub found
Sep 17 22:15:11 localhost kernel: hub 2-0:1.0: 2 ports detected
Sep 17 22:15:11 localhost kernel: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
Sep 17 22:15:11 localhost kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Sep 17 22:15:11 localhost kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
Sep 17 22:15:11 localhost kernel: mice: PS/2 mouse device common for all mice
Sep 17 22:15:11 localhost kernel: rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
Sep 17 22:15:11 localhost kernel: rtc0: alarms up to one day, 114 bytes nvram
Sep 17 22:15:11 localhost kernel: cpuidle: using governor ladder
Sep 17 22:15:11 localhost kernel: cpuidle: using governor menu
Sep 17 22:15:11 localhost kernel: EFI Variables Facility v0.08 2004-May-17
Sep 17 22:15:11 localhost kernel: usbcore: registered new interface driver hiddev
Sep 17 22:15:11 localhost kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
Sep 17 22:15:11 localhost kernel: usbcore: registered new interface driver usbhid
Sep 17 22:15:11 localhost kernel: usbhid: v2.6:USB HID core driver
Sep 17 22:15:11 localhost kernel: GRE over IPv4 demultiplexor driver
Sep 17 22:15:11 localhost kernel: TCP cubic registered
Sep 17 22:15:11 localhost kernel: Initializing XFRM netlink socket
Sep 17 22:15:11 localhost kernel: NET: Registered protocol family 17
Sep 17 22:15:11 localhost kernel: registered taskstats version 1
Sep 17 22:15:11 localhost kernel: XENBUS: Device with no driver: device/vbd/51712
Sep 17 22:15:11 localhost kernel: XENBUS: Device with no driver: device/vbd/51760
Sep 17 22:15:11 localhost kernel: XENBUS: Device with no driver: device/vif/0
Sep 17 22:15:11 localhost kernel: rtc_cmos 00:04: setting system clock to 2023-09-18 06:14:51 UTC (1695017691)
Sep 17 22:15:11 localhost kernel: Initalizing network drop monitor service
Sep 17 22:15:11 localhost kernel: Freeing unused kernel memory: 1276k freed
Sep 17 22:15:11 localhost kernel: Write protecting the kernel read-only data: 10240k
Sep 17 22:15:11 localhost kernel: Freeing unused kernel memory: 800k freed
Sep 17 22:15:11 localhost kernel: Freeing unused kernel memory: 1588k freed
Sep 17 22:15:11 localhost kernel: dracut: dracut-004-335.el6
Sep 17 22:15:11 localhost kernel: dracut: rd_NO_LUKS: removing cryptoluks activation
Sep 17 22:15:11 localhost kernel: device-mapper: uevent: version 1.0.3
Sep 17 22:15:11 localhost kernel: device-mapper: ioctl: 4.24.6-ioctl (2013-01-15) initialised: dm-devel@redhat.com
Sep 17 22:15:11 localhost kernel: udev: starting version 147
Sep 17 22:15:11 localhost kernel: dracut: Starting plymouth daemon
Sep 17 22:15:11 localhost kernel: dracut: rd_NO_DM: removing DM RAID activation
Sep 17 22:15:11 localhost kernel: dracut: rd_NO_MD: removing MD RAID activation
Sep 17 22:15:11 localhost kernel: usb 2-1: new full speed USB device number 2 using uhci_hcd
Sep 17 22:15:11 localhost kernel: scsi0 : ata_piix
Sep 17 22:15:11 localhost kernel: scsi1 : ata_piix
Sep 17 22:15:11 localhost kernel: ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc220 irq 14
Sep 17 22:15:11 localhost kernel: ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc228 irq 15
Sep 17 22:15:11 localhost kernel: Refined TSC clocksource calibration: 1995.192 MHz.
Sep 17 22:15:11 localhost kernel: Switching to clocksource tsc
Sep 17 22:15:11 localhost kernel: ata2.01: ATAPI: QEMU DVD-ROM, 1.2.2, max UDMA/100
Sep 17 22:15:11 localhost kernel: ata2.01: configured for MWDMA2
Sep 17 22:15:11 localhost kernel: scsi 1:0:1:0: CD-ROM QEMU QEMU DVD-ROM 1.2. PQ: 0 ANSI: 5
Sep 17 22:15:11 localhost kernel: xlblk_init: register_blkdev major: 202
Sep 17 22:15:11 localhost kernel: vbd vbd-51760: 19 xenbus_dev_probe on device/vbd/51760
Sep 17 22:15:11 localhost kernel: vbd vbd-51760: failed to write error node for device/vbd/51760 (19 xenbus_dev_probe on device/vbd/51760)
Sep 17 22:15:11 localhost kernel: blkfront: xvda: barriers disabled
Sep 17 22:15:11 localhost kernel: xvda: xvda1 xvda2
Sep 17 22:15:11 localhost kernel: sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
Sep 17 22:15:11 localhost kernel: Uniform CD-ROM driver Revision: 3.20
Sep 17 22:15:11 localhost kernel: input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
Sep 17 22:15:11 localhost kernel: usb 2-1: New USB device found, idVendor=0627, idProduct=0001
Sep 17 22:15:11 localhost kernel: usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
Sep 17 22:15:11 localhost kernel: usb 2-1: Product: QEMU USB Tablet
Sep 17 22:15:11 localhost kernel: usb 2-1: Manufacturer: QEMU
Sep 17 22:15:11 localhost kernel: usb 2-1: SerialNumber: 42
Sep 17 22:15:11 localhost kernel: usb 2-1: configuration #1 chosen from 1 choice
Sep 17 22:15:11 localhost kernel: input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb2/2-1/2-1:1.0/input/input5
Sep 17 22:15:11 localhost kernel: generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1/input0
Sep 17 22:15:11 localhost kernel: dracut: Scanning devices xvda2 for LVM logical volumes VolGroup/lv_swap VolGroup/lv_root
Sep 17 22:15:11 localhost kernel: dracut: inactive '/dev/VolGroup/lv_root' [50.00 GiB] inherit
Sep 17 22:15:11 localhost kernel: dracut: inactive '/dev/VolGroup/lv_home' [241.66 GiB] inherit
Sep 17 22:15:11 localhost kernel: dracut: inactive '/dev/VolGroup/lv_swap' [7.84 GiB] inherit
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): INFO: recovery required on readonly filesystem
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): write access will be enabled during recovery
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): orphan cleanup on readonly fs
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): 1 orphan inode deleted
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): recovery complete
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts:
Sep 17 22:15:11 localhost kernel: dracut: Mounted root filesystem /dev/mapper/VolGroup-lv_root
Sep 17 22:15:11 localhost kernel: SELinux: Disabled at runtime.
Sep 17 22:15:11 localhost kernel: type=1404 audit(1695017699.779:2): selinux=0 auid=4294967295 ses=4294967295
Sep 17 22:15:11 localhost kernel: dracut:
Sep 17 22:15:11 localhost kernel: dracut: Switching root
Sep 17 22:15:11 localhost kernel: udev: starting version 147
Sep 17 22:15:11 localhost kernel: piix4_smbus 0000:00:01.3: Host SMBus controller not enabled!
Sep 17 22:15:11 localhost kernel: Initialising Xen virtual ethernet driver.
Sep 17 22:15:11 localhost kernel: xen-netfront: eth0 has no ip.
Sep 17 22:15:11 localhost kernel: xen-netfront: eth0 has no ip.
Sep 17 22:15:11 localhost kernel: sr 1:0:1:0: Attached scsi generic sg0 type 5
Sep 17 22:15:11 localhost kernel: microcode: CPU0 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU1 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU2 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU3 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU4 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU5 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU6 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: microcode: CPU7 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU8 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU9 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU10 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU11 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU12 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU13 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU14 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: microcode: CPU15 sig=0x306e7, pf=0x80, revision=0x709
Sep 17 22:15:11 localhost kernel: platform microcode: firmware: requesting intel-ucode/06-3e-07
Sep 17 22:15:11 localhost kernel: Microcode Update Driver: v2.00 , Peter Oruba
Sep 17 22:15:11 localhost kernel: EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts:
Sep 17 22:15:11 localhost kernel: EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts:
Sep 17 22:15:11 localhost kernel: Adding 8224760k swap on /dev/mapper/VolGroup-lv_swap. Priority:-1 extents:1 across:8224760k SS
Sep 17 22:15:11 localhost kernel: xen_balloon: Initialising balloon driver.
Sep 17 22:15:11 localhost kernel: Procfs: Balloon user-space has been created.
Sep 17 22:15:11 localhost kernel: Xen_hcall: DomU hypercall user-space has been created.
Sep 17 22:15:11 localhost kernel: scsifront_init.
Sep 17 22:15:11 localhost kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Sep 17 22:15:11 localhost kernel: NET: Registered protocol family 10
Sep 17 22:15:11 localhost kernel: lo: Disabled Privacy Extensions
Sep 17 22:15:11 localhost cpuspeed: CPU Frequency scaling is currently not supported on xen kernels
Sep 17 22:15:13 localhost NetworkManager[1815]: NetworkManager (version 0.8.1-66.el6) is starting...
Sep 17 22:15:13 localhost NetworkManager[1815]: Read config file /etc/NetworkManager/NetworkManager.conf
Sep 17 22:15:13 localhost NetworkManager[1815]: trying to start the modem manager...
Sep 17 22:15:13 localhost rpc.statd[1834]: Version 1.2.3 starting
Sep 17 22:15:13 localhost modem-manager: ModemManager (version 0.4.0-5.git20100628.el6) starting...
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Longcheer
Sep 17 22:15:13 localhost sm-notify[1835]: Version 1.2.3 starting
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Option
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Ericsson MBM
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Huawei
Sep 17 22:15:13 localhost modem-manager: Loaded plugin AnyData
Sep 17 22:15:13 localhost modem-manager: Loaded plugin SimTech
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Nokia
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Gobi
Sep 17 22:15:13 localhost modem-manager: Loaded plugin ZTE
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Generic
Sep 17 22:15:13 localhost modem-manager: Loaded plugin MotoC
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Option High-Speed
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Sierra
Sep 17 22:15:13 localhost modem-manager: Loaded plugin Novatel
Sep 17 22:15:13 localhost NetworkManager[1815]: monitoring kernel firmware directory '/lib/firmware'.
Sep 17 22:15:13 localhost NetworkManager[1815]: Bonding/Bridging/VLAN support disabled
Sep 17 22:15:13 localhost NetworkManager[1815]: ifcfg-rh: Acquired D-Bus service com.redhat.ifcfgrh1
Sep 17 22:15:13 localhost NetworkManager[1815]: Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Sep 17 22:15:13 localhost NetworkManager[1815]: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Sep 17 22:15:13 localhost NetworkManager[1815]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Sep 17 22:15:13 localhost NetworkManager[1815]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
Sep 17 22:15:13 localhost NetworkManager[1815]: ifcfg-rh: read connection 'System eth0'
Sep 17 22:15:13 localhost NetworkManager[1815]: WiFi enabled by radio killswitch; enabled by state file
Sep 17 22:15:13 localhost NetworkManager[1815]: WWAN enabled by radio killswitch; enabled by state file
Sep 17 22:15:13 localhost NetworkManager[1815]: WiMAX enabled by radio killswitch; enabled by state file
Sep 17 22:15:13 localhost NetworkManager[1815]: Networking is enabled by state file
Sep 17 22:15:13 localhost kernel: 802.1Q VLAN Support v1.8 Ben Greear
Sep 17 22:15:13 localhost kernel: All bugs added by David S. Miller
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): carrier is ON
Sep 17 22:15:13 localhost NetworkManager[1815]: [1695017713.611406] [nm-device-ethernet.c:525] real_update_permanent_hw_address(): (eth0): unable to read permanent MAC address (error 0)
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): new Ethernet device (driver: 'vif' ifindex: 2)
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): now managed
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): device state change: 1 -> 2 (reason 41)
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): preparing device.
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) starting connection 'System eth0'
Sep 17 22:15:13 localhost NetworkManager[1815]: (nm-device.c:3304):nm_device_activate: runtime check failed: (priv->state == NM_DEVICE_STATE_DISCONNECTED)
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): device state change: 2 -> 7 (reason 0)
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Sep 17 22:15:13 localhost NetworkManager[1815]: modem-manager is now available
Sep 17 22:15:13 localhost NetworkManager[1815]: Trying to start the supplicant...
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Sep 17 22:15:13 localhost NetworkManager[1815]: (eth0): device state change: 7 -> 8 (reason 0)
Sep 17 22:15:13 localhost NetworkManager[1815]: Policy set 'System eth0' (eth0) as default for IPv4 routing and DNS.
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) successful, device activated.
Sep 17 22:15:13 localhost NetworkManager[1815]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Sep 17 22:15:13 localhost NetworkManager[1815]: wpa_supplicant started
Sep 17 22:15:13 localhost kernel: RPC: Registered named UNIX socket transport module.
Sep 17 22:15:13 localhost kernel: RPC: Registered udp transport module.
Sep 17 22:15:13 localhost kernel: RPC: Registered tcp transport module.
Sep 17 22:15:13 localhost kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
Sep 17 22:15:13 localhost kernel: Slow work thread pool: Starting up
Sep 17 22:15:13 localhost kernel: Slow work thread pool: Ready
Sep 17 22:15:13 localhost kernel: FS-Cache: Loaded
Sep 17 22:15:14 localhost acpid: starting up
Sep 17 22:15:14 localhost acpid: 1 rule loaded
Sep 17 22:15:14 localhost acpid: waiting for events: event logging is off
Sep 17 22:15:14 localhost kernel: NFS: Registering the id_resolver key type
Sep 17 22:15:14 localhost kernel: FS-Cache: Netfs 'nfs' registered for caching
Sep 17 22:15:14 localhost acpid: client connected from 2004[68:68]
Sep 17 22:15:14 localhost acpid: 1 client rule loaded
Sep 17 22:15:16 localhost automount[2013]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
Sep 17 22:15:16 localhost logger: [uvp-monitor:StartService:122] Starting uvp-monitor service
Sep 17 22:15:16 localhost kernel: Procfs: xenbus user-space has been created.
Sep 17 22:15:16 localhost kernel: Procfs: xenbus version has been created.
Sep 17 22:15:16 localhost uvp-monitor: Start uvp monitor service.
Sep 17 22:15:16 localhost uvp-monitor: [Monitor-Upgrade]: failed to open UPGRADE_RESULT_FILE
Sep 17 22:15:18 localhost abrtd: Init complete, entering main loop
Sep 17 22:15:21 localhost uvp-monitor: getVifInfo_forbond vif name is lo
Sep 17 22:15:21 localhost uvp-monitor: getVifInfo_forbond vif name is eth0
Sep 17 22:15:21 localhost uvp-monitor: enter the reset_bond_file
Sep 17 22:15:21 localhost uvp-monitor: exit the reset_bond_file
Sep 17 22:15:21 localhost uvp-monitor: BoundInfo.count = 0
Sep 17 22:15:21 localhost uvp-monitor: gtNicInfo.info[0].mac = 28:6e:d4:88:c6:83
Sep 17 22:15:21 localhost uvp-monitor: gtNicInfo.info[0].ifname = eth0
Sep 17 22:15:21 localhost uvp-monitor: left_mac = 28:6e:d4,right_mac = 88:c6:83
Sep 17 22:15:21 localhost uvp-monitor: there is no new sriov net
Sep 17 22:15:23 localhost kernel: nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Sep 17 22:15:26 localhost kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Sep 17 22:15:33 localhost polkitd[3472]: started daemon version 0.96 using authority implementation `local' version `0.96'
Sep 17 22:15:34 localhost rtkit-daemon[3483]: Sucessfully made thread 3481 of process 3481 (/usr/bin/pulseaudio) owned by '42' high priority at nice level -11.
Sep 17 22:15:34 localhost pulseaudio[3481]: pid.c: Stale PID file, overwriting.
Sep 18 09:37:34 localhost auditd[1719]: Audit daemon rotating log files
Sep 18 10:02:14 localhost auditd[1719]: Audit daemon rotating log files
## Sep 18 10:26:50 localhost auditd[1719]: Audit daemon rotating log files
七厦
为什么安装 cuda_12.2.2_535.104.05_linux.run 之后,还是没有 nvcc 命令?
我的机器是 nvidia T4 GPU + ubuntu22.04
我先通过下面的命令安装驱动
sudo apt install -y nvidia-driver-535-server
等电脑重启好了,输入 "nvidia-smi" 查看显卡信息
╰─➤ nvidia-smi 130 ↵
Mon Sep 18 14:30:16 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Tesla T4 Off | 00000000:AF:00.0 Off | 0 |
| N/A 47C P0 27W / 70W | 2MiB / 15360MiB | 6% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
然后在 "https://developer.nvidia.com/cuda-downloads?target_os=Linux&t..." (https://link.segmentfault.com/?enc=3lX4HpTDwbVmYUepMwiEig%3D%3D.hVEvpxzxrZ5nbln27HtjYX%2FZgdAL9yh2fVEKf%2BzBsut2FoxAl2GIprcrELn%2BXB3k4tuTTUNgH4yajNzLt5aX7MPvOenGOadnQHI0WBRAFLmmG6vebB5O0RH%2BJQ6JGCmbZ8nOl2AYWSzYeYL1qUJqUZfS29AFy55ZR5t1WOE1DY7jLNViJlaGZUKzxbx8L4omQCX1vFuTS5EcMlgK8i5cwQ%3D%3D)
下面 CUDA Toolkit 12.2
"图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241227/df6ec5e1bab5f00a3335f3e1a32d40fb.png)
╭─pon@T4GPU ~/Downloads
╰─➤ sudo sh cuda_12.2.2_535.104.05_linux.run
[sudo] password for pon:
安装之后,还是没有 nvcc
╭─pon@T4GPU ~/Downloads
╰─➤ nvcc --version 127 ↵
zsh: command not found: nvcc
╭─pon@T4GPU ~/Downloads
╰─➤ cd / 127 ↵
╭─pon@T4GPU /
╰─➤ fd -a -u nvcc
/usr/share/cmake-3.22/Modules/FindCUDA/run_nvcc.cmake
我的期望是,安装这个 CUDA Toolkit 之后,就有 nvcc 命令
七厦
js中带有大写的数字的对象如何排序?
如果您希望按照大写数字来排序数组中的对象,您可以编写一个自定义的比较函数,该函数将对象中的大写数字提取出来并将其转换为对应的阿拉伯数字,然后进行比较。以下是一个示例:
// 定义一个函数,将大写数字转换为阿拉伯数字
function convertChineseNumberToArabic(chineseNumber) {
var chineseNumberMap = {
'一': 1,
'二': 2,
'三': 3,
// 添加更多大写数字映射
};
return chineseNumberMap[chineseNumber];
}
// 定义一个自定义比较函数
function customSort(a, b) {
// 提取对象中的大写数字并转换为阿拉伯数字
var numA = convertChineseNumberToArabic(a.km.charAt(2));
var numB = convertChineseNumberToArabic(b.km.charAt(2));
// 比较转换后的数字
return numA - numB;
}
// 您的对象数组
var arr = [
{ km: '混合一组', rc: 10 },
{ km: '混合二组', rc: 11 },
{ km: '混合三组', rc: 10 },
{ km: '混合二组', rc: 10 },
{ km: '混合三组', rc: 10 },
{ km: '混合四组', rc: 10 },
{ km: '混合四组', rc: 10 }
];
// 使用自定义比较函数进行排序
arr.sort(customSort);
// 输出排序后的数组
console.log(arr);
这个示例中,我们首先定义了一个函数"convertChineseNumberToArabic",用于将大写数字转换为阿拉伯数字的映射。然后,我们定义了一个自定义的比较函数"customSort",该函数提取对象中的大写数字,并使用映射后的数字进行比较。最后,我们使用"Array.sort()"方法对数组进行排序,输出排序后的数组。
七厦
如何禁用图例的默认交互行为?
这种一般都有配置文档
ECharts:
option = {
legend: {
selectedMode: false
},
...
};
Chart.js:
options: {
plugins: {
legend: {
onClick: function (event, legendItem) {}
}
},
...
}
七厦
泛型数组 @SafeVarargs 怎么使用?
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
String[] arr = asArray("one", "two", "three");
System.out.println(Arrays.toString(arr));
String[] firstTwo = pickTwo("one", "two", "three");
System.out.println(Arrays.toString(firstTwo));
}
static K[] pickTwo(K k1, K k2, K k3) {
return asArray(k1, k2);
}
@SafeVarargs
static T[] asArray(T... objs) {
return objs;
}
}
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241211/2d8d3915f41afe442801e15847b9c4ed.png)
调"pickTwo"报错:"class [Ljava.lang.Object; cannot be cast to class [Ljava.lang.String;"
"@SafeVarargs" 怎么没效果呢?不是这样用的吗?
七厦
有大佬知道这种堆叠柱状图,有间距的怎么实现不?
"https://echarts.apache.org/examples/zh/editor.html?c=bar-stac..." (https://link.segmentfault.com/?enc=nGkRxF%2Fk7Gs2sqCAi13t8g%3D%3D.bbVaFB36uCJ6KK2cROKPrKa%2BoAxh05LnadL%2FbqoDZf9NmCnyaWEuZ9X5cOFpf2alm1vvqPufw471GgqNCJ3%2Fer39%2FaR0JX0FpBxR7kUlfqNH38FDj6Gu5EjhbeUrMDOxNPWe1MkbuOEuszlV0ESiwrk31azot1rsh4TiMlKOnbVXznWmE9KPKKFVPvjqlWJ2%2Bwq%2FbXkTvhGoTpj4p%2BqpRyUM%2FFLVMFr28tPDRQHSM0F4S9wqTbbVPgTL1zpqho4TwzEagkNDkjDWaDgTXLoyWDeEVbqSVlAbLKoccNdHfoE%2FHkJ6CqbA25PgMnYuDcozSNXPBGV0b6btZfKP3Qhcs32zXqYE5G4vqXW5jD7n2nZ8NnoyS7zJhx%2Bpa%2Fdynq6axbGxhuecODTUdwAOG5uIutl2Eom2vBsNdscRI3RjRlF5cJBUg7NRokvLlYarL06l1sqky5vydsvk3TK%2Bzo9W4B87qE1NX1E5v%2B3GirtbtP7ZWt8NEkKTJaU4NqJNH1bcpcVFBhKJWohn8hZNBvDo%2BXwfbFjeQDUdJHXPJuCS5c4B652qBlYhDWfXV%2BRsYaf%2FmUfe3Q%2Bb2hxYSc3VhQ248rqWJX6PXdT3OGV%2B%2BUJ5%2Bjo1ggke6ZnVA2aT2C83fhPaj1Prm%2BQe99%2F8IbfE%2FdASppVlzdLFcSFgoScqjJriSyMW2%2F9bVPdI8xnLMG5ZY0oaY0ZYB2uYJnz8n0uhjJiqohCq74PvDSk224GG0YreeXmiJDyxr2DuoBjyyki7DGj3jVlFBB%2Bf5Bv1PflvKceWSumRBcxInVPKUjpHOuYjAxjSIzcS43PmPr3W3Jf8EwQyZau72AyOplQSLJLzsX4%2BaX%2FXjfPiBPLZWQRUgdeXTrjkoDB7c%2Bv%2FmNg5h9gBYh06i5ChK1%2BmPHBvkSmN2qMALel74cwgebwJKy9%2FjSr95H%2BtsgjTeml86h3tklKtpOe35Pv0jqiKs3cXuHyk4pDH2G3EY%2BiDcKAMAn7fM8zTHLZMDOGD%2BvPKxf9NryCjg7PRrTIkFHBc4M4tHG1Sb2tz3C%2BznNj6VyWeJVcv442DjXIXP%2BjavqbIUx%2BRUKQ01HJ9PAL3hXPzKTcJdWzcbV%2Ft4JnsdCUiZGfSfYWWP33cRiZu8rRbmd3IiklREBQ73wGY)
七厦
java 怎么在控制台把换行符打印出来?
public static void main(String[] args) {
String b = String.format("The data download task succeed. %nName:%s ", "1");
printWithEscapeSequences(b);
String a = "The data download task succeed. \r\n" +
"Name:1 ";
printWithEscapeSequences(a);
System.out.println(a.equals(b));
}
public static void printWithEscapeSequences(String str) {
String replaced = str.replace("\r", "\\r").replace("\n", "\\n");
System.out.println(replaced);
}
七厦
android 单选框如何动态渲染?
RadioGroup radioGroup = findViewById(R.id.radioGroup);
for (String option : optionsFromServer) {
RadioButton radioButton = new RadioButton(this);
radioButton.setText(option);
radioButton.setId(View.generateViewId());
radioGroup.addView(radioButton);
}
七厦
请问数字人+背景图片+音频生成一段视频是如何实现的?
网站:"https://www.kreadoai.com/ai/create" (https://link.segmentfault.com/?enc=lIILwBY32Nk%2BZfroFmd07g%3D%3D.fjg%2BdZhn4GNnQ8TBHMa5ix9PZxchm%2FQe1jmwI482x9qSrwub1MY7OpL4T5zdTqnt)
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241126/514ee313a6c8e855400f212262ad9dac.png)
七厦
js 一个promise数组且该数组会随时添加新promise要怎么样一个一个同步执行?
原生不支持,自己控制 promise 就行了。
先写期待的用法:
// 主进程
const myPromiseAll = new MyPromiseAll([...启动时的异步操作]);
await myPromiseAll.promise;
// 继续其它操作
// 事件函数
function onClick() {
myPromiseAll.add(新异步操作);
}
然后简单实现一下 "MyPromiseAll" 这个类:
class myPromiseAll(
promise;
#tasks = 0;
#count = 0;
#resolve;
#reject;
constructor(tasks) {
for (const task of tasks) {
this.add(task);
}
this.promise = new Promise((resolve, reject) => {
this.#resolve = resolve;
this.#reject = reject;
});
}
add(task) {
task.then(() => {
this.#count++;
if (this.#count >= this.#tasks) {
this.#resolve();
}
}).catch(err => {
// this.#reject();
});
this.#tasks++;
}
}
没测,你自己根据需求改改吧。
七厦
gateway-worker向uid发送消息前,如何判断uid是否已离线?
金额为什么需要放在客户端,为什么不能直接记录在服务端?
七厦
uniapp上传图片Provisional headers are shown的问题?
我用的uniapp中的uview想弄一个上传图片的功能
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/8b8a0c2b4b260508c7ec0b1597a5d90f.png)
前端上传图片的代码:
uploadFilePromise(url) {
return new Promise((resolve, reject) => {
let a = uni.uploadFile({
url: 'http://localhost:8000/api/Ajax/uploadx', // 仅为示例,非真实的接口地址
filePath: url,
method:'post',
header:{
'Content-Type':'multipart/form-data'
},
name: 'file',
formData: {
user: 'test'
},
success: (res) => {
resolve(res.data.data)
},
fail:(res)=>{
reject(res)
}
});
})
},
后端用的buildadmin:
public function uploadx()
{
$file = $this->request->file('file');
$userId= $this->request->post('user_id');
try {
$upload = new Upload($file);
$attachment = $upload->upload(null, 0, intval($userId));
unset($attachment['create_time'], $attachment['quote']);
} catch (Throwable $e) {
$this->error($e->getMessage());
}
$this->success(__('File uploaded successfully'), [
'file' => $attachment ?? []
]);
}
最后提示:"Provisional headers are shown"没有任何返回信息,但这接口在apifox里测试是没有问题的。
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/ef20f56c8355d9dcf9506f8befb39b99.png)
其中线索:上传时有这两个请求,有下面的提示。
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/7f4e77fc28a34bc2151b893fdbca3c68.png)
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/6746f8be48afb42af4062e7fa02a14a7.png)
七厦
React + Antd v5 更新状态后元素不变的问题?
"useState" 之类的**"hooks" 只能在自定义 "hook" 或者函数组件内使用**,不能在顶层作用域使用。不过神奇的是这样写居然能编译,我在
TS + React 环境下试了试,直接过不了 lint 检测。
并且 React 没有响应式属性的概念,因此无法在两个独立的组件之间共享 "state" ,要实现类似的功能,可以使用 "sustand"。
安装
npm install zustand
使用:
import { create } from "zustand";
const useStore = create((set) => ({
editLock: false,
setEditLock: (value) => set(() => ({ editLock:value })),
}));
const MenuAction = () => {
const { editLock, setEditLock } = useStore((state) => state);
return (
setEditLock(true)} />
)
}
const formatMenu = (data: any) => data.map((item: any) => ({
key: item.id,
children: [],
label: () => {
const { editLock } = useStore((state) => state);
return !editLock? : null
},
}))
«这里的 label 要作为组件传递和使用,而不是作为 "JSX.Element"。»
七厦
如何用vue3开发一个静态html,最终生成渲染后的,如图所示,如何解决?
一般编译后是这样的"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241115/86673b0f041f70620878fc54cc878150.png)
我把这样的静态页放到wordpress的模版中是这样的
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241115/95545c54837d249d75826b351cc7ec1f.png)
但我发现直接复制浏览器渲染后的html到相应位置居然也可以正常显示
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241115/3cc55dd6497d17d3b424db89fde058ff.png)
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241115/e1fb50cf0e2d345b0c9896418f03c14b.png)
vue有没有方法编译后生成类似最后一张图的效果?
七厦
这段正则为什么报语法错误,我在浏览器里运行可以但是小程序wxs里报错?
报错已经提示了"/"这个符号出的问题, 因为wsx不支持使用正则表达式字面量写法
wxs正则需要调方法:
var telEncrypt = function(str){
// wxs页面调用
var talReg = getRegExp('^[1][3,4,5,7,8,9][0-9]{9}$')
var length = str.length
if (talReg.test(str)) {
return str.substring(0, 3) + "****" + str.substring(length - 4, length)
} else {
return str
}
}
var a = getRegExp("x", "img");
console.log("x" === a.source);
console.log(true === a.global);
console.log(true === a.ignoreCase);
console.log(true === a.multiline);
官方文档
«"https://developers.weixin.qq.com/miniprogram/dev/reference/wx..." (https://link.segmentfault.com/?enc=5tUyqpLdT%2FGDaFIcb6%2F5Cw%3D%3D.zrsoAK%2BLEIG%2BNGlJogDaLG3eod01GFdKmP6M43yZfI6swMKu6k8yk6Nh5im3zDUGSm5fp4UeoZjDUeJkRxkzHefI9pptoZLpkx2gSyw889dQde1SDP9Mf5A5utSe9EjU)»
七厦
如何调整window对象addEventListener的执行顺序?
可以这样
window.addEventListener("click", () => console.log('默认优先级'));
window.addEventListener("click", () => console.log('最高优先级'), true); // 和下面的设置一样的功能
window.addEventListener("click", () => console.log('最高优先级'), { capture:true});
默认的事件是在冒泡阶段来处理,如果需要提前触发,可以设置为捕获阶段触发。
七厦
Three.js 3D模型点击素材偏移问题解决方法?
threejs的3D模型,点击素材,获取点击的素材对象,偏移问题怎么解决。总是不对
window.addEventListener("click", this.initClick, false);
....
initClick(event) {
const webgl = document.getElementById('webgl');
const webglData = webgl.getBoundingClientRect();
const px = event.offsetX;
const py = event.offsetY;
//屏幕坐标转标准设备坐标
const mouse = new THREE.Vector2();
const x = ((px - webglData.left) / webgl.offsetWidth) * 2 - 1;
const y = -((py - webglData.top) / webgl.offsetHeight) * 2 + 1;
const raycaster = new THREE.Raycaster();
//.setFromCamera()在点击位置生成raycaster的射线ray
raycaster.setFromCamera(new THREE.Vector2(x, y), this.camera);
// 射线交叉计算拾取模型
const intersects = raycaster.intersectObjects(this.material.list);
if (intersects.length > 0) {
// 处理点击事件
// intersects[0] 包含了第一个交点
const clickedObject = intersects[0].object;
//通过点击到该模型用名字匹配
if (clickedObject.name === clickedObject.name) {
console.log("点击了:", clickedObject.name);
}
}
},
百度
七厦
如何通过代码获取 pydantic 模型的定义的某个字段的 max_length 取值?
解决了
下面是 pydantic v1 中的用法
在 Pydantic 中,max_length 是存储在 field_info 对象的 max_length 属性中的,而不是 extra 字典中。
from pydantic import BaseModel, Field
class MetaCollection(BaseModel):
id: int | None = Field(default=None)
collection_name: str = Field(max_length=64)
description: str | None = Field(None, max_length=1024)
# ... 其他字段
# 获取 description 字段的 max_length
description_max_length = MetaCollection.__fields__["description"].field_info.max_length
print(description_max_length)
至于 pydantic v2
版本下如何获取,我去提问了:"https://github.com/pydantic/pydantic/discussions/8388" (https://link.segmentfault.com/?enc=LSzPygkZ7bvzKhksf2Jw0A%3D%3D.0ARZK9KyaMD9XKVw%2F7xNduXL4dPkiKUcRdHRfC3Rg8DBAC3VxLfi8%2FiUTSN%2Fg7M66EwAHG8TJoifttTBt9WflQ%3D%3D)
七厦
pinia提供的监听方法貌似只能全部监听,没办法监听某个值?
pinia提供的监听方法貌似只能全部监听,没办法监听某个值?
所以我在多个组件中使用监听时就不得不过滤一遍是吗?
这么设计有什么好处吗?比watch差远了不是吗?
还是说我理解错了?
官网案例:
const appStore = useAppStore();
appStore.$subscribe((mutation, state) => {
// import { MutationType } from 'pinia'
mutation.type // 'direct' | 'patch object' | 'patch function'
// 和 cartStore.$id 一样
mutation.storeId // 'cart'
// 只有 mutation.type === 'patch object'的情况下才可用
mutation.payload // 传递给 cartStore.$patch() 的补丁对象。
mutation.event
// 每当状态发生变化时,将整个 state 持久化到本地存储。
localStorage.setItem('cart', JSON.stringify(state))
})
网络的方案:
"https://blog.csdn.net/NiHao___/article/details/130126090" (https://link.segmentfault.com/?enc=yiwCGbWdrgfCY1lwU5gN5A%3D%3D.9UNOBVkT%2B%2FIAgkZh5l72s3xEKiMGayiGWgVSsVsQoSA%2FPeYP62C3MHGpPDXHbxHUXJbQLQ8ARVbp%2BgQRdoexoA%3D%3D)
// 监听pinia中整个state
store.$subscribe((mutation, state) => {
console.log(state);
})
// 监听pinia中整个state
watch(store.$state, (newValue, oldValue) => {
console.log(newValue,oldValue);
})
// 只监听pinia中某一个值的变化
watch(() => store.count, (newValue, oldValue) => {
console.log(newValue, oldValue);
})
«谁设计的新版提问系统?咱们来聊聊吧?»
七厦
导入新项目,执行脚本命令出错,该如何运行?
pull 下来的项目运行时报错,已经确保 node 与 npm 的版本是可以运行的,node_modules
重新安装过多次,检查过配置文件没有发现问题,并且 package.json 下的其他脚本命令都报一样的错
还有 node 没安装在默认目录,不知道是否有影响?
PS C:\Users\99479\Documents\crnocode-webapp> npm run dev
crnocode-webapp@1.0.0 dev C:\Users\99479\Documents\crnocode-webapp
cross-env NODE_ENV=development env_config=dev node --max_old_space_size=9000 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js
'cross-env' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! crnocode-webapp@1.0.0 dev: `cross-env NODE_ENV=development env_config=dev node --max_old_space_size=9000 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the crnocode-webapp@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\99479\AppData\Roaming\npm-cache\_logs\2023-12-20T03_15_19_514Z-debug.log
其他脚本命令报错如下
"报错截图" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241028/22f9a3201b47b613d77ec8c7616cb4c7.png)
"npm run dev" 报错日志如下
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'D:\\NodeJs\\node.exe',
1 verbose cli 'D:\\NodeJs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev'
1 verbose cli ]
2 info using npm@6.14.15
3 info using node@v14.18.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle crnocode-webapp@1.0.0~predev: crnocode-webapp@1.0.0
6 info lifecycle crnocode-webapp@1.0.0~dev: crnocode-webapp@1.0.0
7 verbose lifecycle crnocode-webapp@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle crnocode-webapp@1.0.0~dev: PATH: D:\nvm\v14.18.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\99479\Documents\crnocode-webapp\node_modules\.bin;D:\VMware\bin\;D:\Python312\Scripts\;D:\Python312\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;D:\Git\cmd;%NVM_HOME%;%NVM_SYMLINK%;C:\Users\99479\AppData\Local\Microsoft\WindowsApps;D:\Microsoft VS Code\bin;D:\nvm;D:\NodeJs
9 verbose lifecycle crnocode-webapp@1.0.0~dev: CWD: C:\Users\99479\Documents\crnocode-webapp
10 silly lifecycle crnocode-webapp@1.0.0~dev: Args: [
10 silly lifecycle '/d /s /c',
10 silly lifecycle 'cross-env NODE_ENV=development env_config=dev node --max_old_space_size=9000 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js'
10 silly lifecycle ]
11 silly lifecycle crnocode-webapp@1.0.0~dev: Returned: code: 1 signal: null
12 info lifecycle crnocode-webapp@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: crnocode-webapp@1.0.0 dev: `cross-env NODE_ENV=development env_config=dev node --max_old_space_size=9000 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (D:\nvm\v14.18.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:400:28)
13 verbose stack at ChildProcess. (D:\nvm\v14.18.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:400:28)
13 verbose stack at maybeClose (internal/child_process.js:1058:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
14 verbose pkgid crnocode-webapp@1.0.0
15 verbose cwd C:\Users\99479\Documents\crnocode-webapp
16 verbose Windows_NT 10.0.22621
17 verbose argv "D:\\NodeJs\\node.exe" "D:\\NodeJs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
18 verbose node v14.18.0
19 verbose npm v6.14.15
20 error code ELIFECYCLE
21 error errno 1
22 error crnocode-webapp@1.0.0 dev: `cross-env NODE_ENV=development env_config=dev node --max_old_space_size=9000 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js`
22 error Exit status 1
23 error Failed at the crnocode-webapp@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
已经确保 node 与 npm 的版本是可以运行的,node_modules 重新安装过多次,检查过配置文件没有发现问题,并且 package.json
下的其他脚本命令都报一样的错
如何才能运行起来呢
七厦
echarts中双x轴第二个label不显示如何解决?
series要设置两遍,第二个要加xAxisIndex属性.不知道有没有更好的方法来避免重复渲染
series: [
{
type: 'custom',
renderItem: renderItem,
itemStyle: {
opacity: 0.8
},
encode: {
x: [1, 2],
y: 0
},
data: data
},
{
type: 'custom',
renderItem: renderItem,
xAxisIndex: 1,
itemStyle: {
opacity: 0.8
},
encode: {
x: [1, 2],
y: 0
},
data: data
}
]
七厦
composer update执行出来w7corp/easywechat[6.12.0, ..., 6.13.1] require ext-sodium * -> ?
提示你缺少 "ext-sodium" 扩展,安装一下就可以了。
七厦
如何理解Integer.parseInt源码?
它在循环中计算的数值的负绝对值,就是 -|value| ,而不是 |value| 。也就是说,如果输入是 ""3"" ,那个求出的 result 是 -3
。最后通过 "negative ? result : -result;" 把正数的符号反过来。limit
是一个很小的负数。因为整形能表示的负数比正数多,有一个负数的绝对值在整数中是不能表示的。但是 -|value| 总是可以表示的。
于是,由于 mulmin = limit / radix,如果 result < multin ,那么 "result * radix"
(如果忽略溢出的话) < limit 。就是说 "result * radix" 会溢出。
于是,溢出判断原理上应该是 result - digit < limit 。但是实际程序中,如果溢出,那么 result - digit
就溢出了,这个判断得不到期望的结果。那么就换了另一个等价的计算过程中不会溢出的判断:result < limit + digit 。
七厦
使用video.js实现视频有声的自动播放,类似b站、抖音?
求助大佬!需求是类似B站抖音这类视频软件,进入页面视频自动播放,是有声音的,目前代码如下:
To view this video please enable JavaScript, and considerupgrading to a web browser that
supports HTML5 video
var options = {
autoplay: true,
aspectRatio: "16:9",
};
var playerVideo = videojs("video_id", options);
playerVideo.ready(function() {
var promise = playerVideo.play();
if (promise !== undefined) {
promise.then(function() {
console.log(111111111111);
});
}).catch(function(error) {
console.log(2222222222);
})
}
})
七厦
rust 在 vscode 编辑器上使用遇到的问题?
经过实测不存在这个问题,可能是你的 vscode 配置有问题。
"截屏2024-01-08 13.50.17.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/e26c6fbef07f91bd898edf5989837b10.png)
七厦
手动从 huggingface 下载模型之后,怎么把模型文件放到指定路径?
贴一个群友的回复(真实性未验证,为什么不验证?因为我换用百度的飞桨了)
«直接把THUDM/chatglm3-6b改成你本地模型文件夹的路径就行了直接指向最外层文件夹就行,比如这样»
七厦
如何在局域网中生成受信任的SSL证书?
局域网IP地址怎么生成受信任的SSL证书?比如启明星辰的设备ip地址证书就是受信任的。
七厦
nginx 的 location 配置为什么没有生效?
server {
listen 8001 default_server;
location /about/ {
root html;
index about.html;
}
}
只有这一个地方配置了 8001 端口。
打算是通过访问
"http://localhost:8001/about/" (https://link.segmentfault.com/?enc=DbUOg4rOCqvlVzG1wie%2FXg%3D%3D.EshwJlo2mdjxe4vmGHpK61W%2BODTmToaRufThLEFu%2B%2Fk%3D)
打开 html 目录下的 about.html 的,但是返回 403 错误。如果是访问
"http://localhost:8001/" (https://link.segmentfault.com/?enc=rMCe%2BzOYL%2FwrZDMf3WsoQQ%3D%3D.5IXeiD%2BDe9jL7eYBQUpX3Ecs5hHqBiqf2JQVllaasVk%3D)
会返回 html 目录下的 index.html 文件
如果注释了这里的配置,那么
"http://localhost:8001/" (https://link.segmentfault.com/?enc=jgC4wq9A%2FTQk9PwIBKlrtA%3D%3D.y9LQaQh4Io%2Bin97VIOVtKYiLOXR0Zy0qCqb0JddXEYs%3D)
是无法访问的。也就是配置是起效果的,但是不是预期的效果,可能是我对配置的理解错误或者有什么其他原因导致的?
七厦
css中水平选项怎么实现?
就是这种的水平多个选项,多出去鼠标滑动显示的怎么实现?
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241012/704e9d0dbc24ac277ebd7db32910e3e9.png)
七厦
用UNAIPP写APP怎么获取当前页面的标题?
uniapp 写APP怎么获取当前页面的标题
let pages = getCurrentPages();
var page = pages[pages.length - 1];
// #ifdef APP-PLUS
var currentWebview = page.$getAppWebview();
console.log('能获取标题吗', JSON.stringify(currentWebview.getStyle()))
p.pagename = 'no';
p.pageurl = currentWebview.__uniapp_route;
// #endif
// #ifdef H5
p.pagename = page.$holder.navigationBarTitleText;
p.pageurl = page.__page__.fullPath;
// #endif
https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241012/a77c5697490b573dd8f8e8cf991e46f8.png
浏览了HTML5+ 的api文档,基本都尝试了里面的API,就是没有获取到页面的标题。
"https://www.html5plus.org/doc/zh_cn/webview.html#plus.webview..." (https://link.segmentfault.com/?enc=uyYU3A6cuYxI%2Bh8XYEGTAQ%3D%3D.3cP98vAFbDsStaJ%2FyoN0gOrGkn0oa3tPyOIE6jPrkVcvHOn88VD2iCTOFVO8d5DS4QwFj1bm8N6qwPp3fiNw8rNJZLqL3ez08yGP9JkYgirAxwLbr84NhGd4%2F96x6Ah5)
七厦
chatgpt 是如何实现“继续生成”功能的?
chatgpt 是如何实现“继续生成”功能的
我用 chatgpt 翻译文档,当内容过多的时候,chatgpt
一次无法全部返回,会出现“继续生成”按钮,点击后会接着上一句继续生成。我使用其他的大语言模型就没有这种功能,想知道他们是怎么实现的?
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/ce19331819b3a03f4be77cbdd7111968.png)
七厦
uniapp如何通过“经纬度”调用“高德”、“腾讯”地图?
app:
打包成"app"时判断高德、腾讯是否安装。
"https://www.html5plus.org/doc/zh_cn/runtime.html#plus.runtime..." (https://link.segmentfault.com/?enc=gI%2FzKPOnAhq%2FPJk4S1qAlg%3D%3D.Y1cAyFoelGegwZEwxDR4spve1VIAwbH0nTWkut%2F18d8%2BpQ3eg7%2FIzs0AFGiZE2x%2BUseWd4F5KvpMWqy39hHXlkSsgBgfUZFz%2FXg8nIozD5i14MSL%2BE0Pamndqbhlc6eU)
h5:
"h5"的话,对"navigator.userAgent"进行判断。
七厦
Reac+vite t打包部署后报错: require is not defined?
React+Antd打包部署之后报错: ReferenceError: require is not defined
看错误信息应该是react-dom文件里用到了require,但是路由好像没问题,是点击按钮的时候报错了,整个页面不能看
错误信息截图:
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/aae14b636b0792f1122f62d8d254cbac.png)
vite.config.js代码:
import { defineConfig,splitVendorChunkPlugin } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { resolve } from "path"
import { theme } from 'antd';
import lessToJs from 'less-vars-to-js';
import { readFileSync } from 'fs'
import svgr from "vite-plugin-svgr";
const { defaultAlgorithm, defaultSeed } = theme;
const varLessPath = "./theme/var.less"
const mapToken = defaultAlgorithm(defaultSeed);
const varLessStr = readFileSync(varLessPath, 'utf-8')
const customVarLessJson = lessToJs(varLessStr, { resolveVariables: true, stripPrefix: true });
const prefixBase=process.env.ITLA_IMH_VIEW_ROUTERBASE;
//https://vitejs.dev/config/
export default defineConfig({
base: prefixBase,
build: {
assetsDir:'statics',
rollupOptions: {
input: {
// 配置所有页面路径,使得所有页面都会被打包
index: resolve(__dirname,'index.html')
},
output:{
dir:'build',
//file:'[name].html'
}
},
sourcemap:true
},
define: {
CUSTOMVARLESSDATA: `${JSON.stringify(customVarLessJson)}`
},
plugins: [
// ReactRouterGenerator({
// outputFile: resolve(".", "./src/router/auto.jsx"),
// isLazy: true,
// comKey: "components"
// }),
react(),
splitVendorChunkPlugin(),
svgr({include: "**/*.svg?react",})
],
resolve: {
alias: {
"@": resolve(".", "./src"),
"~": resolve(".", "./node_modules")
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', ".less",".jsonc"]
},
css: {
preprocessorOptions: {
less: {
modifyVars: { ...mapToken, ...customVarLessJson },
javascriptEnabled:true,
},
},
modules:{
localsConvention:"camelCase",
generateScopedName:'[name]_[local]_[hash:6]',
//globalModulePaths:['./theme/*.scss']
}
},
server: {
port: 3187,
open: false,
host: true,
proxy: {
'^/api/imh': {
// target: "http://localhost:8088",
//target: "http://10.14.0.26:8088",
//target: "http://10.14.0.147:8088",
//target: "http://10.14.0.116:8088",
//target: "http://192.168.120.11:8811",
target: "http://10.14.0.61:8812",
//target: "http://10.14.0.223:9999",
//target: "http://192.168.120.11:8812",
changeOrigin: true,
rewrite: (path) => {
return path.replace("/api/imh", "/imh")
}
},
},
},
envPrefix: "ITLA_IMH_VIEW_",
})
期望消除错误
七厦
为什么兄弟元素之间 display:inline-block 能防止 margin塌陷 ?
因为标准就是这么写的:
«"8.3.1 Collapsing
margins" (https://link.segmentfault.com/?enc=LoDRLhkXjKh3qL5uh%2BzayA%3D%3D.nLjxdIxgXr0oRiCrcm%2B1DHjsOHwQZNzyHf5cdsncMb%2FO4vF2MfF5UV0FH7PS3CofGuiYCt9FJhDJYtS3xjD2zA%3D%3D)* Margins between a floated box and any other box do not collapse (not
even between a float and its in-flow children).
* Margins of elements that establish new block formatting contexts (such
as floats and elements with 'overflow' other than 'visible') do not collapse
with their in-flow children.
* Margins of absolutely positioned boxes do not collapse (not even with
their in-flow children).
* Margins of inline-block boxes do not collapse (not even with their in-> flow children).
* ...»
七厦
如何在Vue3和Vite项目中动态添加路由?
你的思路是对的,重复添加的问题可以用"api"检测来避免。
写了个简单的示例,你看看
"https://stackblitz.com/edit/vitejs-vite-umhiqj?terminal=dev" (https://link.segmentfault.com/?enc=OsQIofYOTRxUWrTenoka6A%3D%3D.HUzFAYCpC5xIUGsg2pT2FOnPewr8AJ4e2We%2F2FTouKHLCn7Ex%2BMeWPWi6ekx9dUhsAVYacwbFWcjJH32Rd95NQ%3D%3D)
import { ref, onMounted } from 'vue';
import router from './router';
import Home from './components/Home.vue';
import User from './components/User.vue';
import Video from './components/Video.vue';
import Compute from './components/Compute.vue';
import Container from './components/Container.vue';
const fetchRoutes = () =>
new Promise((resolve) => {
const items = [
{
name: 'video',
path: '/video',
text: '云视频',
},
{
name: 'compute',
path: '/compute',
text: '云算力',
},
{
name: 'container',
path: '/container',
text: '容器服务',
},
];
setTimeout(() => {
resolve(items);
}, 1000);
});
const menu = ref([]);
const componentSchema = {
video: Video,
compute: Compute,
container: Container,
};
onMounted(async () => {
// 1 根据公司拉取路由数据
const items = await fetchRoutes();
// 2 保存菜单数据用于渲染菜单
menu.value = items;
// 3 用数据添加router
items.forEach(({ name, path }) => {
const component = componentSchema[name];
// 阻止重复添加
if (router.hasRoute(name)) {
return;
}
if (component) {
router.addRoute({ name, path, component });
}
});
// 新增的路由装载完后,调用一下replace,用于渲染新增的路由
router.replace();
});
const onClick = (path) => {
router.push(path);
};
Home
About
{{ item.name }}
ul {
padding: 0;
margin: 0;
}
.container {
padding: 100px;
}
七厦
CSS Flexbox 元素文字尾行跟随效果?
请给出具体代码,其实应该可以使用display: inline-block
七厦
ts怎么用type给非对象定义可选值呢?
如函数参数type,它的值只能为default、primary、danger、warning中的一个
七厦
前端代理映射配置?
背景:
vue3+vite项目中:前后端联调的时候,
代理转发设置成功,但是由于接口文件中有多个文件,一个个加代理配置比较麻烦,所以想着给接口增加前缀的方式去统一设置代码
比如接口文件中有如下两个接口,url分别如下
'/chekTicketData/list',
'/getManagerData/page',
统一增加前缀/sys
'/sys/chekTicketData/list',
'/sys/getManagerData/page',
在本地.env.development文件中统一配置设置转发
VITE_PROXY = '[
["/api/sys", "http://10.9.33.8:10049"]
]'
接口可以正常响应,但是这个/sys是自己自定义的,而且这个设置是在.env.development。请问下要在项目的测试环境和生产环境做映射吗?映射/sys对应的服务
七厦
处理登陆页面首次登陆白屏的问题,有知道的怎么处理的么?
vue项目可以单独让登录页面做SSR服务器渲染么 ,具体要怎么操作么?
没有思路
七厦
请问uniapp里, 纯靠前端生成的blob流, 如何下载?
把Blob对象转换成Base64编码字符串
let reader = new FileReader();
reader.readAsDataURL(blob);
reader.onload = function() {
let base64data = reader.result;
};
判断是小程序环境,使用"wx.fileSystemManager.writeFileSync" (https://link.segmentfault.com/?enc=SktlXbXCXbFkZl1eMs%2B19Q%3D%3D.y3X920UQg3K6Mwjx%2BcS0Wr1emdPD4IQiiUAZ4tTgqA%2FjAS6WoyHXdl7hCeCxuWTDqlK2FHVkxoD8B2XI8K6A7TS3OcGrv86DLo2FKjtrSuCZgA5zj6Kb%2FBpEpxruOX3S)把Base64编码数据写入临时文件中,然后使用"wx.downloadFile" (https://link.segmentfault.com/?enc=moy4LCvyqN9XwIGqN%2BQzdg%3D%3D.nzze7lMFjZa02gcJ8po1HO75IOkvvmn1jcYhd%2BOo37bQKBDPHQEDrNNeq%2BbxcgU3G31z3Qs7BNiUeH6lH0l8eCr2NqyflGR8vXUxQCBlpMi9tL18mVtxHU4rh%2FpXvpw4)下载保存的本地临时文件,下载成功后使用"wx.openDocument" (https://link.segmentfault.com/?enc=WlaAnWGfOdYUwsrhOP2Rog%3D%3D.Ghdl0HclIURyRFNjgag6NRo7VRQaJb5CRQCmL0yDyClrjRPz3n0Qa0TP5W6l5o5Q%2FeSzg99JH9hqjwUdDloIq25kUgF3335x5W6G2EdzWKo%3D)打开文件
wx.fileSystemManager.writeFileSync(wx.env.USER_DATA_PATH + '/tempFile.txt', base64data.split(',')[1], 'base64');
wx.downloadFile({
url: wx.env.USER_DATA_PATH + '/tempFile.txt',
success: function(res) {
if (res.statusCode === 200) {
wx.openDocument({
filePath: res.tempFilePath,
success: function(res) {
console.log('打开文档成功');
}
});
}
}
});
七厦
swiftUI 中如何将 view 添加到 navigationbar 中?
试一试对齐方式 alignment
七厦
微信公众号能获取用户的 unionid 吗?
微信公众号能获取用户的 "unionid" 吗?
看了下文档 好像说 "只有在用户将公众号绑定到微信开放平台账号后,才会出现该字段。"
就是普通用户的 "unionid" 无法获取吗? 我实测了一下好像也没有这个字段
看过官方文档了
七厦
ECM modules不能完全替代CommonJS modules吗?
ECM modules不能完全替代CommonJS modules吗?
我看很多项目中既有"ESM modules",也有"CommonJS modules",为什么不能统一使用"ECM modules"呢?
* 参与项目的人的个人喜好不同?用什么都是可以的,最终可能用到的代码都会被打包整合在一起。
* 兼容以前用CommonJS module写的内容?但是
* "import"也是可以导入"CommonJS module"的,相反,"require"是不能导入"ESM module"
* "import()"表达式也是可以支持动态导入的。
* "ECM modules"还支持"CommonJS modules"中所不具备的"静态分析"、"异步加载"。
七厦
HarmonyOS Next升级到Preview2后Contacts Kit中枚举值和之前不一样是怎么回事?
HarmonyOS Next升级到Preview2后Contacts Kit中枚举值和之前不一样是怎么回事?
自定义邮箱类型,CUSTOM_LABEL的值,从之前的10000改为0,这是怎么回事?
七厦
Pinia 实例清理方法?
pinia实例 如何清理,持久层设置的是"localstorage","localstorage.removeItem" 清空key之后
pinia实例里面还是有,如何清理pinia实例里面的
export const useOpenXLibrary = defineStore({
id: 'useOpenXLibrary', //
state: () => {
return {
OpenXLibrary: {}
};
},
getters: {
getOpenXLibrary(): Object {
return this.OpenXLibrary;
}
},
actions: {
updateOpenXLibrary(OpenXLibrary: Object) {
this.OpenXLibrary = OpenXLibrary;
},
clearOpenXLibraryStore() {
this.OpenXLibrary = {};
}
},
persist: true
});
// 这是清空localStorage
function clearLocalStorage() {
const keys = ['useToken', 'useOpenXIdAdd', 'useOpenXLibrary'];
for (let i = localStorage.length - 1; i >= 0; i--) {
const key = localStorage.key(i) as string;
if (!keys.includes(key)) {
localStorage.removeItem(key);
}
}
ElMessage.success('????');
router.push({ path: '/' });
}
我是意思想所有的store里面 里面的数据全部clear 如 state里的 OpenXLibrary: {}、ids: []
七厦
vue中如何渲染一个使用vue写法的html文件?
我有一个使用vue方式编写的html文件,我想要在一个vue文件中引入并渲染该文件,直接读取该文件并使用v-html赋值后并不能正常生成
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241001/3cc014b4ddc02cae76f58047d1f4f6c7.png)
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241001/d0ecec99ada4fe63af164ee2b47ac358.png)
import { onMounted, ref } from 'vue'
const innerHTML = ref()
onMounted(() => {
getVersion()
})
function getVersion() {
var xhr = new XMLHttpRequest();
xhr.open("get", 'doc.html', true);
xhr.onreadystatechange = function (data) {
if (xhr.readyState == 4 && xhr.status === 200) {
innerHTML.value = xhr.responseText;
}
}
xhr.send()
}
请问我该怎么处理?