踩坑 mybatis-plus Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table

1 2 3 4 5 6 7 8 org.springframework.jdbc.BadSqlGrammarException: ###Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExceptin: Table ‘xxx.xxx’ doesn’t exist ###The error may exist in com/example/mapper/UserMapper.java (best guess) ###The error may involve defaultParameterMap ###The error occurred while setting parameters ###SQL: SELECT id,name,age,email FROM user ###Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘xxx.xxxr’ doesn’t exist ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘xxx.xxx’ doesn’t exist 错误原因:原因实体类pojo名字和表名不一致!!mybatis-plus默认规则是实体类和表名以驼峰命名法映射,要求是需要符合这个规则才能执行成功。 所以需要在实体类上加@TableName(“表名”) 由于我使用的是官方的代码生成器,所以有这么一句 1 strategy.setTablePrefix(pc.getModuleName() + "_"); 在输入模块名的时候我输入的是 aaa.bbb.ccc这种格式,刚好和表名对应上,所以这里默认把aaa.bbb去掉了,刚好默认实体又没@TableName注解,导致找不到表名。 我在代码生成器中加入 ...

2020年9月30日 · 1 分钟 · 浅忆

git(github)删除误上传的敏感文件

FILEPATH 变量代表的是路径。 1 2 3 4 5 6 7 8 git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch FILEPATH' --prune-empty --tag-name-filter cat -- --all # 例子 git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch src/main/resources/application-dev.properties' --prune-empty --tag-name-filter cat -- --all git push origin master --force rm -rf .git/refs/original/ git reflog expire --expire=now --all git gc --prune=now git gc --aggressive --prune=now

2020年9月8日 · 1 分钟 · 浅忆

proxmox恢复vm(vma)到指定的存储

1 qmrestore ubuntu14.04.5-bak.vma.lzo 101 -storage local

2020年9月4日 · 1 分钟 · 浅忆

Office365邮局开启DKIM

注册完E5后可以绑定自己的域名作为邮局,但是只有默认的onmicrosoft.com域开启了DKIM,自己接入的域名并没有开启,所以这里按照官方文档开启DKIM以减少进垃圾邮箱的可能性。 2021-12-04 更新 有读者反馈 https://security.microsoft.com/dkimv2 网址已经可以直接开启DKIM了,我去试了下,点击开启会自动校验 CNAME 记录,自己复制值在dns那添加就可以了(如果不知道怎么添加,可以看第三步)。 以下文章仅作记录,直接通过上面的方法开启就可以了。 1、开启DKIM 首先进入到office365管理面板,点击左侧菜单栏的「全部显示」,然后点击「Exchange」,进入Exchange控制台。 这里会列出已接入域名,点击域名右侧会显示DKIM的状态,点击启用就好。 如果第一次接入会显示「没有为此域名保存DKIM签名 」,根据官方文档,可以通过Powershell方式来开启。 2、连接到 Exchange Online 这里的操作以管理员权限打开,需要注意的是,所有命令必须在同一个PowerShell下操作 。 下面命令中 为自己的域名 。 在本地计算机上,打开 Windows PowerShell 并运行以下命令。 1 $UserCredential = Get-Credential 在“Windows PowerShell 凭据请求”对话框中,键入工作或学校帐户用户名和密码,再单击“确定”。 运行以下命令连接到Exchange Online: 1 $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection 注意: 对于 Office 365 世纪互联运营,请使用 ConnectionUri 值:https://partner.outlook.cn/PowerShell 对于 Office 365 Germany,请使用 ConnectionUri 值:https://outlook.office.de/powershell-liveid/ 对于 Microsoft 365 GCC High,请使用 ConnectionUri 值:https://outlook.office365.us/powershell-liveid/ 对于 Microsoft 365 DoD,请使用 ConnectionUri 值:https://webmail.apps.mil/powershell-liveid 运行以下命令设置会话: 1 Import-PSSession $Session -DisableNameChecking ...

2020年8月16日 · 2 分钟 · 浅忆

nginx反代cloudflare出现502错误问题

如果是自己的域名在反代配置加上这2句就可以了。 1 2 proxy_ssl_name $host; proxy_ssl_server_name on; 我自己的配置是 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 location / { proxy_pass https://域名; #Proxy Settings proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_ssl_name $host; proxy_ssl_server_name on; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; # proxy_max_temp_file_size 0; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 64k; proxy_buffers 32 32k; proxy_busy_buffers_size 128k; proxy_temp_file_write_size 64k; }

2020年8月16日 · 1 分钟 · 浅忆

esxi6.7 与 pve6 unixbench跑分对比

新建的虚拟机下同配置跑的分,均开启了host。配置为 8C8G50G。 ESXI6.7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.3 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA January 13, 2011 johantheghost at yahoo period com Wide character in print at ./Run line 1511. Wide character in printf at ./Run line 1542. 1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 1 x Execl Throughput 1 2 3 1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 1 x File Copy 256 bufsize 500 maxblocks 1 2 3 1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 1 x Process Creation 1 2 3 1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 1 x Shell Scripts (1 concurrent) 1 2 3 1 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1484. 8 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 8 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 8 x Execl Throughput 1 2 3 8 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 8 x File Copy 256 bufsize 500 maxblocks 1 2 3 8 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 8 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 8 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 8 x Process Creation 1 2 3 8 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 8 x Shell Scripts (1 concurrent) 1 2 3 8 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1484. ======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: debian: GNU/Linux OS: GNU/Linux -- 4.19.0-5-amd64 -- #1 SMP Debian 4.19.37-5 (2019-06-19) Machine: x86_64 (unknown) Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968") CPU 0: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 1: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 2: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 3: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 4: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 5: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 6: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 7: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization 01:35:22 up 1:33, 2 users, load average: 3.18, 3.77, 2.12; runlevel ------------------------------------------------------------------------ Benchmark Run: 一 8月 10 2020 01:35:22 - 02:02:31 8 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 37275700.7 lps (10.0 s, 7 samples) Double-Precision Whetstone 5654.1 MWIPS (6.2 s, 7 samples) Execl Throughput 4156.3 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 697111.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 187842.5 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 2194571.2 KBps (30.0 s, 2 samples) Pipe Throughput 985672.0 lps (10.0 s, 7 samples) Pipe-based Context Switching 46277.6 lps (10.0 s, 7 samples) Process Creation 2855.4 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 4167.8 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1955.7 lpm (60.0 s, 2 samples) System Call Overhead 688554.4 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 37275700.7 3194.1 Double-Precision Whetstone 55.0 5654.1 1028.0 Execl Throughput 43.0 4156.3 966.6 File Copy 1024 bufsize 2000 maxblocks 3960.0 697111.7 1760.4 File Copy 256 bufsize 500 maxblocks 1655.0 187842.5 1135.0 File Copy 4096 bufsize 8000 maxblocks 5800.0 2194571.2 3783.7 Pipe Throughput 12440.0 985672.0 792.3 Pipe-based Context Switching 4000.0 46277.6 115.7 Process Creation 126.0 2855.4 226.6 Shell Scripts (1 concurrent) 42.4 4167.8 983.0 Shell Scripts (8 concurrent) 6.0 1955.7 3259.4 System Call Overhead 15000.0 688554.4 459.0 ======== System Benchmarks Index Score 974.5 ------------------------------------------------------------------------ Benchmark Run: 一 8月 10 2020 02:02:31 - 02:29:45 8 CPUs in system; running 8 parallel copies of tests Dhrystone 2 using register variables 272463301.5 lps (10.0 s, 7 samples) Double-Precision Whetstone 41703.8 MWIPS (6.5 s, 7 samples) Execl Throughput 23978.3 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 979782.2 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 263271.7 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 3177481.5 KBps (30.0 s, 2 samples) Pipe Throughput 7084002.7 lps (10.0 s, 7 samples) Pipe-based Context Switching 1632492.5 lps (10.0 s, 7 samples) Process Creation 43134.3 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 44920.5 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 6769.3 lpm (60.0 s, 2 samples) System Call Overhead 4393974.7 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 272463301.5 23347.3 Double-Precision Whetstone 55.0 41703.8 7582.5 Execl Throughput 43.0 23978.3 5576.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 979782.2 2474.2 File Copy 256 bufsize 500 maxblocks 1655.0 263271.7 1590.8 File Copy 4096 bufsize 8000 maxblocks 5800.0 3177481.5 5478.4 Pipe Throughput 12440.0 7084002.7 5694.5 Pipe-based Context Switching 4000.0 1632492.5 4081.2 Process Creation 126.0 43134.3 3423.4 Shell Scripts (1 concurrent) 42.4 44920.5 10594.5 Shell Scripts (8 concurrent) 6.0 6769.3 11282.1 System Call Overhead 15000.0 4393974.7 2929.3 ======== System Benchmarks Index Score 5383.8 ======= Script description and score comparison completed! ======= PVE6.2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 make[1]: Leaving directory '/opt/unixbench/UnixBench' locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory sh: 1: 3dinfo: not found sh: 1: runlevel: not found # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.3 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA January 13, 2011 johantheghost at yahoo period com Wide character in print at ./Run line 1511. Wide character in printf at ./Run line 1542. 1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 1 x Execl Throughput 1 2 3 1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 1 x File Copy 256 bufsize 500 maxblocks 1 2 3 1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 1 x Process Creation 1 2 3 1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 1 x Shell Scripts (1 concurrent) 1 2 3 1 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1484. 8 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10 8 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10 8 x Execl Throughput 1 2 3 8 x File Copy 1024 bufsize 2000 maxblocks 1 2 3 8 x File Copy 256 bufsize 500 maxblocks 1 2 3 8 x File Copy 4096 bufsize 8000 maxblocks 1 2 3 8 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10 8 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10 8 x Process Creation 1 2 3 8 x System Call Overhead 1 2 3 4 5 6 7 8 9 10 8 x Shell Scripts (1 concurrent) 1 2 3 8 x Shell Scripts (8 concurrent) 1 2 3 Wide character in printf at ./Run line 1484. ======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: debian: GNU/Linux OS: GNU/Linux -- 4.19.0-5-amd64 -- #1 SMP Debian 4.19.37-5 (2019-06-19) Machine: x86_64 (unknown) Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968") CPU 0: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 1: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 2: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 3: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 4: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 5: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 6: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET CPU 7: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET 11:14:36 up 3 min, 2 users, load average: 0.57, 0.19, 0.06; runlevel ------------------------------------------------------------------------ Benchmark Run: 二 8月 11 2020 11:14:36 - 11:42:00 8 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 38457773.2 lps (10.0 s, 7 samples) Double-Precision Whetstone 5894.1 MWIPS (7.7 s, 7 samples) Execl Throughput 3653.5 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 594688.8 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 155116.1 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 2093652.8 KBps (30.0 s, 2 samples) Pipe Throughput 840578.6 lps (10.0 s, 7 samples) Pipe-based Context Switching 69113.8 lps (10.0 s, 7 samples) Process Creation 2092.7 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 3592.3 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1596.2 lpm (60.0 s, 2 samples) System Call Overhead 661908.8 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 38457773.2 3295.4 Double-Precision Whetstone 55.0 5894.1 1071.7 Execl Throughput 43.0 3653.5 849.6 File Copy 1024 bufsize 2000 maxblocks 3960.0 594688.8 1501.7 File Copy 256 bufsize 500 maxblocks 1655.0 155116.1 937.3 File Copy 4096 bufsize 8000 maxblocks 5800.0 2093652.8 3609.7 Pipe Throughput 12440.0 840578.6 675.7 Pipe-based Context Switching 4000.0 69113.8 172.8 Process Creation 126.0 2092.7 166.1 Shell Scripts (1 concurrent) 42.4 3592.3 847.2 Shell Scripts (8 concurrent) 6.0 1596.2 2660.3 System Call Overhead 15000.0 661908.8 441.3 ======== System Benchmarks Index Score 903.0 ------------------------------------------------------------------------ Benchmark Run: 二 8月 11 2020 11:42:00 - 12:09:16 8 CPUs in system; running 8 parallel copies of tests Dhrystone 2 using register variables 279669766.0 lps (10.0 s, 7 samples) Double-Precision Whetstone 41943.0 MWIPS (6.3 s, 7 samples) Execl Throughput 18412.5 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 488871.1 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 126347.3 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1596495.9 KBps (30.0 s, 2 samples) Pipe Throughput 6013413.0 lps (10.0 s, 7 samples) Pipe-based Context Switching 967469.4 lps (10.0 s, 7 samples) Process Creation 25260.2 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 37695.0 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 5645.7 lpm (60.0 s, 2 samples) System Call Overhead 3703628.1 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 279669766.0 23964.8 Double-Precision Whetstone 55.0 41943.0 7626.0 Execl Throughput 43.0 18412.5 4282.0 File Copy 1024 bufsize 2000 maxblocks 3960.0 488871.1 1234.5 File Copy 256 bufsize 500 maxblocks 1655.0 126347.3 763.4 File Copy 4096 bufsize 8000 maxblocks 5800.0 1596495.9 2752.6 Pipe Throughput 12440.0 6013413.0 4833.9 Pipe-based Context Switching 4000.0 967469.4 2418.7 Process Creation 126.0 25260.2 2004.8 Shell Scripts (1 concurrent) 42.4 37695.0 8890.3 Shell Scripts (8 concurrent) 6.0 5645.7 9409.4 System Call Overhead 15000.0 3703628.1 2469.1 ======== System Benchmarks Index Score 3825.7 ======= Script description and score comparison completed! ======= ...

2020年8月9日 · 21 分钟 · 浅忆

记录IDRAC断电恢复上一次配置(密码)的问题

https://blog.curlc.com/archives/595.html 这台机器买来后idrac有一个问题,只要断电,idrac的密码就会被恢复为上一次设置的密码.如果在bios重置密码也会被“永久”的设置成calvin这个默认密码。 所以特别蛋疼,每次断电开机完就得修改密码,在dell社区问过一次,答复居然是“一般服务器是不会断电”,真的是无语了…… 昨天由于折腾ssl把idrac搞挂了,这次断电也没有恢复,就进bios重置了idrac(恢复出厂设置)后居然就好了,断电密码被“重置”这个问题也就没了,但是我记得有一次我也重置过,但是没用,总之,这是一个奇葩的问题~

2020年8月8日 · 1 分钟 · 浅忆

office e5 常见问题

查看剩余天数(使用申请的e5账户登录) https://developer.microsoft.com/zh-cn/microsoft-365/dev-program https://developer.microsoft.com/zh-cn/microsoft-365/profile Office管理界面组织管理号登录 www.office.com/?auth=2 admin管理中心 https://admin.microsoft.com Microsoft 365 Onedrive容量 1T 修改 为5T,老帐号不删除重建 https://blog.curlc.com/archives/66.html 你没有访问此服务的权限。请联系你的IT部门以获取帮助。(错误代码:0x8004e4d1) 这种一般是你没有给这个账号许可证。 自动续期时间 目前(2020-07-20)调用api情况下, 一般在最后30天以内就会进行续期3个月。 不注意点击了取消订阅 (来自读者的反馈)万一手残,还没订阅还没到期就点了取消订阅,显示已禁用,仪表板显示已到期,有这样情况的话,进入office管理界面网站,可以跟微软客服沟通下,他们会手动帮你重新订阅上,只不过, 仪表板还是会显示已到期(这个解决办法是,点击上面的三角形,看到“错过xxx”那个地方,要跟微软写个反馈,反馈你目前的开发进度,用纯英文写,提交之后,看微软审核,审核通过,仪表板就会重新显示剩余天数了) 如何创建子号 https://admin.microsoft.com/Adminportal/Home?source=applauncher#/users 以上信息来自于群成员于读者反馈,部分已知名单如下(为保护隐私,已隐藏部分关键字): Skyler 942****459 peakgymnast 隐藏 vivi fr**@163.com

2020年7月20日 · 1 分钟 · 浅忆

Docker快速搭建Firefox Send

1、安装Docker 此命令我在debian中运行没问题,其他系统自测~ 1 wget -qO- https://get.docker.com/ | sh 2、创建docker网络 请参考此文章 https://blog.curlc.com/archives/618.html 3、Docker安装Redis 其中的 –net 参数,就是刚刚建立的docker网络(内网) 1 docker run --name docker-redis-server --restart=always --net=my_network -d redis redis-server --appendonly yes 3、docker安装启动Firedox Send 1 docker run --net=my_network --restart=always -e 'REDIS_HOST=docker-redis-server' -e 'NODE_ENV=production' -p 1443:1443 -d mozilla/send:latest 4、Nginx反向代理 这一步网上有很多教程,就不重复的写了。 需要注意的是,必须启用https。 1 2 3 4 5 6 7 8 9 # 配置反向代理 location / { proxy_pass http://127.0.0.1:1443; proxy_set_header Connection "upgrade"; proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }

2020年6月9日 · 1 分钟 · 浅忆

Fiddler无法解密https请求解决方法

背景 The selected session is a HTTP CONNECT Tunnel. 所选的会话是 HTTP CONNECT 隧道。 该隧道使客户端能够通过 HTTP……. https抓包出现这个标识无法解密https会话,证书存储区中可能有一些旧的Fiddler证书,由于某些原因(比如升级版本,更换版本后重新生成证书),这些证书在重置期间未清除,所以需要手动进行清除旧证书。 解决方法 请确保未选中Fiddler的HTTPS选项中的“解密HTTPS通信”复选框,然后关闭Fiddler。 然后在Windows的任务栏搜索框中,键入“管理用户证书”,然后按Enter。当前用户的证书管理器将打开。 找到所有颁发者:DO_NOT_TRUST_FiddlerRoot并删除它们。请小心不要删除任何其他证书。 如果您具有管理权限,请在Windows的任务栏搜索框中键入“管理计算机证书”。本地计算机的证书管理器将打开。 找到所有颁发者:DO_NOT_TRUST_FiddlerRoot并删除它们。请小心不要删除任何其他证书。 打开Fiddler,然后选中“解密HTTPS流量”复选框。将会出现一些提示,要求信任新生成的CA证书。信任证书,然后重新启动Fiddler。 大概由3个地方需要进行删除,注意点别删到其他证书就好~ 参考文章: https://www.telerik.com/forums/system-security-cryptography-cryptographicexception#FayHvD9zcUGARfM-gi4pyA https://www.telerik.com/forums/https-decryption-does-not-work

2020年5月18日 · 1 分钟 · 浅忆