1:打开 https://vault.centos.org/ 查看需要的系统版本URL路径 2:修改文件/etc/yum.repos.d/CentOS-Base.repo为以下内容 [centos-office]name=centos-officefailovermethod=prioritybas ...
分类:
其他好文 时间:
2021-01-27 13:02:36
阅读次数:
0
查看显卡驱动: nvidia-smi 报错: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is instal ...
分类:
其他好文 时间:
2021-01-27 12:52:58
阅读次数:
0
A 9,98,989,9890...... #include <bits/stdc++.h> #define rep(i,j,k) for (int i = j; i <= k; i++) #define dow(i,j,k) for (int i = j; i >= k; i--) #define ...
分类:
其他好文 时间:
2021-01-22 12:10:17
阅读次数:
0
Redis主从+Sentinel搭建文档 1、单机redis安装 wget http://download.redis.io/releases/redis-5.0.3.tar.gzcd /usr/local/tar -zxvf redis-5.0.3.tar.gzmv redis-5.0.3/ re ...
分类:
其他好文 时间:
2021-01-22 11:52:28
阅读次数:
0
剑指 Offer 45. 把数组排成最小的数 地址: 剑指 Offer 45. 把数组排成最小的数 输入一个非负整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 示例 1: 输入: [10,2] 输出: "102" 示例 2: 输入: [3,30,34,5,9] 输 ...
分类:
编程语言 时间:
2021-01-20 11:43:00
阅读次数:
0
@RestController官方地址 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/RestController.html @Targ ...
分类:
编程语言 时间:
2021-01-18 11:09:53
阅读次数:
0
错误一:安装nginx报错“src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’” “src/os/unix/ngx_user.c:26:7: error: ‘struct ...
分类:
其他好文 时间:
2021-01-18 10:49:25
阅读次数:
0
Nginx在make时报错[objs/Makefile:469: objs/src/core/ngx_murmurhash.o] Error 在安装目录下执行 vim obj/Markfile 把Makefile文件的-Werror去掉 重新执行make ...
分类:
Web程序 时间:
2021-01-16 12:06:29
阅读次数:
0
参考:https://www.yangliuan.cn/?p=1090 1.安装所需工具 yum install --downloadonly --downloaddir=rpm gcc gcc-c++ glibc make autoconf openssl openssl-devel pcre-d ...
分类:
其他好文 时间:
2021-01-16 11:56:39
阅读次数:
0
今天在做p2p客户端的收发消息操作,由于传的消息是个结构体,前四个字节被定义为整型,用来判断是哪类报文,在收消息的时候就涉及吧char*转换为int 做法如下: auto recv_buf=std::make_unique<char[]>(1024);//分配1024字节的动态空间作为缓冲区 int ...
分类:
编程语言 时间:
2021-01-15 12:12:31
阅读次数:
0