随笔分类 - C#
摘要:Ubuntu 18.04开机自启动dotnet服务 Step 1 启用Ubuntu18.04的/etc/rc.local开机自启动脚本文件:参考 注意: 运行systemctl enable rc-local.service会提示错误,可以忽略,直接运行systemctl start rc-loca
阅读全文
摘要:C#使用PerformanceCounter获取CPU和内存利用率 PerformanceCounter PerformanceCounter表示Windows NT性能计数器组件,位于System.Diagnostics。 最常用的PerformanceCounter的构造函数:public Pe
阅读全文