C# detect driver ssd/hdd 来自github的代码,略做了一丢丢修改。 using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.Compone ...
                            
                            
                         
                    
                        
                            
                            
                                1: 单个bond设备举例说明: 创建bond网卡(vim /etc/sysconfig/network-scripts/ifcfg-bond0): DEVICE=bond0 IPADDR=192.168.1.20 NETMASK=255.255.255.0 USERCTL=no BOOTPROTO ...
                            
                            
                                分类:
其他好文   时间:
2021-06-17 17:04:43   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    关机&&重启 shutdown ``` //立即关机 shutdown -h now //一分钟后关机 shutdowm -h 1 //立即重启 shutdown -r now ``` halt:直接使用,关机 reboot:重启系统 sync:把内存的数据同步到磁盘 不管是重启还是关机,首先运行s ...
                            
                            
                                分类:
系统相关   时间:
2021-06-17 17:04:22   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    About two months ago we started using Rollbar to notify us of various errors in our Web App. Ever since then we have been getting the occasional error ...
                            
                            
                                分类:
其他好文   时间:
2021-06-17 16:44:39   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    订阅发布机制 github地址: https://github.com/mroderick/PubSubJS import PubSub from 'pubsub-js' // or when using CommonJS const PubSub = require('pubsub-js'); / ...
                            
                            
                                分类:
其他好文   时间:
2021-06-17 16:36:50   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Net.Http; ...
                            
                            
                         
                    
                        
                            
                            
                                
                    快速搭建一个node服务,可以用于检查自己的单页应用是否有问题 app.js var exppress = require("express"); const fs = require("fs"); var app = exppress(); app.use(exppress.static("dis ...
                            
                            
                                分类:
其他好文   时间:
2021-06-16 18:10:25   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    在黄金系列中,我们介绍了并发中一些问题,比如死锁、活锁、线程饥饿等问题。在并发编程中,这些问题无疑都是需要解决的。所以,在铂金系列文章中,我们会从并发中的问题出发,探索Java所提供的锁的能力以及它们是如何解决这些问题的。
作为铂金系列文章的第一篇,我们将从Lock接口开始介绍,因为它是Java中锁... ...
                            
                            
                                分类:
编程语言   时间:
2021-06-16 18:08:25   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    反射机制 - Constructor类 1. 基本概念 java.lang.reflect.Constructor类:主要用于描述获取到的构造方法信息 2. Class类中,与Constructor类有关的常用方法 Constructor getConstructor(Class<?>... par ...
                            
                            
                                分类:
编程语言   时间:
2021-06-16 18:07:42   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    using System; using System.Collections.Generic; using System.Threading; namespace 生产者消费者 { class Program { static int r; static Queue<int> q = new Que ...
                            
                            
                                分类:
其他好文   时间:
2021-06-16 18:05:33   
                                阅读次数:
0