![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
大川搬砖
这个作者很懒,什么都没留下…
展开
-
Linux:scp 下载、上传文件
使用 scp命令,实现从服务器下载或向服务器上传文件。一. 从服务器下载1. 下载文件 命令格式: scp <用户名>@<ssh服务器地址>:<文件> <本地文件路径>#下载服务器中 root 目录下的 test.txt 到当前目录scp root@192.168.0.111:/root/test.txt ./2. ...原创 2019-07-03 09:13:33 · 232 阅读 · 0 评论 -
Linux:cannot open shared object file: No such file or directory
先说答案:执行 sudo ldconfig 或者执行 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/library。解决思路:1. 确定相关 so 库已经在 /usr/lib/ 目录下。2. 确定 CMakeLists.txt 中设置正确。find_library(OSS_LIBRARY NAMES oss_c_sdk PA...原创 2019-06-26 15:00:04 · 31679 阅读 · 1 评论 -
Centos:更换为网易镜像源
网易开源镜像站:mirrors.163.com1. 备份当前 repo 文件mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2. 下载对应 repo 文件wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163...原创 2019-06-28 14:56:19 · 2096 阅读 · 0 评论 -
Centos:Public key for *.rpm is not installed
原因:当使用 yum 安装 rpm 软件包的时候,yum 会校验软件包中的私钥是否正确。解决方法:1. 对单个软件包yum install --nogpgcheck -y curl2. 对所有软件包 修改 /etc/yum.conf 文件,将 gpgcheck 赋值为0,即 gpgcheck = 0。# /etc/yum.conf 文件内容[main]cach...原创 2019-06-28 15:53:30 · 1452 阅读 · 0 评论 -
Linux:Centos 镜像下载地址
Centos 镜像地址(可下载旧版本):http://archive.kernel.org/centos-vault/原创 2019-07-04 10:55:28 · 1305 阅读 · 0 评论