分类 默认分类 下的文章
- 2024-12-15
- /
-
默认分类
- /
- 1228 阅读
- /
- 暂无评论
- /
- 全文约 110 字
- /
每一次断电后服务器的显卡都会消失,原来是有原因的下载DKMS它能够维护内核外的驱动程序,并且在内核版本变化后自动生成新的模块。sudo apt-get install dkms查看本机连接不上的驱动版本ls -l /usr/src/ 使用dkms重新安装适合驱动sudo dkms install -m nvidia -v 550.120
- 2024-09-30
- /
-
默认分类
- /
- 1032 阅读
- /
- 暂无评论
- /
- 全文约 320 字
- /
对于该服务器,首先确认raid卡类型root@gpu13:~# lspci | grep -i raid
1a:00.0 RAID bus controller: Broadcom / LSI MegaRAID SAS-3 3008 [Fury] (rev 02)针对 LSI(Broadcom)RAID 控制器的工具,可以使用storcli参考:https://blog.csdn.net/QTM_Gitee/article/details/124361012使用storcli查看现有硬盘情况storcli /c0 /eall /sall showDrive Information :
=================
-----------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
-----------------------------
- 2024-08-18
- /
-
默认分类
- /
- 1148 阅读
- /
- 暂无评论
- /
- 全文约 60 字
- /
sudo vim /etc/ssh/sshd_configClientAliveInterval 30
ClientAliveCountMax 99ClientAliveInterval: 服务器向客户端发送保持活动请求的时间间隔(秒)。ClientAliveCountMax: 服务器在断开连接前允许的最大未响应请求数。参考https://blog.csdn.net/qq_36803941/article/details/139982867
- 2024-08-18
- /
-
默认分类
- /
- 1020 阅读
- /
- 暂无评论
- /
- 全文约 310 字
- /
方法一本地生成公私钥在任意地方打开cmd输入ssh-keygen,结果如下,会提示是否生成,一路回车即可根据生成的位置,打开对应的文件夹,即C:\Users\[用户名]/.ssh/id_rsa会看到有两个文件,分别对应公钥和私钥将公钥文件id_rsa.pub上传至自己目录下的.ssh文件夹进入.ssh目录,即cd .ssh输入以下命令cat id_rsa.pub >> authorized_keysVScode加入本地密钥地址,IdentityFile方法二首先连接服务器在终端输入ssh-keygen,并一路回车进入.ssh目录,cd .ssh运行 cat id_rsa.pub >> authorized_keys在vscode左侧文件夹区域将id_rsa文件下载至本地,放到C:\Users\\[用户名]/.ssh/VScode加入本地密钥地址,IdentityFile服务器的操作sudo vim /etc/ssh/ssh_config将PasswordAuthentication on注释删除总结其实方法一和方法二的操作没有什么不一样,都是服务器存放公钥文件,
- 2024-01-15
- /
-
默认分类
- /
- 1032 阅读
- /
- 暂无评论
- /
- 全文约 80 字
- /
安装Aria2去Aria官网下一个压缩包 https://aria2.github.io/解压到目录后进行编译安装,可以改变安装位置./configure --prefix=/home/liujingyang/aria2
make
make install DESTDIR=/home/liujingyang/aria2添加bin目录到 .bashrc使用Proxyexport http_proxy="http://172.21.--------"
export https_proxy="http://172.21.--------"使用Aria2下载aria2c https://bop.felk.cvut.cz/media/data/bop_datasets/ycbv_train_synt.zip -d /home/datasets/BOP/ycbv将数据集权限设置为555chmod 555 -Rf /home/datasets/BOP/ycbv/*
- 2023-11-18
- /
-
默认分类
- /
- 1064 阅读
- /
- 暂无评论
- /
- 全文约 130 字
- /
#include <iostream>
#include <algorithm>
using namespace std;
int n, k;
int m;
const int N = 1e6 + 10;
int t[N], c[N], mint, maxt;
bool check(int tmp){
int s = 0;
for (int i = 0;i < n;i ++){
if (tmp < t[i]) s += c[i] * (t[i] - tmp);
if (s > m) return false;
}
return true;
}
int main(){
cin >> n >> m >> k;
mint = k;
for (int i = 0;i < n; i ++){
cin >> t[i] >> c[i];
maxt = max(max
- « 前一页
- 1
- 2
- 3
- 4
- 后一页 »